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

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
    --bg:          #0d0d0d;
    --bg-card:     #141414;
    --bg-card-alt: #1c1c1c;
    --accent:      #f5e642;
    --accent-dim:  rgba(245, 230, 66, 0.12);
    --text:        #f2f2f2;
    --text-muted:  #666;
    --border:      #232323;
    --nav-height:  64px;
    --max-width:   960px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }

/* ── Header / Nav ────────────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-brand {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.header-brand span { color: var(--accent); }

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

#main-nav a {
    display: block;
    padding: 0.4rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

#main-nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

/* ── Burger menu ─────────────────────────────────────────────────────────── */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.burger-menu-line {
    width: 2rem;
    height: 0.2rem;
    background: var(--text);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,230,66,0.08) 0%, transparent 65%),
        var(--bg);
    position: relative;
}

#logo {
    width: 180px; /* overridden by JS once fonts load */
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px rgba(245, 230, 66, 0.2);
    margin-bottom: 1.5rem;
    transition: width 0.2s, height 0.2s;
}

#hero h1 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.75rem;
}

#hero .tagline {
    color: var(--text-muted);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.gig-today-alert {
    display: none;
    background: var(--accent);
    color: #111;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.5); }
    50%       { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
section {
    padding: 5rem 2rem;
}

section:nth-child(odd) { background: #0d0d0d; }

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--accent);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* ── About ───────────────────────────────────────────────────────────────── */
#about p {
    color: #bbb;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ── Gigs ────────────────────────────────────────────────────────────────── */
.gigs-subsection { margin-bottom: 3rem; }

.gigs-subsection h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.gig-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    transition: border-color 0.2s;
}

.gig-card:hover { border-color: #333; }

.gig-card.upcoming { border-left: 3px solid var(--accent); }

.gig-date-block {
    min-width: 56px;
    text-align: center;
    background: var(--accent-dim);
    border-radius: 6px;
    padding: 0.5rem 0.4rem;
    flex-shrink: 0;
}

.gig-card.upcoming .gig-date-block {
    background: var(--accent);
    color: #111;
}

.gig-date-block .day {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.gig-date-block .month-year {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-top: 0.15rem;
}

.gig-info { flex: 1; }

.gig-info .venue {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gig-info .details {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.gig-time {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.empty-state {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    padding: 1rem 0;
}

/* ── Songs ───────────────────────────────────────────────────────────────── */
.songs-filter {
    margin-bottom: 1.5rem;
}

.songs-filter input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Inter', Arial, sans-serif;
    width: 280px;
    max-width: 100%;
    transition: border-color 0.2s;
}

.songs-filter input:focus {
    outline: none;
    border-color: var(--accent);
}

.songs-filter input::placeholder { color: var(--text-muted); }

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}

.song-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}

.song-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-alt);
}

.song-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s, padding-top 0.2s;
}

.song-card:hover .song-details,
.song-card.tapped .song-details {
    max-height: 80px;
    opacity: 1;
}

.song-detail-album,
.song-detail-year,
.song-detail-chart {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
}

.song-detail-album  { background: #1e2a3a; color: #7aacdb; }
.song-detail-year   { background: #2a2a1e; color: #c8b86a; }
.song-detail-chart  { background: #1e2a1e; color: #7adb9a; }

.song-title {
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: var(--accent);
    font-size: 0.78rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songs-count {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 1rem;
}

/* ── Available Dates ─────────────────────────────────────────────────────── */
#available-dates .intro {
    color: #bbb;
    max-width: 520px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.date-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.date-pill.bookable {
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.date-pill.bookable:hover {
    border-color: var(--accent);
    background: var(--bg-card-alt);
    transform: translateY(-2px);
}

.date-pill .dp-date {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.date-pill .dp-notes {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.date-pill .dp-cta {
    font-size: 0.72rem;
    color: var(--accent);
    margin-top: 0.4rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.date-pill.bookable:hover .dp-cta { opacity: 1; }

/* ── Booking modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}
.modal-close:hover { color: #fff; }

.modal-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.modal-date {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.mform-group {
    margin-bottom: 1.1rem;
}

.mform-group label {
    display: block;
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 0.35rem;
}

.mform-hint {
    display: block;
    font-size: 0.75rem;
    color: #555;
    font-weight: normal;
    margin-top: 0.15rem;
}

.mform-group input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 0.9rem;
    font-family: inherit;
}

.mform-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: #111;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Oswald', Arial, sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-submit:hover { filter: brightness(1.1); }
.modal-submit:disabled { opacity: 0.6; cursor: default; }

.book-cta {
    display: inline-block;
    margin-top: 0.5rem;
    background: var(--accent);
    color: #111;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: opacity 0.2s;
}

.book-cta:hover { opacity: 0.85; }

.btn-suggest {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.btn-suggest:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-detail {
    color: #bbb;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.contact-detail strong {
    color: var(--text);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
    color: var(--text);
    border-color: #444;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
    background: #050505;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }

    .burger-menu {
        display: flex;
    }

    #main-nav ul {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        z-index: 100;
    }

    #main-nav.mobile-menu-open ul {
        display: flex;
    }

    #main-nav ul li { display: block; }

    #main-nav a {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #hero h1 { font-size: 2.5rem; }

    section { padding: 3.5rem 1.25rem; }

    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .dates-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Gig cards: stack on very small screens */
    .gig-card {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .gig-time { width: 100%; font-size: 0.8rem; }

    /* Song details always visible on touch */
    @media (hover: none) {
        .song-details {
            max-height: none;
            opacity: 1;
            margin-top: 0.6rem;
            padding-top: 0.6rem;
        }
    }
}

@media (max-width: 480px) {
    .dates-grid { grid-template-columns: 1fr; }

    .songs-grid { grid-template-columns: 1fr 1fr; }

    .gig-card { padding: 0.75rem 1rem; }
}
