/* Base styles and custom cursor */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

#default-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('illegal_website_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3;
}

#background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: -2;
}

#background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* Specific background for legal pages */
body[data-page="legal"],
body[data-page="legal-subpage"] {
    background-image: none;
    background-color: #000000;
}

body[data-page="legal"] #default-background,
body[data-page="legal"] #background-overlay,
body[data-page="legal-subpage"] #default-background,
body[data-page="legal-subpage"] #background-overlay {
    display: none;
}


.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    width: 32px;
    height: 32px;
    border: 1px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    z-index: 9999;
}

.custom-cursor.hover {
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.2);
}

@media (pointer: coarse) {
    .custom-cursor { display: none; }
    body { cursor: auto; }
}

/* Homepage Project Scroller */
.project-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding-left: 15vw;
    padding-right: 15vw;
    position: relative;
    z-index: 10;
}

.project-link {
    font-size: 8vw;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 4vw;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.project-link:hover {
    color: #a0a0a0;
}

/* Fullscreen Navigation Overlay */
#nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#nav-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

#nav-overlay .nav-link {
    font-size: 5vw;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    margin: 2vw 0;
    transition: color 0.3s;
}

#nav-overlay .nav-link:hover {
    color: #a0a0a0;
}

#close-nav {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Events Page */
.event-item {
    border-bottom: 1px solid #333;
    transition: background-color 0.3s;
}
.event-item:hover {
    background-color: #111;
}
.promo-button {
    border: 1px solid #4a5568;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.promo-button:hover {
    background-color: #2d3748;
}

/* Merch Page */
.store-button {
    border: 2px solid white;
    transition: background-color 0.3s, color 0.3s;
}
.store-button:hover {
    background-color: white;
    color: black;
}

/* Legal & Policy Pages */
.legal-link {
    transition: background-color 0.3s;
}
.legal-link:hover {
    background-color: #111;
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.policy-content p, .policy-content ul {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #d1d5db; /* Lighter gray for better readability on black */
}
.policy-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}
.policy-content a {
    text-decoration: underline;
}

/* --- DEFINITIVE FIX for Label Page Grid --- */
#releases-container {
    display: grid;
    gap: 2rem;
    text-align: left;
    /* Default to 1 column for mobile */
    grid-template-columns: repeat(1, minmax(0, 1fr)); 
    align-items: start; /* Prevents grid items from stretching vertically */
}

/* 2 columns for tablets and up */
@media (min-width: 768px) {
    #releases-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 4 columns for large desktops */
@media (min-width: 1024px) {
    #releases-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.release-card {
    background-color: transparent;
    padding: 0;
}

.release-artwork {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.375rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release-card:hover .release-artwork {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.release-info {
    margin-top: 0.75rem;
}
