@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
    background: #000000;
    color: #fff;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100%;
}

/* Pure black background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, 
        #0a0015 0%, 
        #050010 25%, 
        #020008 40%,
        #000000 60%);
}

/* Minimal center accent */
.center-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, 
        rgba(90, 59, 168, 0.08) 0%,
        rgba(90, 59, 168, 0.04) 30%,
        transparent 60%);
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Main waveform container - no blur here */
.main-visualizer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    opacity: 0.7;  /* Darker overall */
    z-index: 1;
    overflow: visible;
}

#waveform-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1400px;
    height: 80vh;
    height: 80dvh; /* Dynamic viewport height for mobile */
    max-height: 800px;
    overflow: visible;
}

/* Recording indicator */
.recording-indicator {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    opacity: 0.9;
}

.rec-dot {
    width: 12px;
    height: 12px;
    background: #ff0040;
    border-radius: 50%;
    animation: recPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
}

@keyframes recPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(0.85);
    }
}

.rec-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-weight: 300;
}

/* Logo container - simple center */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.subtitle-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    margin-top: 100px;
    font-size: 2.0rem;
}

.shop-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    margin-top: 270px;
    font-size: 1.0rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.shop-container div {
    margin: 5px 0;
}

.shop-container a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.shop-container a:hover {
    color: rgba(90, 59, 168, 0.9);
}

@keyframes logoFade {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#shufl-logo {
    width: 400px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
}


/* Subtle scan lines */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.01;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(90, 59, 168, 0.3) 3px,
        rgba(90, 59, 168, 0.3) 4px
    );
}

/* Footer - Transparent */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: transparent;
    text-align: center;
    z-index: 100;
}

.footer-logo {
    height: 25px;
    margin-bottom: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
}

.copyright p {
    margin-bottom: 10px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    #shufl-logo {
        width: 300px;
    }

    .subtitle-container {
        font-size: 1.5rem;
        margin-top: 70px;
    }

    .shop-container {
        font-size: 0.85rem;
        margin-top: 180px;
    }

    /* Recording indicator for mobile */
    .recording-indicator {
        top: calc(env(safe-area-inset-top, 0px) + 25px);
        right: calc(env(safe-area-inset-right, 0px) + 25px);
        gap: 8px;
    }
    
    .rec-dot {
        width: 10px;
        height: 10px;
    }
    
    .rec-text {
        font-size: 0.8rem;
        letter-spacing: 0.1rem;
    }
    
    /* Canvas adjustments for mobile */
    #waveform-canvas {
        width: 95%;
        height: 70vh;
        height: 70dvh; /* Dynamic viewport height for mobile */
        max-height: none;
    }
    
    /* Footer adjustments for mobile */
    footer {
        padding: 15px;
        padding-bottom: env(safe-area-inset-bottom, 15px);
    }
    
    .footer-logo {
        height: 20px;
    }
    
    .copyright {
        font-size: 0.70rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    #shufl-logo {
        width: 250px;
    }

    .subtitle-container {
        font-size: 1.5rem;
        margin-top: 70px;
    }

    .shop-container {
        font-size: 0.8rem;
        margin-top: 170px;
    }

    #waveform-canvas {
        width: 98%;
        height: 65vh;
        height: 65dvh; /* Dynamic viewport height for mobile */
        max-height: none;
    }
    
    .recording-indicator {
        top: calc(env(safe-area-inset-top, 0px) + 20px);
        right: calc(env(safe-area-inset-right, 0px) + 20px);
    }
}