/* ===== MUSICIEN AUTHENTIQUE - STYLES PROFESSIONNELS ===== */

/* Variables CSS modernes */
:root {
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #334155 100%);
    --secondary-gradient: linear-gradient(135deg, #1e3a8a 0%, #334155 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-purple: #dc2626;
    --accent-pink: #3b82f6;
    --accent-blue: #3b82f6;
}

/* Background avec effet de particules musicales */
body {
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(51, 65, 85, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 65, 85, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    position: relative;
}

/* Effet de grille musicale en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    pointer-events: none;
    z-index: 0;
}

/* Cartes glassmorphism modernes */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Audio Player professionnel avec glassmorphism */
.audio-player {
    background: rgba(51, 65, 85, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 16px;
    padding: 24px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(51, 65, 85, 0.3);
    transition: all 0.3s ease;
}

.audio-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px 0 rgba(51, 65, 85, 0.4);
}

.audio-player audio {
    width: 100%;
    height: 50px;
    border-radius: 12px;
}

.audio-player audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Animations professionnelles */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.pulse-like {
    animation: pulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Animation de flottement pour les cartes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Effet de brillance au survol */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Player audio fixe en bas avec glassmorphism */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(51, 65, 85, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cartes de profil avec effet 3D */
.profile-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(220, 38, 38, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.profile-card:hover::after {
    opacity: 1;
}

/* Badges modernes avec gradient */
.badge-verified {
    background: linear-gradient(135deg, #1e3a8a 0%, #334155 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Waveform visualization moderne */
.waveform {
    height: 80px;
    background: linear-gradient(180deg, 
        rgba(51, 65, 85, 0.4) 0%, 
        rgba(71, 85, 105, 0.2) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.waveform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.1) 3px,
        rgba(255, 255, 255, 0.1) 4px
    );
    animation: waveMove 2s linear infinite;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

/* Tooltips élégants */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(10, 14, 39, 0.95);
}

/* Scrollbar personnalisée moderne */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #334155 0%, #1f2937 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #475569 0%, #111827 100%);
}

/* Grille responsive pour les médias avec gap moderne */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Effet de chargement avec gradient */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal moderne avec glassmorphism */
.modal-overlay {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Tags de genre avec design moderne */
.genre-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Boutons avec effet néon */
.btn-neon {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a, #334155);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.6), 0 0 50px rgba(220, 38, 38, 0.4);
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

/* Cards avec image de fond musicale */
.music-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
}

.music-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(10, 14, 39, 0.3) 0%,
        rgba(10, 14, 39, 0.9) 100%
    );
    z-index: 1;
}

.music-card > * {
    position: relative;
    z-index: 2;
}

/* Effet de particules pour les stats */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

/* Images avec overlay gradient */
.img-overlay {
    position: relative;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(51, 65, 85, 0.3) 0%,
        rgba(71, 85, 105, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-overlay:hover::after {
    opacity: 1;
}
.genre-tag {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(51, 65, 85, 0.1) 100%);
    color: #1e40af;
    border: 1px solid rgba(30, 58, 138, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    transform: scale(1.05);
}

/* Progress bar pour upload */
.upload-progress {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e3a8a 0%, #334155 100%);
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .fixed-player {
        padding: 10px;
    }
}
