/**
 * pricing.css - Pricing page specific styling
 * Extends features-pages.css with pricing card layouts
 */

/* =============================================================================
   MAIN CONTENT WRAPPER
   ============================================================================= */

main {
    padding-top: 110px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    main {
        padding-top: 90px;
    }
}

/* =============================================================================
   PRICING HEADER
   ============================================================================= */

.pricing-header {
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.pricing-header h1 {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--primary-bright, #00a6cc);
    margin-bottom: 24px;
    line-height: 1.2;
}

.pricing-header p {
    color: #bbb;
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pricing-header {
        margin-top: 90px;
        margin-bottom: 40px;
    }
    
    .pricing-header h1 {
        font-size: 2.2em;
    }
    
    .pricing-header p {
        font-size: 1.1em;
    }
}

/* =============================================================================
   PRICING CARDS
   ============================================================================= */

.purchase-cards-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.plan-card {
    background: rgba(24, 28, 28, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    border-radius: 16px;
    min-width: 280px;
    max-width: 360px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-bright, #00a6cc), var(--accent-orange, #ff6d00));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 166, 204, 0.25);
    border-color: rgba(0, 166, 204, 0.3);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card h3 {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-card p {
    color: #ccc;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* Toggle Buttons */
.toggle-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(51, 51, 51, 0.6);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.toggle-btn:hover {
    background: rgba(51, 51, 51, 0.8);
    border-color: rgba(0, 166, 204, 0.3);
}

.toggle-btn.active {
    background: var(--primary-bright, #00a6cc);
    color: #002f2f;
    border-color: var(--primary-bright, #00a6cc);
}

/* Buy Button */
.buy-btn {
    background: var(--primary-bright, #00a6cc);
    color: #002f2f;
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    max-width: 240px;
}

.buy-btn:hover {
    background: var(--accent-orange, #ff6d00);
    color: #fff;
    transform: scale(1.05);
}

.buy-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* Price Display */
.price-display {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-bright, #00a6cc);
    margin: 20px 0;
}

.price-note {
    font-size: 0.9em;
    color: #999;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .purchase-cards-container {
        padding: 0 20px;
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .plan-card {
        padding: 32px 24px;
        min-width: 100%;
    }
    
    .toggle-group {
        flex-direction: column;
        width: 100%;
    }
    
    .toggle-btn {
        width: 100%;
    }
}

/* =============================================================================
   TOKEN PACKAGES SECTION
   ============================================================================= */

.token-packages-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.token-packages-section h2 {
    text-align: center;
    font-size: 2.4em;
    font-weight: 600;
    color: var(--accent-orange, #ff6d00);
    margin-bottom: 48px;
}

.token-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.token-package-card {
    background: rgba(24, 28, 28, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.token-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-bright, #00a6cc), var(--accent-orange, #ff6d00));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.token-package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 166, 204, 0.2);
    border-color: rgba(0, 166, 204, 0.3);
}

.token-package-card:hover::before {
    opacity: 1;
}

.token-package-card h3 {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 12px;
}

.token-package-card .price {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin: 16px 0;
}

.token-package-card .tokens {
    color: #bbb;
    font-size: 1.1em;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .token-packages-section {
        padding: 0 20px;
        margin: 40px auto;
    }
    
    .token-packages-section h2 {
        font-size: 1.8em;
        margin-bottom: 32px;
    }
    
    .token-packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
