/* ============================================
   Crest IPTV — theme.css
   OceanBreeze palette | Gradient border cards | Pill gradient buttons
   ============================================ */

/* ── Base Typography ───────────────────────────────── */
body {
    font-family: 'Rubik', sans-serif;
    color: #0C4A6E;
    background: #F8FAFC;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    color: #0C4A6E;
}

h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }
h4 { font-size: 20px; line-height: 1.4; }

p {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

/* ── Header ────────────────────────────────────────── */
.iptv-header {
    transition: all 0.3s ease;
}

.iptv-header.header-scrolled {
    background: #FFFFFF !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

.iptv-header a:hover {
    color: #0891B2 !important;
}

.iptv-nav-desktop a:hover {
    color: #0891B2 !important;
}

/* ── Hamburger ─────────────────────────────────────── */
.iptv-hamburger {
    display: none !important;
}

body.menu-open .iptv-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .iptv-hamburger span:nth-child(2) {
    opacity: 0;
}

body.menu-open .iptv-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

body.menu-open .iptv-nav-mobile {
    display: block !important;
}

/* ── Gradient Border Cards ─────────────────────────── */
.iptv-gradient-card {
    background: linear-gradient(135deg, #0E7490, #0891B2);
    padding: 2px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iptv-gradient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.2);
}

.iptv-gradient-card-inner {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 30px;
}

/* ── Pill Gradient Buttons ─────────────────────────── */
.iptv-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0E7490, #0891B2);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.iptv-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.35);
    color: #fff;
}

.iptv-btn-outline {
    display: inline-block;
    background: transparent;
    color: #0891B2;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid #0891B2;
    transition: all 0.3s ease;
}

.iptv-btn-outline:hover {
    background: #0891B2;
    color: #fff;
}

/* ── Section Styling ───────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Pricing Cards ─────────────────────────────────── */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(8, 145, 178, 0.2);
}

.pricing-card.featured {
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* ── FAQ Accordion ─────────────────────────────────── */
.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #0891B2;
}

.faq-item.active {
    border-color: #0891B2;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #0C4A6E;
    background: #FFFFFF;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #F8FAFC;
}

.faq-question .faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #0891B2;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

/* ── WhatsApp Float ────────────────────────────────── */
.iptv-wa-float {
    animation: waPulse 2s infinite;
}

.iptv-wa-float:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7); }
}

/* ── Countdown Timer ───────────────────────────────── */
.countdown-timer {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    min-width: 50px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.countdown-separator {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

/* ── Savings Calculator ────────────────────────────── */
.savings-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.savings-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0C4A6E;
    transition: all 0.3s ease;
}

.savings-checkbox-label:hover {
    border-color: #0891B2;
}

.savings-checkbox-label.checked {
    border-color: #0891B2;
    background: #F0FDFA;
}

.savings-checkbox-label input {
    accent-color: #0891B2;
    width: 18px;
    height: 18px;
}

.savings-result {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #0E7490, #0891B2);
    border-radius: 16px;
    text-align: center;
    color: #fff;
}

/* ── Popup Offer ───────────────────────────────────── */
.iptv-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.iptv-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.iptv-popup {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.iptv-popup-overlay.active .iptv-popup {
    transform: translateY(0);
}

.iptv-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94A3B8;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.iptv-popup-close:hover {
    background: #F1F5F9;
}

/* ── Social Proof ──────────────────────────────────── */
.social-proof-bar {
    background: #FEF3C7;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #92400E;
}

/* ── Stats Counter ─────────────────────────────────── */
.stat-number {
    font-family: 'Crimson Pro', serif;
    font-weight: 800;
    font-size: 48px;
    color: #0891B2;
}

/* ── Comparison Table ──────────────────────────────── */
.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
}

.comparison-table th {
    background: #0C4A6E;
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.comparison-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    color: #334155;
}

.comparison-table tr:nth-child(even) td {
    background: #F8FAFC;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* ── Channel Tabs ──────────────────────────────────── */
.channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.channel-tab {
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    transition: all 0.3s ease;
}

.channel-tab:hover {
    border-color: #0891B2;
    color: #0891B2;
}

.channel-tab.active {
    background: linear-gradient(135deg, #0E7490, #0891B2);
    color: #fff;
    border-color: transparent;
}

.channel-group {
    display: none;
}

.channel-group.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

/* ── Blog Cards ────────────────────────────────────── */
.blog-card {
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

/* ── WordPress Pagination ──────────────────────────── */
.nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #0C4A6E;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.nav-links .page-numbers:hover {
    border-color: #0891B2;
    color: #0891B2;
}

.nav-links .page-numbers.current {
    background: linear-gradient(135deg, #0E7490, #0891B2);
    color: #fff;
    border-color: transparent;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }

    /* Header */
    .iptv-nav-desktop {
        display: none !important;
    }

    .iptv-hamburger {
        display: flex !important;
    }

    /* Article layout */
    .article-layout {
        grid-template-columns: 1fr !important;
    }

    .article-sidebar {
        position: static !important;
    }

    #article-toc {
        position: static !important;
    }

    /* Footer */
    footer > div:first-child {
        grid-template-columns: 1fr !important;
    }

    /* Stats */
    .stat-number {
        font-size: 36px;
    }

    /* Comparison table */
    .comparison-table {
        font-size: 12px;
    }

    /* Countdown */
    .countdown-unit {
        font-size: 16px;
        padding: 6px 8px;
        min-width: 40px;
    }

    /* Savings calculator */
    .savings-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Channel tabs */
    .channel-group.active {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }

    .savings-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .channel-group.active {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
