/* ============================================
   PREMIUM SECTION STYLING
   Beautiful pricing cards and premium features
   ============================================ */

.premium {
    padding: var(--spacing-xxl) var(--spacing-md);
    /* Exact match to PremiumHealthBackground from iOS app */
    background: linear-gradient(
        135deg,
        #1a1f36 0%,
        #2d3561 25%,
        #748ffc 50%,
        #1a1f36 100%
    );
    background-size: 400% 400%;
    animation: breathingGradient 20s ease-in-out infinite;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.premium::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: breathing 10s ease-in-out infinite;
}

.premium-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.premium-subtitle {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.9;
    margin-top: var(--spacing-md);
    letter-spacing: 0.3px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto var(--spacing-xxl);
}

/* Pricing Cards */
.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Featured Card */
.pricing-card-featured {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

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

/* Pricing Badge */
.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.pricing-badge-popular {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
}

.pricing-badge-value {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Pricing Title */
.pricing-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.pricing-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

/* Pricing Price */
.pricing-price {
    margin-bottom: var(--spacing-md);
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
}

.price-period {
    font-size: 18px;
    opacity: 0.8;
    font-weight: 300;
}

.pricing-savings {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: #6ee7b7;
}

/* Pricing Features */
.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6ee7b7;
    font-weight: bold;
    font-size: 18px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li strong {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Pricing Buttons */
.pricing-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-btn-free {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pricing-btn-free:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.pricing-btn-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.pricing-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.4);
}

.pricing-btn-annual {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.pricing-btn-annual:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

/* Premium CTA Section */
.premium-cta {
    margin-top: var(--spacing-xxl);
    text-align: center;
    padding: var(--spacing-xxl);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.premium-cta-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.premium-cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.premium-cta-btn {
    display: inline-block;
    padding: 18px 48px;
    background: white;
    color: var(--purple-primary);
    border-radius: var(--radius-pill);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.premium-cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.premium-feature {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.premium-feature:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.premium-feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.premium-feature:hover .premium-feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.premium-feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.premium-feature h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.3px;
}

.premium-feature p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Trust Section */
.premium-trust {
    margin-top: var(--spacing-xxl);
    text-align: center;
}

.premium-trust-text {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-trust-text svg {
    stroke: #6ee7b7;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .premium-features-grid {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 40px;
    }
    
    .premium-features-title {
        font-size: 28px;
    }
}

/* Animation for scroll reveal */
.pricing-card,
.premium-feature {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

.premium-feature:nth-child(1) { animation-delay: 0.1s; }
.premium-feature:nth-child(2) { animation-delay: 0.2s; }
.premium-feature:nth-child(3) { animation-delay: 0.3s; }
.premium-feature:nth-child(4) { animation-delay: 0.4s; }
.premium-feature:nth-child(5) { animation-delay: 0.5s; }
.premium-feature:nth-child(6) { animation-delay: 0.6s; }

