/* CSS Variables */
:root {
    /* Minimalist color palette based on photo */
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-dimmed: rgba(255, 255, 255, 0.6);
    --bg-overlay: rgba(0, 0, 0, 0.2);
    /* Slight darkening of the photo */

    /* Typography */
    --font-en: 'Caveat', cursive;
    --font-jp: 'Zen Maru Gothic', sans-serif;

    /* Spacing */
    --sidebar-width: 30%;
    --min-sidebar-width: 300px;
    --padding-standard: 4vw;
}

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

html {
    min-height: 100%;
}

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: var(--font-en), var(--font-jp);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100%;
    overscroll-behavior-y: contain;
}

/* Background Layer */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Using the requested image */
    background: url('assets/hero-bg.jpg') center center / cover no-repeat;
    z-index: -2;
}

/* Optional slight darkening overlay so text is readable */
.bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
}

/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .layout-wrapper {
        flex-direction: column;
    }
}

/* Left Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--min-sidebar-width);
    padding: var(--padding-standard);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100vh;
    position: fixed;
    /* Keep it fixed on the left */
    top: 0;
    left: 0;
}

/* Typography & Logo */
.logo {
    font-family: var(--font-en), cursive;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 20vh;
    /* High margin before menu */
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for legibility over image */
}

/* Navigation */
.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-left: 3rem;
    /* Shift navigation to the right to avoid background glow */
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-en);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.nav-menu a:hover {
    opacity: 0.5;
}

.nav-menu a.active {
    opacity: 1;
    padding-left: 0.8rem;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
}

.nav-menu a.special-link {
    font-family: var(--font-jp);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    margin-top: 1rem;
    display: inline-block;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    /* Push to bottom */
    padding-bottom: 2vh;
}

.sidebar-footer p {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-dimmed);
}

/* Main Content Area */
.content-area {
    margin-left: max(var(--sidebar-width), var(--min-sidebar-width));
    flex-grow: 1;
    min-height: 100vh;
    position: relative;
    padding: var(--padding-standard) var(--padding-standard) var(--padding-standard) 2vw;
}

/* Top Right Header (Social Icons) */
.top-right-header {
    position: fixed;
    top: var(--padding-standard);
    right: var(--padding-standard);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.social-icon {
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.social-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Bottom Right Footer Text */
.bottom-right-footer {
    position: fixed;
    bottom: var(--padding-standard);
    right: var(--padding-standard);
    z-index: 10;
}

.bottom-right-footer p {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-dimmed);
}

/* Content Sections */
.content-section {
    display: none;
    /* Hide sections by default */
    animation: fadeIn 0.8s ease-in-out;
}

.content-section.active-section {
    display: block;
    /* Show active section */
}

/* Profile Section Layout */
.profile-container {
    max-width: 800px;
    margin: 10vh auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.profile-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(100%) contrast(1.1);
    /* Default B&W styling */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#radio .profile-image img {
    filter: none;
    /* Keep the campfire photo in full color */
}

#radio .profile-text h2 {
    font-size: 1.4rem;
}

.profile-text {
    font-family: var(--font-jp);
}

.profile-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.profile-text .role {
    font-size: 1rem;
    color: var(--text-dimmed);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.bio-block p {
    font-size: 0.95rem;
    line-height: 2.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
}

/* Radio Links */
.radio-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.radio-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.radio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.spotify-btn:hover {
    color: #1DB954;
    /* Spotify Green */
    border-color: #1DB954;
}

.youtube-btn:hover {
    color: #FF0000;
    /* YouTube Red */
    border-color: #FF0000;
}

/* Contact Form Styles */
.contact-container {
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-jp);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

/* Radio Buttons Customization */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dimmed);
    transition: color 0.3s ease;
}

.radio-label:hover {
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    accent-color: rgba(255, 255, 255, 0.8);
    width: 1rem;
    height: 1rem;
}

.radio-label input[type="radio"]:checked+span {
    color: var(--text-primary);
}

/* Conditional Fields Animation */
.conditional-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin 0.5s ease;
    max-height: 500px;
    /* Large enough to hold the fields */
    opacity: 1;
}

.conditional-fields.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

/* Submit Button */
.submit-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    padding: 1rem 2rem;
    font-family: var(--font-en);
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* News Section Styles */
.news-container {
    max-width: 800px;
}

.news-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-item time {
    font-family: var(--font-en);
    font-size: 1.3rem;
    color: var(--text-dimmed);
    letter-spacing: 0.1em;
}

.news-item h3 {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.news-content p {
    font-size: 0.95rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.news-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    width: fit-content;
}

.text-link span {
    font-size: 0.8rem;
    color: var(--text-dimmed);
    transition: transform 0.3s ease;
}

.text-link:hover {
    opacity: 0.7;
}

.text-link:hover span {
    transform: translateX(3px);
}

.news-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin: 1.5rem 0;
}

/* Live Section Styles */
.live-container {
    max-width: 800px;
}

.live-tabs {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.live-tab {
    background: none;
    border: none;
    color: var(--text-dimmed);
    font-family: var(--font-jp);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.live-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.live-tab.active {
    color: var(--text-primary);
}

.live-tab.active::after {
    background: var(--text-primary);
}

.live-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

/* Tab Content */
.live-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.live-tab-content.active {
    display: block;
}

.live-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.live-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem 0;
}

.live-date-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    flex-shrink: 0;
}

.live-date-text {
    font-family: var(--font-en);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.live-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.live-venue {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--text-dimmed);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.live-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.live-status {
    font-size: 0.95rem;
    color: var(--text-dimmed);
    letter-spacing: 0.05em;
}

.live-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.3rem;
}

.live-archive-image {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.live-archive-row {
    display: flex;
    gap: 1rem;
}

.live-archive-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 1rem var(--padding-standard);
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(12px);
        justify-content: flex-start;
    }

    .logo {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .nav-menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem 1.2rem;
        margin-left: 0;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .nav-menu a.active {
        padding-left: 0;
        border-left: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.8);
        padding-bottom: 2px;
    }

    .nav-menu a.special-link {
        margin-top: 0;
    }

    .sidebar-footer {
        display: none;
    }

    .content-area {
        margin-left: 0;
        min-height: auto;
        padding: var(--padding-standard);
        padding-top: 110px;
        padding-bottom: calc(var(--padding-standard) + env(safe-area-inset-bottom, 80px));
    }

    .top-right-header {
        position: fixed;
        top: 1rem;
        right: var(--padding-standard);
        padding: 0;
        z-index: 101;
    }

    .profile-container {
        padding: 1.5rem;
        margin: 2vh auto;
    }

    .live-item {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .live-tabs {
        justify-content: center;
    }

    .live-date-badge {
        align-self: flex-start;
    }

    .live-archive-row {
        flex-wrap: wrap;
    }

    .live-archive-image img {
        max-width: 100%;
    }

    .bg-layer {
        position: fixed;
    }

    .bottom-right-footer {
        display: none;
    }
}