/* Explore Page Styles */
:root {
    --primary: #8A4FFF;
    --primary-light: #A77DFF;
    --primary-dark: #6E32DD;
    --secondary: #FF7BAC;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --bg-light: #F8F9FF;
    --card-shadow: 0 8px 20px rgba(138, 79, 255, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* Container principal */
.explore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* En-tête de la page */
.explore-header {
    margin-bottom: 40px;
    text-align: center;
}

.explore-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.explore-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Barre de recherche */
.explore-search {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input i {
    position: absolute;
    left: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    z-index: 1;
}

.search-input input {
    flex: 1;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--primary-light);
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 79, 255, 0.1);
}

.search-input button {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-input button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
}

/* Filtres */
.explore-filters {
    margin-bottom: 30px;
}

.filter-section {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.style-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--white);
    color: var(--text);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--primary-light);
}

.style-tag:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.style-tag.active {
    background-color: var(--primary);
    color: var(--white);
}

/* Info de recherche */
.search-info {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

/* Grille des chansons */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Cartes de chansons */
.song-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.song-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.song-cover {
    position: relative;
    height: 0;
    padding-bottom: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
}

.song-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.song-card:hover .song-cover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.play-button:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.song-info-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
}

.song-likes {
    display: inline-flex;
    align-items: center;
    background-color: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 123, 172, 0.3);
}

.song-likes i {
    margin-right: 6px;
}

.song-info {
    padding: 15px;
}

.song-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-creator {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.song-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-style {
    background-color: var(--bg-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.song-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Message pas de résultats */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(138, 79, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(138, 79, 255, 0.2);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 79, 255, 0.3);
}

/* Animation pour l'apparition des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.song-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Échelonnement des animations */
.song-card:nth-child(1) { animation-delay: 0.1s; }
.song-card:nth-child(2) { animation-delay: 0.15s; }
.song-card:nth-child(3) { animation-delay: 0.2s; }
.song-card:nth-child(4) { animation-delay: 0.25s; }
.song-card:nth-child(5) { animation-delay: 0.3s; }
.song-card:nth-child(6) { animation-delay: 0.35s; }
.song-card:nth-child(7) { animation-delay: 0.4s; }
.song-card:nth-child(8) { animation-delay: 0.45s; }
.song-card:nth-child(9) { animation-delay: 0.5s; }
.song-card:nth-child(10) { animation-delay: 0.55s; }
.song-card:nth-child(11) { animation-delay: 0.6s; }
.song-card:nth-child(12) { animation-delay: 0.65s; }

/* Responsivité */
@media (max-width: 991px) {
    .explore-header h1 {
        font-size: 1.8rem;
    }
    
    .explore-header p {
        font-size: 1rem;
    }
    
    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .song-title {
        font-size: 0.95rem;
    }
    
    .song-creator {
        font-size: 0.8rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .search-input {
        flex-direction: column;
    }
    
    .search-input input {
        border-radius: var(--radius-sm);
        margin-bottom: 10px;
        width: 100%;
    }
    
    .search-input button {
        border-radius: var(--radius-sm);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .song-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .song-style {
        margin-bottom: 5px;
    }
    
    .style-tags {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .style-tags::-webkit-scrollbar {
        display: none;
    }
    
    .style-tag {
        flex: 0 0 auto;
    }
}

/* Animation supplémentaire pour la barre de recherche */
.search-input input:focus + button {
    transform: translateX(5px);
}

/* Petite animation pour les likes */
.song-likes {
    position: relative;
    overflow: hidden;
}

.song-likes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}
/* Rendre la couverture cliquable */
.song-cover {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.cover-link {
    display: block;
    width: 100%;
    height: 100%;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-cover:hover img {
    transform: scale(1.05);
}

/* Assurer que les overlay restent au-dessus du lien */
.play-overlay, .song-info-overlay {
    position: absolute;
    z-index: 2;
}

.play-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.song-info-overlay {
    bottom: 10px;
    right: 10px;
}

/* Style pour le bouton de lecture */
.play-button {
    background: rgba(106, 17, 203, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.play-button:hover {
    background: rgba(106, 17, 203, 1);
    transform: scale(1.1);
}
/* Option 1: Supprime le soulignement pour tous les liens du site */
a {
    text-decoration: none;
}

/* Option 2: Maintenir un soulignement au survol pour l'accessibilité */
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Option 3: Style personnalisé avec mauve à la place du soulignement */
a {
    text-decoration: none;
    color: #8e44ad; /* couleur mauve */
    transition: color 0.2s ease;
}
a:hover {
    color: #6a11cb; /* mauve plus foncé au survol */
}

/* Option 4: Appliquer seulement à des sections spécifiques */
.song-info a, .explore-grid a, .footer-links a {
    text-decoration: none;
}