/* ==========================================================================
   1. Custom Fonts Setup
   ========================================================================== */
@font-face {
    font-family: 'SingleDay';
    src: url('/assets/fonts/SingleDay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ShortStack';
    src: url('/assets/fonts/ShortStack-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   2. Core Layout Settings
   ========================================================================== */
body {
    /* ShortStack font applied as the playful body text default */
    font-family: 'ShortStack', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    font-size: 1.0rem;
    margin: 0;
    padding: 0;
    background-color: #0d0d13; /* Shifted to a deeper midnight background to make neons pop */
    color: #e0e0e0;
}

header, main, footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    border-bottom: 3px solid #00f0ff; /* Electric cyan border line */
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.15);
    text-align: center;
    background: #14141f;
    border-radius: 0 0 16px 16px;
}

/* SingleDay font applied to the primary headers */
h1 {
    font-family: 'SingleDay', cursive, sans-serif;
    color: #ff0077; /* Hot Pink */
    font-size: 4.0rem;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 0, 119, 0.6);
}

h2 {
    font-family: 'SingleDay', cursive, sans-serif;
    color: #00f0ff; /* Electric Cyan */
    font-size: 2.0rem;
    border-left: 4px solid #ff0077; /* Pink accent bar */
    padding-left: 12px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   3. Content Blocks & Epic Audio Player Container
   ========================================================================== */
.content-block {
    background: #181824; /* Darker console-like card background */
    padding: 25px;
    margin: 25px 0;
    border-radius: 12px;
    border: 2px solid #2d2d3f;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* Your newly upgraded media container with the ambient breathing pulse */
.media-container {
    margin: 25px 0;
    padding: 25px;
    background: #09090d; /* Pitch dark interior so audio controls stand out */
    border-radius: 16px;
    text-align: center;
    
    /* Neon border defaults */
    border: 3px solid #00f0ff; 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    animation: neonPulse 4s infinite ease-in-out;
}

.media-container h3 {
    font-family: 'SingleDay', cursive, sans-serif;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff0077;
    text-shadow: 0 0 8px rgba(255, 0, 119, 0.5);
}

.media-container audio {
    width: 100%;
    margin-top: 5px;
    border-radius: 8px;
}

/* ==========================================================================
   4. Links & Interactive "Squishy" Buttons
   ========================================================================== */
a {
    color: #00f0ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ff0077;
    text-decoration: underline;
}

/* Upgraded control buttons & download button to be squishy, 3D mechanical pieces */
.download-btn, .control-btn {
    display: inline-block;
    background: #181824;
    color: #00f0ff;
    border: 2px solid #00f0ff;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 4px 0 #00a8b5; /* 3D bottom edge shadow */
    transition: all 0.1s ease;
    user-select: none;
    margin-top: 10px;
    text-decoration: none;
}

/* Layout spacing adjustment specifically for the player skip controls wrapper */
.player-controls {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.player-controls .control-btn {
    flex: 1; /* Makes skip buttons expand to fill space evenly */
    margin-top: 0; 
}

/* Hovering puffs the buttons up */
.download-btn:hover, .control-btn:hover {
    background: #00f0ff;
    color: #0d0d13;
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Clicking compresses the buttons directly flat against the page */
.download-btn:active, .control-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #00a8b5;
}

/* For when download-btn is a standard link, overriding hover colors */
.download-btn:hover {
    color: #0d0d13 !important;
}

/* ==========================================================================
   5. Footer & Global Animations
   ========================================================================== */
footer {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    border-top: 2px solid #2d2d3f;
    margin-top: 40px;
    padding-top: 20px;
}

/* Smooth ambient neon color shift animation loop */
@keyframes neonPulse {
    0%, 100% {
        border-color: #00f0ff;
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1);
    }
    50% {
        border-color: #ff0077;
        box-shadow: 0 0 25px rgba(255, 0, 119, 0.5), inset 0 0 15px rgba(255, 0, 119, 0.1);
    }
}
