/**
 * Shared Pricing Section Styles
 * 
 * Used across product landing pages:
 * - Counter Widgets
 * - TV Overlays  
 * - Stream Overlays
 */

/* Pricing Section - Full Screen Modern Table */
.widget-pricing {
    background: #0f0a1f;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.widget-pricing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 180deg at 50% 50%, 
            rgba(124, 58, 237, 0) 0deg, 
            rgba(124, 58, 237, 0.15) 60deg, 
            rgba(168, 85, 247, 0.1) 120deg,
            rgba(124, 58, 237, 0) 180deg,
            rgba(139, 92, 246, 0.12) 240deg,
            rgba(124, 58, 237, 0) 360deg
        );
    animation: slowRotate 60s linear infinite;
    pointer-events: none;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.widget-pricing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(139, 92, 246, 0.15), transparent 50%);
    pointer-events: none;
}

.widget-pricing .widget-section-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.widget-pricing .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.widget-pricing .section-header h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.widget-pricing .section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
}

/* Modern Pricing Table */
.pricing-table {
    display: flex;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.pricing-column {
    flex: 1;
    padding: 2.5rem 2rem;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.pricing-column:last-child {
    border-right: none;
}

.pricing-column:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pricing-column.featured {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-right: 1px solid rgba(139, 92, 246, 0.3);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
    margin: -1px 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pricing-column.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 0 0 12px 12px;
}

.pricing-tier {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.pricing-amount-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.pricing-dollar {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.pricing-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.pricing-column.featured .pricing-value {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-interval {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.pricing-feature-list li i {
    font-size: 0.75rem;
}

.pricing-feature-list li i.fa-check {
    color: #34d399;
}

.pricing-feature-list li i.fa-times {
    color: rgba(255, 255, 255, 0.2);
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-pricing-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-pricing-primary:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-pricing-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-pricing-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-table {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .pricing-column:last-child {
        border-bottom: none;
    }
    
    .pricing-column.featured {
        border-left: none;
        border-right: none;
        margin: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .widget-pricing {
        min-height: auto;
        padding: 4rem 1.5rem;
    }
    
    .pricing-column {
        padding: 2rem 1.5rem;
    }
    
    .pricing-value {
        font-size: 3rem;
    }
}

/* ============================================
   Overlay Pricing Variant
   Grayed-out Ad-Free/Solo, highlighted Team
   ============================================ */

/* Dimmed columns (Ad-Free, Solo) */
.pricing-table-overlay .pricing-column.overlay-dimmed {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.5);
    transition: opacity 0.3s, filter 0.3s;
}

.pricing-table-overlay .pricing-column.overlay-dimmed:hover {
    background: transparent;
}

/* Highlighted Team column */
.pricing-table-overlay .pricing-column.overlay-highlighted {
    opacity: 1;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.08) 100%);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}

.pricing-table-overlay .pricing-column.overlay-highlighted .pricing-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

/* Override the default ::before "POPULAR" badge on .featured */
.pricing-table-overlay .pricing-column.overlay-highlighted::before {
    display: none;
}

/* Pulsing highlight on the Team CTA */
.overlay-cta-pulse {
    animation: overlayPulse 2.5s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 4px 35px rgba(124, 58, 237, 0.7), 0 0 60px rgba(168, 85, 247, 0.2);
    }
}

/* Overlay feature highlights (OBS/TV callouts on Team) */
.overlay-feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: #c4b5fd;
    font-size: 0.9375rem;
    font-weight: 600;
}

.overlay-feature-highlight i {
    font-size: 0.75rem;
    color: #a78bfa;
}

/* Dimmed CTA button (non-Team plans) */
.btn-pricing-dimmed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    background: transparent;
    color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
}

.btn-pricing-dimmed i {
    font-size: 0.75rem;
}

/* Responsive: highlighted column on top when stacked */
@media (max-width: 1024px) {
    .pricing-table-overlay .pricing-column.overlay-highlighted {
        order: -1;
        border-left: none;
        border-right: none;
    }
}

