/* ========================================
   blxnk - ESTILO MINIMALISTA
   ======================================== */

/* --- VARIAVEIS --- */
:root {
    --bg-color: #0a0a0b;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #2563eb;
    --card-bg: #141416;
    --font-body: 'Inter', sans-serif;
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    /* Ocultar scrollbar em todos os navegadores */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge antigo */
}

/* Ocultar scrollbar no WebKit (Chrome, Safari, Edge moderno) */
body::-webkit-scrollbar {
    display: none;
}

/* --- GRID DE PONTOS NO FUNDO --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 10%, rgba(37, 99, 235, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 60%, rgba(37, 99, 235, 0.03) 0%, transparent 20%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    opacity: 0.6;
}



/* --- HERO --- */
.hero {
    padding: 140px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(5.25rem, 18vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--easing-smooth) forwards;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--easing-smooth) 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- WAVEFORM EQUALIZER --- */
.waveform-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 40px;
    height: 120px; /* Aumentamos a altura do container para dar mais espaço! */
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#waveform-canvas {
    width: 100%;
    height: 100%;
}

/* --- RESPONSIVE WAVEFORM --- */
@media (max-width: 768px) {
    .waveform-container {
        height: 90px;
        padding: 0 16px 30px;
    }
}

/* --- TRACKS LIST --- */
.tracks {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 70px;
    position: relative;
    z-index: 1;
}

.tracks-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.track-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s var(--easing-smooth), transform 0.45s var(--easing-smooth);
}

.track-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.track-card-inner {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: var(--card-bg);
    border-radius: 12px;
    transition: all 0.35s var(--easing-smooth);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.track-card:hover .track-card-inner {
    background-color: #18181b;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- TRACK COVER --- */
.track-cover-wrapper {
    flex-shrink: 0;
}

.track-cover {
    width: 90px;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.35s var(--easing-smooth);
}

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

.track-view-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s var(--easing-smooth), transform 0.3s var(--easing-smooth);
    cursor: pointer;
}

.track-cover:hover .track-view-btn,
.track-cover.touch-active .track-view-btn {
    opacity: 1;
    transform: scale(1);
}

/* --- TRACK CONTENT --- */
.track-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.track-info {
    cursor: pointer;
}

.track-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.track-streaming-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.streaming-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: color 0.2s var(--easing-smooth), background-color 0.2s var(--easing-smooth), transform 0.2s var(--easing-smooth);
}

.streaming-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.streaming-link.spotify:hover {
    color: #1DB954;
}

.streaming-link.soundcloud:hover {
    color: #FF5500;
}

/* --- PROGRESS BAR (SLIDER INTERATIVO) --- */
.track-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.05s linear;
}

.progress-handle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-bar-wrapper:hover .progress-handle,
.progress-bar-wrapper.active .progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

.progress-time {
    display: flex;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- TRACK CONTROLS --- */
.track-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 6px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s var(--easing-smooth), transform 0.2s var(--easing-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.control-btn.play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--bg-color);
    opacity: 1;
    position: relative;
}

.control-btn.play-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s var(--easing-smooth), transform 0.2s var(--easing-smooth);
}

.control-btn.play-btn svg.play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.control-btn.play-btn svg.pause-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.control-btn.play-btn.playing svg.play-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.control-btn.play-btn.playing svg.pause-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.fullscreen-btn {
    margin-left: auto;
    margin-right: 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.65;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.volume-control:hover {
    opacity: 1;
}

.volume-slider {
    width: 70px;
    accent-color: var(--text-primary);
    cursor: pointer;
}

/* --- FULLSCREEN OVERLAY --- */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050506;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transform: scale(0.95) translateY(8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--easing-smooth), transform 0.4s var(--easing-smooth), visibility 0.4s;
}

.fullscreen-overlay:not(.hidden) {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.exit-fullscreen-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.exit-fullscreen-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.fullscreen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 500px;
}

.fullscreen-cover-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
}

.fullscreen-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.fullscreen-info {
    text-align: center;
}

.fullscreen-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fullscreen-artist {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.fullscreen-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fullscreen-progress .progress-bar-wrapper {
    height: 8px;
}

.fullscreen-progress .progress-handle {
    width: 20px;
    height: 20px;
}

.fullscreen-progress .progress-time {
    font-size: 0.9rem;
}

.fullscreen-controls {
    display: flex;
    align-items: center;
    gap: 32px;
}

.play-pause-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: #050506;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s var(--easing-smooth);
    position: relative;
}

.play-pause-btn:hover {
    transform: scale(1.05);
}

.play-pause-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s var(--easing-smooth), transform 0.2s var(--easing-smooth);
}

.play-pause-btn svg.play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-pause-btn svg.pause-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.play-pause-btn.playing svg.play-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.play-pause-btn.playing svg.pause-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.fullscreen-controls .control-btn {
    padding: 8px;
}

.fullscreen-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
}

.fullscreen-volume .volume-slider {
    width: 120px;
}

/* --- SOCIAL LINKS --- */
.social {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 70px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.social-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s var(--easing-smooth);
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.25s var(--easing-smooth);
}

.social-link:hover {
    color: var(--accent-color);
}

.social-link:hover::after {
    width: 100%;
}

/* --- FOOTER --- */
.footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 24px 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- UTILIDADES --- */
.hidden {
    /* Não usamos display: none para permitir animações */
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .hero {
        padding: 100px 16px 40px;
    }
    
    .tracks {
        padding: 0 16px 50px;
    }
    
    .track-card-inner {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }
    
    .track-cover-wrapper {
        width: 100%;
    }
    
    .track-cover {
        width: 100%;
        aspect-ratio: 1/1;
        height: auto;
    }
    
    .track-streaming-links {
        gap: 6px;
    }
    
    .track-controls {
        flex-wrap: wrap;
    }
    
    .volume-control {
        margin-left: auto;
    }
    
    .fullscreen-overlay {
        padding: 20px;
    }
    
    .fullscreen-title {
        font-size: 1.6rem;
    }
    
    .fullscreen-artist {
        font-size: 1rem;
    }
    
    .fullscreen-controls {
        gap: 24px;
    }
    
    .play-pause-btn {
        width: 64px;
        height: 64px;
    }
}

/* --- ZOOM OVERLAY --- */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--easing-smooth), visibility 0.4s;
}

.zoom-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.close-zoom-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2001;
}

.close-zoom-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.zoom-img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s var(--easing-smooth);
}

.zoom-overlay:not(.hidden) .zoom-img {
    transform: scale(1);
}

@media (max-width: 768px) {
    .zoom-overlay {
        padding: 20px;
    }
    
    .close-zoom-btn {
        top: 20px;
        right: 20px;
    }
}
