/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.flex-container {
    background: #2c3e50;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flex-items {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.flex-items:hover {
    color: #3498db;
}

.header-style {
    font-size: 1.1em;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 40px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Typography */
h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    color: #34495e;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    font-weight: 600;
}

h3 {
    color: #34495e;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.intro-text {
    font-size: 1.15em;
    color: #555;
    line-height: 1.9;
}

/* Use Case List */
.use-case-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.use-case-list li {
    padding: 15px 15px 15px 45px;
    margin: 12px 0;
    position: relative;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.use-case-list li:before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: #3498db;
    font-weight: bold;
    font-size: 1.4em;
}

.use-case-list strong {
    color: #2c3e50;
}

.better-reason {
    margin-top: 20px;
    padding: 20px;
    background: #e8f4f8;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    font-style: italic;
}

/* Tool Wrapper */
.tool-wrapper {
    background: white;
    padding: 40px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid #3498db;
}

.challenge-display {
    text-align: center;
}

.tool-wrapper h2 {
    margin-top: 0;
    border: none;
    text-align: center;
}

.ip-display {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-family: 'Courier New', Consolas, monospace;
    border: 2px dashed #3498db;
}

/* Form Styles */
.subnet-form {
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin: 20px 0;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1.05em;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
    font-family: 'Courier New', Consolas, monospace;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[type="text"]::placeholder {
    color: #999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.answer-display {
    color: #27ae60;
    font-weight: 600;
    margin-top: 8px;
    min-height: 24px;
    font-family: 'Courier New', Consolas, monospace;
}

/* Buttons */
.btn {
    background: #3498db;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.button-group {
    margin-top: 30px;
}

/* Example Box */
.example-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #3498db;
}

.example-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

.example-challenge {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1.3em;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    font-weight: 600;
}

.example-answers {
    list-style: none;
    padding: 0;
}

.example-answers li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.example-answers li:last-child {
    border-bottom: none;
}

.example-answers code {
    background: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    color: #2c3e50;
    font-weight: 600;
}

.example-explanation {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 6px;
}

/* Privacy Box */
.privacy-box {
    background: #d4edda;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #28a745;
}

.privacy-box ul {
    margin: 10px 0;
    padding-left: 25px;
}

.privacy-box li {
    margin: 8px 0;
}

/* Tip Box */
.tip-box {
    background: #fff3cd;
    padding: 20px;
    border-radius: 6px;
    border-left: 5px solid #ffc107;
    margin: 15px 0;
}

.tip-box strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
}

/* How It Works Section */
.limitations {
    margin-top: 25px;
}

.limitations ul {
    padding-left: 25px;
}

.limitations li {
    margin: 8px 0;
}

/* FAQ Section */
.faq-item {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.faq-question {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.faq-answer {
    color: #555;
    line-height: 1.8;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: #3498db;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Related Tools Grid */
.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.related-tool-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.related-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-tool-card h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.15em;
}

.related-tool-card p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-box h3 {
    color: white;
    margin-top: 0;
    font-size: 1.8em;
}

.cta-box p {
    font-size: 1.15em;
    margin: 0;
}

/* Version Info */
.version-info {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin: 40px 0 20px 0;
    padding: 20px;
    border-top: 2px solid #e0e0e0;
}

.version-info p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-section {
        padding: 25px 20px;
    }

    .tool-wrapper {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    .ip-display {
        font-size: 1.6em;
        padding: 15px;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .comparison-table {
        font-size: 0.85em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }

    .related-tools {
        grid-template-columns: 1fr;
    }

    .flex-container {
        flex-direction: column;
        text-align: center;
    }

    .flex-items {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .ip-display {
        font-size: 1.3em;
    }

    .form-group input[type="text"] {
        padding: 12px;
        font-size: 0.95em;
    }
}
