/* ============================================
   ROUTER FIRMWARE PAGE SPECIFIC STYLES
   WiFiHapa - Firmware Downloads & Documentation
   ============================================ */
/* Main Content */
.main-content {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* Hero Section */
.firmware-hero {
    background: linear-gradient(145deg, #edf4ff 0%, #ffffff 100%);
    padding: 2.5rem 2rem;
    border-radius: 48px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(13, 110, 253, 0.05);
    transition: var(--transition, all 0.3s ease);
}

body.dark .firmware-hero {
    background: var(--hero-bg, linear-gradient(145deg, #111827 0%, #1e2538 100%));
}

@media (max-width: 768px) {
    .firmware-hero {
        padding: 1.5rem;
    }

    .firmware-hero h1 {
        font-size: 1.8rem;
    }
}

.firmware-badge {
    display: inline-block;
    background: #d4a11e;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #0a2c3d);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* Router Cards */
.router-card {
    background: var(--card-bg, white);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: var(--transition, all 0.2s ease);
    height: 100%;
    text-align: center;
}

body.dark .router-card {
    background: var(--card-bg, #1e2538);
    border-color: var(--border-light, rgba(255, 255, 255, 0.05));
}

.router-card:hover {
    border-color: #0d6efd;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.08);
}

.router-icon {
    width: 60px;
    height: 60px;
    background: #e4edff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #0d6efd;
    margin: 0 auto 1rem auto;
}

body.dark .router-icon {
    background: #2a3448;
}

.download-btn {
    background: #0d6efd;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition, all 0.2s ease);
    margin-top: 0.5rem;
}

.download-btn:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    color: white;
}

/* Script Cards */
.script-card {
    background: var(--card-bg, white);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--border-light, #e9ecef);
    height: 100%;
}

body.dark .script-card {
    background: var(--card-bg, #1e2538);
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

body.dark .code-block {
    background: #0a0a0a;
    color: #e0e0e0;
}

/* Guide Cards */
.guide-card {
    background: var(--card-bg, white);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--border-light, #e9ecef);
    transition: var(--transition, all 0.2s ease);
    height: 100%;
}

body.dark .guide-card {
    background: var(--card-bg, #1e2538);
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.08);
}

/* Version History Card */
.version-card {
    background: var(--card-bg, white);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--border-light, #e9ecef);
}

body.dark .version-card {
    background: var(--card-bg, #1e2538);
}

.version-table {
    width: 100%;
    font-size: 0.85rem;
}

.version-table th,
.version-table td {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    text-align: left;
}

body.dark .version-table th,
body.dark .version-table td {
    border-color: var(--border-light, rgba(255, 255, 255, 0.05));
}

.version-table th {
    font-weight: 700;
    color: var(--text-primary, #0a2c3d);
}

.version-table tr:last-child td {
    border-bottom: none;
}

.version-table a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.version-table a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .router-card {
        padding: 1.2rem;
    }

    .router-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .script-card {
        padding: 1.2rem;
    }

    .guide-card {
        padding: 1.2rem;
    }

    .code-block {
        font-size: 0.7rem;
        padding: 0.8rem;
    }

    .version-table {
        font-size: 0.75rem;
    }

    .version-table th,
    .version-table td {
        padding: 0.5rem 0.3rem;
    }
}

@media (max-width: 576px) {

    .version-table th,
    .version-table td {
        display: block;
        width: 100%;
    }

    .version-table tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-light, #e9ecef);
        padding-bottom: 0.5rem;
    }

    .version-table th {
        display: none;
    }

    .version-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 0.3rem 0;
    }

    .version-table td:before {
        content: attr(data-label);
        font-weight: 700;
        margin-right: 1rem;
    }
}