/* Upgrades Page Styles */

.nav-links .active {
    color: #667eea;
    font-weight: 700;
}

/* Upgrades Hero */
.upgrades-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.upgrades-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.upgrades-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upgrades-hero p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.ticket-balance {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.25rem;
}

.balance-label {
    font-weight: 600;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #fbbf24;
}

/* Upgrades Container */
.upgrades-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 30px;
    padding: 40px 20px;
}

.upgrades-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Upgrade Category */
.upgrade-category {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.upgrade-category h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.category-description {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Upgrade Grid */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Upgrade Card */
.upgrade-card {
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.upgrade-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.unlock-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.unlock-card:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.upgrade-header h3 {
    font-size: 1.125rem;
    color: #1a1a1a;
}

.upgrade-level {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.upgrade-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.upgrade-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.upgrade-description {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: auto;
    flex-grow: 1;
}

.upgrade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.upgrade-cost {
    font-size: 0.875rem;
    color: #666;
}

.upgrade-cost strong {
    color: #667eea;
    font-size: 1rem;
}

.btn-buy {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
}

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

.btn-unlock {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.btn-unlock:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #dc2626);
}

/* Active Bars Display */
.active-bars-grid {
    display: grid;
    gap: 16px;
}

.active-bar-card {
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 20px;
}

.active-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.active-bar-header h4 {
    font-size: 1rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-badge {
    background: #10b981;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.active-bar-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 12px;
}

.active-bar-progress {
    height: 32px;
    background: #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.active-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 16px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.active-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .upgrades-container {
        grid-template-columns: 1fr;
    }

    .upgrades-sidebar {
        display: none;
    }
}

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

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

    .upgrade-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn-buy {
        width: 100%;
    }
}
