/* ==========================================================================
   Plan Category Page
   ========================================================================== */

.plan-category-page {
    padding-top: 0;
}

/* Plan Category Hero - Dark background with proper text colors */
.plan-category-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    text-align: center;
}

/* Adjust for top bar */
body:has(.top-bar) .plan-category-hero {
    padding-top: 176px;
}

.plan-category-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.plan-category-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.plan-category-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.plan-category-hero .plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-orange-rgb), 0.15);
    border: 1px solid rgba(var(--accent-orange-rgb), 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.plan-category-hero .plan-icon {
    font-size: 1.1em;
}

.plan-category-hero .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.plan-category-hero .hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.plan-category-hero .hero-feature svg {
    width: 16px;
    height: 16px;
    color: var(--accent-orange);
}


/* Category Intro Section */
.category-intro-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.category-intro-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
    text-align: center;
}

.category-intro-section .intro-content {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: center;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.highlight-card .highlight-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.highlight-card strong {
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.highlight-card span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Plan Pricing Section */
.plan-pricing-section {
    padding: 60px 0 80px;
}

.plan-pricing-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.pricing-box-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-box-header .pricing-box-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.pricing-box-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.pricing-box-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Selectors */
.pricing-selectors {
    margin-bottom: 32px;
}

.selector-group {
    margin-bottom: 24px;
}

.selector-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
}

.selector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.duration-btn,
.device-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-btn:hover,
.device-btn:hover {
    border-color: var(--accent-orange);
}

.duration-btn.active,
.device-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-orange);
    color: #fff;
}

.device-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
}

.device-btn svg {
    width: 18px;
    height: 18px;
}

/* Pricing Display */
.pricing-display {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-main .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.price-main .price-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.price-monthly {
    font-size: 0.875rem;
    color: var(--accent-orange);
    margin-top: 8px;
}

/* Pricing Features */
.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features li span {
    color: var(--text-body);
}

.pricing-features li small {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .plan-category-hero {
        padding: 120px 0 50px;
    }
    
    body:has(.top-bar) .plan-category-hero {
        padding-top: 156px;
    }
    
    .plan-category-hero h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .plan-pricing-box {
        padding: 24px;
        margin: 0 16px;
    }
    
    .price-main .price-value {
        font-size: 2.75rem;
    }
    
    /* Duration buttons - compact horizontal row like pricing table */
    .selector-group:first-child .selector-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .duration-btn {
        width: auto;
        padding: 10px 14px;
        font-size: 0.75rem;
        min-width: 70px;
        text-align: center;
    }
    
    /* Device buttons stay horizontal - all 5 in one row */
    .selector-group:last-child .selector-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }
    
    .device-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: 60px;
        padding: 12px 8px;
        font-size: 0.875rem;
    }
    
    .device-btn svg {
        width: 16px;
        height: 16px;
    }
}
