/* Subscription Page Styles */

/* Light Theme Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient-start: #f0f4f8;
    --bg-gradient-mid: #ffffff;
    --bg-gradient-end: #f0f4f8;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;

    --card-bg: #ffffff;
    --card-border: rgba(148, 163, 184, 0.2);
    --card-hover-shadow: rgba(0, 0, 0, 0.08);

    --feature-label: #64748b;
    --feature-value: #1e293b;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-gradient-start: #0a0e27;
    --bg-gradient-mid: #1a1f3a;
    --bg-gradient-end: #0a0e27;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(100, 116, 139, 0.2);
    --card-hover-shadow: rgba(0, 0, 0, 0.3);

    --feature-label: #94a3b8;
    --feature-value: #e2e8f0;
}

.subscription-page {
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 2rem 0;
    transition: background 0.3s ease;
}

.subscription-hero {
    padding: 4rem 0 3rem;
    color: var(--text-primary);
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.subscription-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscription-hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.theme-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.sun-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 0.25rem;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Pricing Section */
.pricing-section {
    padding: 2rem 0 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--card-hover-shadow);
    border-color: rgba(100, 116, 139, 0.4);
}

/* Free Plan */
.free-plan {
    border-color: rgba(148, 163, 184, 0.3);
}

.free-plan:hover {
    border-color: rgba(148, 163, 184, 0.5);
}

/* Pro Plan */
.pro-plan {
    border-color: rgba(99, 102, 241, 0.3);
}

.pro-plan:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* Premium Plan (Recommended) */
.premium-plan {
    border: 2px solid #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(30, 41, 59, 0.5) 100%);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.premium-plan:hover {
    border-color: #10b981;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
    transform: translateY(-8px) scale(1.02);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Enterprise Plan */
.enterprise-plan {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.enterprise-plan:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.top-tier-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.original-price {
    font-size: 1rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Plan Features */
.plan-features {
    margin-bottom: 2rem;
}

.feature-group {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
    font-size: 0.9rem;
}

.feature-label {
    color: var(--feature-label);
    font-weight: 500;
}

.feature-value {
    color: var(--feature-value);
    text-align: right;
    font-weight: 500;
}

/* Model Support */
.model-support {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.model-item.available {
    color: #10b981;
}

.model-item.available.highlight {
    color: #8b5cf6;
    font-weight: 600;
}

.model-item.unavailable {
    color: #64748b;
}

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #10b981;
}

.cross-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #64748b;
}

.model-item.available.highlight .check-icon {
    color: #8b5cf6;
}

/* Support Level */
.support-level {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-top: 1rem;
}

.support-label {
    color: var(--feature-label);
    font-weight: 500;
    font-size: 0.9rem;
}

.support-value {
    color: var(--feature-value);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Subscribe Buttons */
.subscribe-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.free-btn {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 2px solid rgba(148, 163, 184, 0.3);
}

.free-btn:hover {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
}

.pro-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pro-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.premium-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.premium-btn:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.enterprise-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.enterprise-btn:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    margin-top: 3rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(100, 116, 139, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .subscription-hero h1 {
        font-size: 2rem;
    }

    .subscription-hero .subtitle {
        font-size: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .billing-toggle {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .toggle-btn {
        width: 100%;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .recommended-badge,
    .top-tier-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .subscription-page {
        padding: 1rem 0;
    }

    .subscription-hero {
        padding: 2rem 0 2rem;
    }

    .subscription-hero h1 {
        font-size: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .feature-value {
        text-align: left;
    }
}
