/* Charts-specific styles */

/* Chart Navigation Tabs */
.chart-nav-section {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.chart-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.chart-nav-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.chart-nav-tab.active {
    background: linear-gradient(135deg, #ffd700, #0ea5e9);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Chart Sections */
.chart-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.chart-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Archive Sections */
.archive-section {
    margin-top: 40px;
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    margin-bottom: 20px;
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.chart-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffd700;
    transform: translateX(5px);
}

.chart-item:last-child {
    border-bottom: none;
}

.chart-position {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    min-width: 30px;
    text-align: left;
}

.chart-position.top-5 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chart-position.top-3 {
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.movement-icon {
    font-size: 18px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.movement-up {
    color: #00ff88;
}

.movement-down {
    color: #ff4444;
}

.movement-new {
    color: #ffcc00;
}

.movement-same {
    color: #888;
}

.chart-info {
    flex: 1;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.chart-artist {
    font-size: 14px;
    color: #ccc;
    font-weight: 400;
    margin-bottom: 4px;
}

.chart-movement {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
}

/* Chart Category Badges */
.genre-badge {
    background: linear-gradient(45deg, #0ea5e9, #60a5fa);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 10px;
    text-transform: uppercase;
}

.genre-badge.dancehall {
    background: linear-gradient(45deg, #10b981, #34d399);
}

.genre-badge.hiphop {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
}

.genre-badge.upcoming {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.hot-badge {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.new-badge {
    background: linear-gradient(45deg, #ffcc00, #ff8800);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.trending-badge {
    background: linear-gradient(45deg, #ff1493, #ff69b4);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.archive-selector {
    text-align: center;
    margin: 40px 0;
}

.archive-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 25px;
    color: #fff;
    font-size: 16px;
    min-width: 300px;
    cursor: pointer;
}

.archive-dropdown:focus {
    outline: none;
    border-color: #ffd700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffd700;
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #0ea5e9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chart-nav-tabs {
        gap: 10px;
        padding: 0 10px;
    }

    .chart-nav-tab {
        font-size: 14px;
        padding: 10px 20px;
    }

    .chart-container {
        margin: 0 20px 20px 20px;
        padding: 20px;
    }

    .chart-item {
        gap: 15px;
        padding: 12px 15px;
    }

    .chart-position {
        font-size: 20px;
        min-width: 35px;
    }

    .chart-title {
        font-size: 16px;
    }

    .archive-dropdown {
        min-width: 250px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 36px;
    }
}