/* ============================================
   SILENCIOZA — Styles (Sigo Aquí Era)
   ============================================ */

/* Font: Oswald (Modern, Bold, Condensed) */
/* Imported in HTML head */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    /* Deep blue/purple gradient base inspired by album cover */
    background: #0a0e17; 
    font-family: 'Oswald', sans-serif;
    color: #e0e0e0;
    cursor: crosshair;
}

/* WebGL Canvas - Background */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main Content Wrapper */
#main-content {
    position: relative;
    z-index: 10;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10vh 5vw;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    max-width: 1100px;
    width: 100%;
}

/* Content Wrapper - Glassy, Modern, Blue tones */
.content-wrapper:not( footer .content-wrapper ) {
    background: rgba(10, 20, 40, 0.7);
    padding: 3rem;
    
    /* Modern Glassmorphism */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 100, 255, 0.2);
    
    position: relative;
    opacity: 0;
    animation: fadeInSection 1s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(30px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    
    /* Text Shadow: Blue/Pink split (Chromatic Aberration feel) */
    text-shadow: 
        -2px 0 0 rgba(0, 255, 255, 0.6), 
        2px 0 0 rgba(255, 0, 255, 0.6);
}

p {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #ccc;
    max-width: 800px;
}

.letter-purple {
    color: #FF00FF;
    transform: rotate(4deg);
    display: inline-block;
}

/* ============================================
   FLOATING NAVIGATION
   ============================================ */
#floating-nav {
    position: fixed;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    text-align: right;
    transition: all 0.3s ease;
    padding-right: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #00ffff; /* Cyan line */
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    padding-right: 2rem;
}

.nav-link:hover::after {
    width: 1.5rem;
}

/* ============================================
   TITLE OVERLAY
   ============================================ */
#title-overlay {
    text-align: center;
    pointer-events: none;
    mix-blend-mode: normal; /* Better contrast */
    z-index: 20;
}

.glitch-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: #fff;
    
    /* Strong Blue/Pink Glow */
    text-shadow: 
        0 0 20px rgba(0, 150, 255, 0.8),
        0 0 60px rgba(0, 100, 255, 0.4);
        
    animation: breatheTitle 5s ease-in-out infinite alternate;
}

@keyframes breatheTitle {
    from { 
        text-shadow: 0 0 20px rgba(0, 150, 255, 0.8), 0 0 60px rgba(0, 100, 255, 0.4);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 80px rgba(255, 0, 255, 0.4);
        transform: scale(1.02);
    }
}

.subtitle {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 2rem;
    color: #00ffff; /* Cyan */
    opacity: 0.8;
}

/* ============================================
   MUSIC SECTION
   ============================================ */
.album-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.album-art {
    flex: 1;
    width: 500px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.album-cover-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 100, 255, 0.2); /* Blue glow */
    transition: transform 0.5s ease;
}

.album-cover-img:hover {
    transform: scale(1.02);
}

.tracklist {
    flex: 1.5;
    min-width: 300px;
}

.tracklist h3 {
    color: #00ffff;
    margin-bottom: 2rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

#playlist {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

#playlist::-webkit-scrollbar {
    width: 6px;
}
#playlist::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 3px;
}

.track {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #ccc;
    display: flex;
    align-items: center;
}

.track:hover {
    color: #fff;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.track.active {
    color: #00ffff;
    font-weight: 400;
    padding-left: 10px;
    border-left: 3px solid #ff00ff; /* Pink accent */
}

.audio-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column; /* Stack top controls and progress bar */
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Progress Bar Styles */
#progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    transition: height 0.2s ease;
}

#progress-container:hover {
    height: 10px; /* Thicker on hover for easier clicking */
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: #00ffff; /* Cyan progress */
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 10px #00ffff;
    transition: width 0.1s linear;
}

/* Optional handle at the end of the bar */
#progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

#progress-container:hover #progress-bar::after {
    opacity: 1;
}

#play-pause-btn {
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 0.8rem 2.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#play-pause-btn:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

#current-track-name {
    font-family: 'Oswald', sans-serif;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 300;
}

/* ============================================
   TOUR SECTION
   ============================================ */
.tour-dates {
    list-style: none;
}

.tour-dates li {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    transition: all 0.3s;
    color: #ccc;
}

.tour-dates li:hover {
    background: rgba(255,255,255,0.02);
    padding-left: 1rem;
    padding-right: 1rem;
    color: #fff;
}

.date { 
    color: #ff00ff; /* Magenta */
    width: 100px; 
    font-weight: 400; 
}
.city { 
    flex: 1; 
    text-align: center; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}
.venue { 
    color: #00ffff; /* Cyan */
    text-align: right; 
    width: 200px; 
    font-weight: 300;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-left: 2px solid #00ffff;
    color: #fff;
    padding: 1rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    transition: all 0.3s;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff00ff;
    background: rgba(255,255,255,0.05);
}

button[type="submit"] {
    background: #fff;
    border: none;
    color: #000;
    padding: 1rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    text-transform: uppercase;
}

button[type="submit"]:hover {
    background: #00ffff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

/* ============================================
   LOADER
   ============================================ */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-out;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: #fff;
    text-shadow: 0 0 10px #00ffff;
    animation: loaderBlink 1s infinite alternate ease-in-out;
}

@keyframes loaderBlink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

footer {
    background: rgba(10, 20, 40, 0.7);
}

footer .content-wrapper {
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

footer p {
    padding-left: 3rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 769px) {
    #play-random-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 200;
        background: transparent;
        border: 2px solid #00ffff;
        color: #00ffff;
        padding: 1rem 1.5rem;
        font-family: 'Oswald', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.1em;
        cursor: pointer;
        text-transform: uppercase;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

    #play-random-btn:hover {
        background: #00ffff;
        color: #000;
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
        transform: scale(1.05);
    }
    
    .controls-top {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    #play-random-btn {
        display: none;
    }

    #floating-nav {
        right: auto;
        bottom: 20px;
        left: 50%;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
        width: 100%;
        justify-content: center;
        background: rgba(0,0,0,0.8);
        padding: 1rem;
        backdrop-filter: blur(10px);
    }

    .nav-link {
        font-size: 0.9rem;
    }
    
    .nav-link::after {
        display: none;
    }

    .tour-dates li {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .date, .city, .venue {
        width: 100%;
        text-align: center;
    }

    .album-container {
        flex-direction: column;
        overflow: hidden;
    }

    .tracklist {
        width: 100%;
    }

    #current-track-name {
        display: block;
        margin-top: 15px;
    }
}
