/* style.css - Dark Theme, Sidebar Layout */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --color-background: #1a1a1a;
    --color-surface1: #282828;
    --color-surface2: #3f3f3f;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #b0b0b0;
    --color-primary-accent: #b34e02;
    --color-primary-accent-hover: #ca7540;
    --color-secondary-accent: #575757;
    --sidebar-width: 80px;
    --mobile-header-height: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-size: 16px;
}

/* === Sidebar (Desktop) === */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #111;
    border-right: 1px solid #333;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: width 0.3s ease;
}

.sidebar-logo {
    color: var(--color-primary-accent);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    width: var(--sidebar-width);
    justify-content: center;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}
.sidebar-nav a.active {
    color: var(--color-primary-accent);
    background-color: rgba(179, 78, 2, 0.1);
}
.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--color-primary-accent);
}

.sidebar-nav .nav-icon {
    font-size: 1.2em;
    width: 30px;
    text-align: center;
}

.sidebar-nav .nav-text {
    display: none;
    position: absolute;
    left: calc(var(--sidebar-width) + 10px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #222;
    color: var(--color-text-primary);
    padding: 6px 16px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.85em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-nav a:hover .nav-text {
    display: block;
    opacity: 1;
}

.sidebar-social {
    margin-top: auto;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.sidebar-social a {
    color: var(--color-text-secondary);
    font-size: 1.1em;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}
.sidebar-social a:hover {
    color: var(--color-primary-accent);
    transform: scale(1.2);
}

/* === Mobile Header === */
#mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-header-height);
    background-color: #1f1f1f;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1001;
    border-bottom: 1px solid #333;
}

.mobile-logo a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
}

#hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
#hamburger-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#hamburger-button.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger-button.active span:nth-child(2) { opacity: 0; }
#hamburger-button.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-nav {
    display: none;
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--mobile-header-height));
    background-color: rgba(26, 26, 26, 0.98);
    padding-top: 30px;
    text-align: center;
    overflow-y: auto;
}
#mobile-nav.active {
    display: block;
}
#mobile-nav ul { list-style: none; }
#mobile-nav li { margin-bottom: 8px; }
#mobile-nav a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1.3em;
    padding: 12px 20px;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
}
#mobile-nav a:hover {
    color: var(--color-primary-accent);
    background-color: rgba(179, 78, 2, 0.08);
}
#mobile-nav a i {
    width: 28px;
    text-align: center;
    margin-right: 8px;
    color: var(--color-primary-accent);
}
.mobile-social {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.mobile-social a {
    color: var(--color-text-secondary);
    font-size: 1.4em;
    padding: 0;
    display: inline;
}
.mobile-social a:hover {
    color: var(--color-primary-accent);
    background-color: transparent;
}

/* === Main Content Area === */
#main-content {
    padding-left: var(--sidebar-width);
    width: 100%;
    min-height: 100vh;
}

/* === Section Styling === */
.content-section {
    padding: 80px 0;
}
.content-section.alt-bg {
    background-color: var(--color-surface1);
}
.full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === Typography === */
h1, h2, h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.8em;
    font-weight: 600;
}
h1 { font-size: 3em; }
h2 {
    font-size: 2.2em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-accent);
    display: inline-block;
    margin-bottom: 40px;
}
h2 i {
    color: var(--color-primary-accent);
    margin-right: 10px;
    font-size: 0.85em;
}
h3 { font-size: 1.4em; color: var(--color-text-secondary); }

p {
    margin-bottom: 1em;
    color: var(--color-text-secondary);
}

a { color: var(--color-primary-accent); text-decoration: none; }
a:hover { color: var(--color-primary-accent-hover); }
a.text-link { text-decoration: underline; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    margin: 5px;
}
.btn i {
    margin-right: 6px;
}
.btn-primary {
    background-color: var(--color-primary-accent);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(179, 78, 2, 0.3);
    color: #fff;
}
.btn-secondary {
    background-color: var(--color-surface2);
    color: var(--color-text-primary);
    border: 1px solid var(--color-secondary-accent);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-accent);
    transform: translateY(-2px);
    color: var(--color-text-primary);
}

.hero-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Forms === */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-surface2);
    background-color: var(--color-surface1);
    color: var(--color-text-primary);
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary-accent);
    outline: none;
}
textarea { resize: vertical; }

/* === Hero Section === */
.hero-section {
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered scrim: darker at edges (vignette) + warm accent wash at the foot */
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(to top, rgba(179, 78, 2, 0.18) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Staggered fade-up on first load */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
    opacity: 0;
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-photo        { animation-delay: 0.1s; }
.hero-content h1   { animation-delay: 0.3s; }
.hero-content p    { animation-delay: 0.5s; }
.hero-buttons      { animation-delay: 0.7s; }

.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 0;
    object-fit: cover;
    margin-bottom: 20px;
    overflow: visible;
}
.hero-content h1 { font-size: 3.5em; color: #fff; margin-bottom: 5px; }
.hero-content p { font-size: 1.2em; color: var(--color-text-secondary); max-width: 60ch; margin-left: auto; margin-right: auto; margin-bottom: 30px; letter-spacing: 1px; }

/* === About Section === */
.about-content { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.about-text { flex: 2; min-width: 300px; }
.about-image { flex: 1; min-width: 250px; text-align: center; }
.about-image img { max-width: 100%; height: auto; border-radius: 8px; }

#about {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/about-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
}

#about::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background-image: url('images/me-bw.png');
    background-size: cover;
    background-position: top right;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* === Gigs Section === */
.gigs-list { max-width: 800px; margin: 0 auto; }
.gig-item {
    display: flex;
    align-items: center;
    background-color: var(--color-surface2);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid var(--color-primary-accent);
}
.gig-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.gig-date {
    text-align: center;
    color: var(--color-primary-accent);
    padding-right: 20px;
    min-width: 60px;
}
.gig-date .month { display: block; font-size: 0.85em; text-transform: uppercase; letter-spacing: 1px; }
.gig-date .day { display: block; font-size: 2em; font-weight: bold; line-height: 1; }
.gig-info { flex-grow: 1; }
.gig-info h3 { font-size: 1.2em; margin-bottom: 4px; color: var(--color-text-primary); }
.gig-info p { font-size: 0.9em; color: var(--color-text-secondary); margin: 0; }
.gig-info p i { color: var(--color-primary-accent); margin-right: 4px; font-size: 0.85em; }
.gig-item .btn { margin-left: auto; padding: 8px 15px; font-size: 0.9em; white-space: nowrap; }
.loading-message { text-align: center; color: var(--color-text-secondary); }
.no-gigs-message { color: var(--color-text-secondary); margin-top: 20px; }
.no-gigs-message i { color: var(--color-primary-accent); margin-right: 6px; }

/* === Music Section === */
.audio-player .track {
    margin-bottom: 15px;
    background-color: var(--color-surface1);
    padding: 18px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    transition: background-color 0.3s ease;
}
.audio-player .track:hover {
    background-color: var(--color-surface2);
}
.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.track-icon {
    color: var(--color-primary-accent);
    font-size: 1.4em;
}
.audio-player .track-title { font-weight: bold; }
.audio-player audio { max-width: 100%; height: 40px; }
.music-coming-soon {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-surface1);
    border-radius: 8px;
}
.music-coming-soon i {
    font-size: 2.2em;
    color: var(--color-primary-accent);
    margin-bottom: 12px;
}
.music-coming-soon p {
    font-size: 1.1em;
    margin: 0;
}

/* === Setlist Section === */
#playlist {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#playlist .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

#playlist::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/playlist-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

#playlist::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

#playlist .sub-heading {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

#playlist h2 {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-bottom-color: var(--color-primary-accent);
}

.setlist-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-around;
    margin-bottom: 40px;
}

.setlist-set {
    flex: 1;
    min-width: 280px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary-accent);
    backdrop-filter: blur(5px);
}

.setlist-set h3 {
    font-size: 1.3em;
    color: var(--color-primary-accent);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-surface2);
}
.set-duration {
    font-size: 0.7em;
    color: var(--color-text-secondary);
    font-weight: normal;
}

.setlist-set ul {
    list-style: none;
    padding-left: 0;
}

.setlist-set li {
    color: var(--color-text-secondary);
    padding: 7px 0;
    border-bottom: 1px dotted rgba(63, 63, 63, 0.6);
    font-size: 0.95em;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.setlist-set li:hover {
    color: var(--color-text-primary);
    padding-left: 5px;
}

.setlist-set li:last-child {
    border-bottom: none;
}

#playlist .disclaimer {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-top: 20px;
}

/* === Gallery Section === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 220px;
    gap: 16px;
}

/* Let a couple of items span larger for a dynamic, editorial layout */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-row: span 2; }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

/* Gradient + caption overlay revealed on hover */
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.gallery-item .gallery-caption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}
.gallery-item .gallery-caption i { color: var(--color-primary-accent-hover); margin-right: 6px; }

.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover { background: var(--color-primary-accent); transform: rotate(90deg); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.3em;
    cursor: pointer;
    transition: background 0.25s ease;
}
.lightbox-nav:hover { background: var(--color-primary-accent); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* === Contact Section === */
.contact-content { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info { flex: 1; min-width: 280px; }
.contact-info p i {
    color: var(--color-primary-accent);
    width: 20px;
    margin-right: 8px;
}
.contact-form { flex: 1.5; min-width: 300px; }
.contact-social {
    margin-top: 20px;
    display: flex;
    gap: 16px;
}
.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-surface2);
    color: var(--color-text-secondary);
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.contact-social a:hover {
    background-color: var(--color-primary-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* === Footer === */
.site-footer {
    text-align: center;
    padding: 30px 15px;
    background-color: #111;
    color: var(--color-text-secondary);
    font-size: 0.9em;
    border-top: 1px solid #333;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a {
    color: var(--color-text-secondary);
    font-size: 1.1em;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--color-primary-accent);
}
.footer-credit {
    font-size: 0.85em;
    opacity: 0.7;
}
.footer-credit a {
    color: var(--color-text-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.footer-credit a:hover {
    color: var(--color-primary-accent);
}

/* === Scroll Fade-in Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Utility === */
.text-center { text-align: center; }

/* === Media Queries === */

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }

    #sidebar {
        display: none;
    }

    #mobile-header {
        display: flex;
    }

    #main-content {
        padding-left: 0;
        padding-top: var(--mobile-header-height);
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; margin-bottom: 30px; }

    .content-section { padding: 60px 0; }

    .hero-photo { width: 180px; height: 180px; }
    .hero-content h1 { font-size: 2.8em; }

    .gig-item { flex-direction: column; text-align: center; border-left: none; border-top: 3px solid var(--color-primary-accent); }
    .gig-date { padding-right: 0; padding-bottom: 10px; margin-bottom: 5px; min-width: none; }
    .gig-item .btn { margin-left: 0; margin-top: 10px; }

    .contact-content { flex-direction: column; }

    .about-content { flex-direction: column; }

    /* Simpler two-up grid on tablet; drop the editorial spans */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-row: span 1; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.6em; }
    .btn { padding: 10px 20px; font-size: 0.9em; }
    .hero-photo { width: 140px; height: 140px; }
    .hero-content h1 { font-size: 2.3em; }

    /* Single column on phones */
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery-item:nth-child(1) { grid-column: span 1; }
}

/* Contact form status message */
.form-status {
    margin: 12px 0 0;
    font-size: 0.95em;
    min-height: 1.2em;
}
.form-status.success { color: #7bd88f; }
.form-status.error { color: #e07a7a; }
