/* Subscription Plans Page */

@import './variables.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -300px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    bottom: -200px;
    left: -200px;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.nav-profile img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.nav-profile:hover img {
    border-color: var(--primary);
}

/* Main Content */
.main-content {
    padding-top: 70px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.plans-hero {
    text-align: center;
    padding: 80px 30px 50px;
}

.plans-hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plans-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 40px;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.toggle-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.toggle-label.active {
    color: var(--text);
}

.save-badge {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: white;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 30px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.plan-card.popular {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #000;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.plan-name {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.plan-features {
    margin-bottom: 30px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    list-style: none;
}

.plan-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

.plan-features li.not-included {
    color: var(--text-muted);
}

.plan-features li.not-included i {
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Features Section */
.features-section {
    padding: 60px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.features-section h2 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.features-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
}

.features-table th,
.features-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.features-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.features-table td:first-child {
    color: var(--text);
}

.features-table td:not(:first-child) {
    text-align: center;
}

.features-table i.fa-check {
    color: var(--success);
}

.features-table i.fa-times {
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 60px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

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

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand img {
    width: 30px;
    height: 30px;
}

.footer-brand span {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: var(--success);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1100;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .plans-hero h1 {
        font-size: 2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }
    
    .features-section,
    .faq-section {
        padding: 40px 20px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
