/* Halja font - if not available on Google Fonts, uncomment and update paths below */
/*
@font-face {
    font-family: 'Halja';
    src: url('./fonts/Halja-Regular.woff2') format('woff2'),
         url('./fonts/Halja-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halja';
    src: url('./fonts/Halja-Bold.woff2') format('woff2'),
         url('./fonts/Halja-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halja';
    src: url('./fonts/Halja-Black.woff2') format('woff2'),
         url('./fonts/Halja-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
*/

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

html {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 200vh;
}

body {
    font-family: 'Halja', 'Arial', 'Helvetica', sans-serif;
    background: #000000;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    color: #ffffff;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    height: auto;
    min-height: 200vh;
}

body.splash-active {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 200vh;
}

body.site-active {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 200vh;
    background: #000000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.splash-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2001;
    pointer-events: none;
}

.splash-logo {
    max-width: 300px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto 2rem;
    animation: pulse 2s ease-in-out infinite;
    mix-blend-mode: lighten;
}

.scroll-hint {
    font-family: 'Halja', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.7;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeInOut 2s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.scroll-spacer {
    height: 100vh;
    width: 100%;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.canvas-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.canvas-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    background: #000000;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Site Logo (small, top) */
.site-logo {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    animation: fadeInLogo 2s ease-in-out 0.5s forwards;
}

.site-logo-img {
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
    mix-blend-mode: lighten;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Content Overlays */
.content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    z-index: 100;
    display: none;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.content-overlay.active {
    display: block;
}

.close-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Halja', sans-serif;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 101;
}

.close-overlay:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.overlay-content {
    font-family: 'Halja', sans-serif;
    color: #ffffff;
    text-align: center;
}

.overlay-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #ffffff;
}

.overlay-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.overlay-content .verse-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 2;
    margin: 2rem 0;
    opacity: 0.95;
}

.overlay-content .verse-reference {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 1rem;
}

.artist-link-container,
.contact-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Releases Section - 3x3 Grid */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.release-card {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.release-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.release-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.release-card:hover .release-cover-wrapper {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.release-card:hover .release-cover {
    transform: scale(1.1);
}

.release-title {
    font-family: 'Halja', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.1em;
    text-align: center;
    transition: color 0.3s ease;
}

.release-artist {
    font-family: 'Halja', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.05em;
    text-align: center;
}

.release-card:hover .release-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.overlay-artist-link,
.overlay-contact-link {
    font-family: 'Halja', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.8rem 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.overlay-artist-link:hover,
.overlay-contact-link:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.artist-url,
.contact-handle,
.contact-url {
    font-family: 'Halja', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
    margin: 0.5rem 0;
}

.contact-handle {
    font-weight: 700;
    font-size: 1.2rem;
}

.sticky-logo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    animation: fadeInDown 0.8s ease-out;
    background: transparent;
    padding: 0;
}

.sticky-logo .logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    mix-blend-mode: lighten;
}

.click-disclaimer {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

.click-disclaimer p {
    font-family: 'Halja', sans-serif;
    font-size: 0.8rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.controls-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    touch-action: none;
    pointer-events: auto;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.control-item label {
    font-family: 'Halja', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}


input[type="range"] {
    width: 200px;
    height: 6px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

button {
    font-family: 'Halja', sans-serif;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

button:active {
    transform: translateY(0);
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Mobile and Tablet Styles */
@media (max-width: 1024px) {
    .sticky-logo {
        top: 10px;
        padding: 0;
    }
    
    .sticky-logo .logo {
        max-height: 70px;
    }
    
    .site-logo {
        top: 12px;
    }
    
    .site-logo-img {
        max-height: 35px;
    }
    
    .click-disclaimer {
        bottom: 190px;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        max-width: 85%;
    }
    
    .content-overlay {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 80vh;
    }
    
    .overlay-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .controls-overlay {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 90%;
        align-items: stretch;
    }
    
    .control-item {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
        width: 100%;
    }
    
    .control-item label {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    input[type="range"] {
        width: 100%;
        max-width: 180px;
        height: 8px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }
    
    button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* iPhone and Small Mobile */
@media (max-width: 480px) {
    .sticky-logo {
        top: 5px;
        padding: 0;
    }
    
    .sticky-logo .logo {
        max-height: 50px;
    }
    
    .site-logo {
        top: 10px;
    }
    
    .site-logo-img {
        max-height: 30px;
    }
    
    .click-disclaimer {
        bottom: 180px;
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        max-width: 85%;
        line-height: 1.3;
    }
    
    .content-overlay {
        width: 96%;
        padding: 1.5rem 1.2rem;
        max-height: 75vh;
    }
    
    .overlay-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .overlay-content .verse-text {
        font-size: 0.95rem;
        margin: 1.2rem 0;
    }
    
    .overlay-artist-link,
    .overlay-contact-link {
        font-size: 1.3rem;
        padding: 0.6rem 1.2rem;
    }
    
    .releases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .release-title {
        font-size: 0.85rem;
    }
    
    .release-artist {
        font-size: 0.7rem;
    }
    
    .album-cover-container {
        width: 250px;
        height: 250px;
    }
    
    .album-title {
        font-size: 1.6rem;
    }
    
    .album-artist {
        font-size: 1.1rem;
    }
    
    .streaming-link {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .streaming-links {
        gap: 0.8rem;
    }
    
    .close-overlay {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
        top: 0.4rem;
        right: 0.4rem;
    }
    
    .click-disclaimer p {
        font-size: 0.6rem;
        margin: 0;
    }
    
    .controls-overlay {
        padding: 0.6rem 0.8rem;
        bottom: 12px;
        gap: 0.7rem;
        max-width: 90%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-item {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    
    .control-item label {
        font-size: 0.65rem;
        white-space: nowrap;
        text-align: center;
    }
    
    input[type="range"] {
        width: 100%;
        max-width: 160px;
        height: 6px;
    }
    
    button {
        width: 100%;
        max-width: 160px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }
    
    button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .sticky-logo .logo {
        max-height: 60px;
    }
    
    .click-disclaimer {
        bottom: 170px;
        font-size: 0.65rem;
        max-width: 85%;
    }
    
    .controls-overlay {
        bottom: 8px;
        padding: 0.5rem 0.7rem;
        flex-direction: column;
        gap: 0.6rem;
        max-width: 90%;
        align-items: stretch;
    }
    
    .control-item {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        width: 100%;
    }
    
    .control-item label {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    input[type="range"] {
        width: 100%;
        max-width: 140px;
        height: 6px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        border-radius: 50%;
    }
    
    input[type="range"]::-moz-range-thumb {
        border-radius: 50%;
    }
    
    button {
        width: 100%;
        max-width: 140px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .sticky-logo {
        top: max(20px, env(safe-area-inset-top));
    }
    
    .controls-overlay {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}
