/**
 * KORYA - Styles pour la page Explorer
 * Version: 1.0.0
 */

/* ============================================
   HERO SECTION
   ============================================ */
.explore-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    padding: 60px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hero-search input:focus {
    outline: none;
    border-color: #0066cc;
    background: rgba(255, 255, 255, 0.15);
}

.hero-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   STATISTIQUES
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, #0066cc20, #00336620);
    padding: 40px 0;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-card div:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ============================================
   FILTRES
   ============================================ */
.filter-section {
    background: var(--bg-card, #1a1a2e);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-header h2 {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.filter-clear:hover {
    background: rgba(255, 68, 68, 0.8);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.filter-select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #0066cc;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
}

.price-input:focus {
    outline: none;
    border-color: #0066cc;
}

.price-inputs span {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RÉSULTATS
   ============================================ */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #0066cc;
}

.view-btn:hover {
    background: #0066cc;
}

/* ============================================
   GRILLE MUSIQUES
   ============================================ */
.music-grid {
    margin-bottom: 40px;
}

.music-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.music-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.music-grid.list-view .track-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.music-grid.list-view .track-card-image {
    width: 100px;
    aspect-ratio: 1;
}

.music-grid.list-view .track-info {
    flex: 1;
}

.track-card {
    background: var(--bg-card, #1a1a2e);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.track-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.track-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.track-card:hover .track-card-image img {
    transform: scale(1.05);
}

.track-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-card:hover .track-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.track-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
}

.track-badge.video {
    background: #ff0066;
}

.track-badge.free {
    background: #00aa55;
}

.track-info {
    padding: 15px;
}

.track-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-title a {
    color: white;
    text-decoration: none;
}

.track-title a:hover {
    color: #0066cc;
}

.track-artist {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.track-artist a {
    color: inherit;
    text-decoration: none;
}

.track-artist a:hover {
    color: #0066cc;
}

.track-genre {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.track-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.track-price {
    font-weight: 700;
    color: #0066cc;
}

.track-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-buy-small {
    background: #0066cc;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-buy-small:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-item.active {
    background: #0066cc;
}

.page-item:hover:not(.disabled) {
    background: #0066cc;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-item[data-page] {
    cursor: pointer;
}

/* ============================================
   SECTION TENDANCES
   ============================================ */
.trending-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.trending-section h2 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-list {
    background: var(--bg-card, #1a1a2e);
    border-radius: 16px;
    padding: 20px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-rank {
    font-size: 20px;
    font-weight: 700;
    color: #0066cc;
    width: 50px;
}

.trending-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.trending-info {
    flex: 1;
}

.trending-title {
    font-size: 15px;
    font-weight: 500;
}

.trending-title a {
    color: white;
    text-decoration: none;
}

.trending-title a:hover {
    color: #0066cc;
}

.trending-artist {
    font-size: 12px;
    color: #888;
}

.trending-artist a {
    color: inherit;
    text-decoration: none;
}

.trending-artist a:hover {
    color: #0066cc;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #0066cc;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: #0055aa;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card, #1a1a2e);
    border-radius: 20px;
}

.empty-state i {
    font-size: 64px;
    color: #888;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .music-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .track-title {
        font-size: 13px;
    }
    
    .track-artist {
        font-size: 11px;
    }
    
    .track-stats {
        font-size: 10px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-item {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 15px;
    }
    
    .music-grid.list-view .track-card {
        flex-direction: column;
        text-align: center;
    }
    
    .music-grid.list-view .track-card-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .music-grid.grid-view {
        grid-template-columns: 1fr;
    }
    
    .trending-rank {
        width: 40px;
        font-size: 16px;
    }
    
    .trending-cover {
        width: 40px;
        height: 40px;
    }
}