/* ============================================================
   AGENDA / GIGS page – extends ../assets/css/style.css
   ============================================================ */

.page-agenda {
    --pink: #ec1580;
    --yellow: #f5c518;
    --green: #75c201;
    --blue: #0097ec;
    --red: #ff6b5e;
}



.page-agenda summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

/* ---------- Upcoming section ---------- */
.agenda-upcoming { padding: 70px 0 90px; }

.agenda-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}
.agenda-main { min-width: 0; }

.agenda-main .brush-title { position: relative; z-index: 2; margin-bottom: -22px; transform: rotate(-3deg); }
.gig-panel {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 4px;
    padding-top: 34px;
    overflow: hidden;
}

.gig-list { list-style: none; }

.show-row--pink   { --c: #ec1580; --on: #fff; }
.show-row--yellow { --c: #f5c518; --on: #000; }
.show-row--green  { --c: #75c201; --on: #000; }
.show-row--blue   { --c: #0097ec; --on: #000; }

.gig {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 0;
    align-items: center;
    min-height: 88px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--c);
    padding: 10px 0;
}

.gig-date {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "day month" "day wd";
    column-gap: 8px;
    align-items: center;
    padding: 0 12px 0 16px;
    color: var(--c);
    font-family: var(--font-ui);
    font-weight: 700;
    line-height: 1.05;
}
.gig-day {
    grid-area: day;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 3.1rem;
    line-height: 1;
}
.gig-month { grid-area: month; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; align-self: end; }
.gig-wd { grid-area: wd; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #aaa; align-self: start; white-space: nowrap; }

.gig-main { padding: 0 14px; min-width: 0; }
.gig-venue {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #fff;
    overflow-wrap: anywhere;
}
.gig-place {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c);
}
.gig-time {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.85rem;
    color: #ccc;
}

.gig-action { padding: 0 16px; }

/* Route button: same angled/grunge look as the home 'Tickets' button */
.gig-route {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 22px;
    white-space: nowrap;
    background-color: var(--c, var(--yellow));
    background-image: url('../../images/grunge-mask.png');
    background-blend-mode: multiply;
    background-size: 100% 100%;
    color: var(--on, #000);
    transition: opacity 0.15s, transform 0.15s;
}
.gig-route:hover { opacity: 0.85; transform: translateY(-1px); }

.gig-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
}
.gig-badge--private { color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.gig-badge--cancelled { background: var(--red); color: #000; transform: rotate(-3deg); }

.gig-more {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 28px 20px 24px;
    padding: 18px 22px;
    border: 2px dashed rgba(245, 197, 24, 0.55);
    color: #ddd;
    font-size: 0.95rem;
}
.gig-more svg { width: 46px; height: 46px; flex-shrink: 0; color: var(--yellow); }
.gig-more-h {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--pink);
}

/* ---------- Sidebar ---------- */
.agenda-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 110px;
    margin-top: 28px;
}
.side-card {
    position: relative;
    padding: 26px 28px 30px;
}
.side-title {
    font-family: var(--font-ui);
    font-style: italic;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 14px;
    display: inline-block;
    transform: rotate(-3deg);
}
.side-title--yellow { color: var(--yellow); }
.side-title--pink { color: var(--pink); }

.next-date { display: flex; align-items: baseline; gap: 12px; color: var(--pink); }
.next-day { font-family: var(--font-display); font-size: 4rem; line-height: 1; }
.next-month { font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; }
.next-venue { margin-top: 6px; font-family: var(--font-ui); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.15; }
.next-place { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.next-time { color: #ccc; font-size: 0.9rem; }
.side-card--next .gig-route { --c: var(--pink); --on: #fff; margin-top: 16px; }
.side-card--book p { font-size: 0.95rem; color: #ddd; margin-bottom: 20px; }

/* ---------- Past gigs / archive ---------- */
.past-section { background: #000; padding: 110px 0 70px; }
.past-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-bottom: 28px;
}
.past-head .sec-title { margin-bottom: 0.6rem; }
.past-intro { color: #bbb; max-width: 46ch; font-size: 0.95rem; }
.past-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-btn {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.tool-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.tool-btn[hidden] { display: none; }

.archive { padding: 18px 22px; }
.year-group { border-bottom: 2px solid rgba(255, 255, 255, 0.12); }
.year-group:last-child { border-bottom: 0; }

.year-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 8px;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background 0.15s;
}
.year-summary::-webkit-details-marker { display: none; }
.year-summary:hover { background: rgba(255, 255, 255, 0.04); }
.year-label {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--yellow);
}
.year-count {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: #bbb;
}
.year-chev {
    margin-left: auto;
    align-self: center;
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--pink);
    border-bottom: 3px solid var(--pink);
    transform: rotate(45deg);
    margin-right: 10px;
    transition: transform 0.2s;
}
.year-group[open] > .year-summary .year-chev { transform: rotate(-135deg); }

.past-list { list-style: none; padding: 0 8px 14px; }
.past-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1.4fr) minmax(0, 1fr) minmax(110px, auto);
    gap: 4px 16px;
    align-items: center;
    padding: 10px 14px;
    border-left: 4px solid var(--c, var(--pink));
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 6px;
    font-family: var(--font-ui);
    letter-spacing: 0.05em;
}
.past-row:nth-child(4n+1) { --c: var(--pink); }
.past-row:nth-child(4n+2) { --c: var(--yellow); }
.past-row:nth-child(4n+3) { --c: var(--green); }
.past-row:nth-child(4n+4) { --c: var(--blue); }

.past-date { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; color: var(--c); white-space: nowrap; }
.past-venue { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.past-place { font-weight: 500; font-size: 1rem; text-transform: uppercase; color: #bbb; }
.past-meta { display: flex; gap: 10px; align-items: center; justify-content: flex-end; font-family: var(--font-body); font-size: 0.85rem; color: #ccc; }

/* Cancelled: struck through + badge */
.past-row.is-cancelled { --c: #666; background: rgba(255, 107, 94, 0.06); }
.past-row.is-cancelled .past-date,
.past-row.is-cancelled .past-venue,
.past-row.is-cancelled .past-place {
    color: #8a8a8a;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--red);
}

/* ---------- Booking banner ---------- */
.book-banner { padding: 70px 0; }
.book-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px 48px;
}
.book-banner-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transform: rotate(-3deg);
}
.bb-white { color: #fff; display: block; }
.bb-yellow { color: var(--yellow); display: block; }
.book-banner-actions { text-align: center; }
.book-alt { margin-top: 14px; font-size: 0.9rem; color: #ccc; }
.book-alt a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.book-alt a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .agenda-grid { grid-template-columns: minmax(0, 1fr); }
    .agenda-side { position: static; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
    .past-row { grid-template-columns: 90px minmax(0, 1.4fr) minmax(0, 1fr) auto; }
}

@media (max-width: 768px) {

    .brush-title { font-size: 1.9rem; padding: 6px 60px 6px 26px; }
    .agenda-upcoming { padding-bottom: 70px; }
    .agenda-side { grid-template-columns: 1fr; }

    .gig-venue { font-size: 1.2rem; }
    .past-section { padding-top: 90px; }
    .archive { padding: 12px 10px; }
    .year-summary { padding-left: 4px; }
    .past-row {
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas: "date venue" "date place" ". meta";
    }
    .past-date { grid-area: date; align-self: start; }
    .past-venue { grid-area: venue; }
    .past-place { grid-area: place; }
    .past-meta { grid-area: meta; justify-content: flex-start; }
    .past-meta:empty { display: none; }

    .book-banner-inner { flex-direction: column; align-items: flex-start; }
    .book-banner-actions { text-align: left; }
}

@media (max-width: 480px) {
    .gig {
        grid-template-columns: 92px minmax(0, 1fr);
        grid-template-areas: "date main" "date action";
        row-gap: 8px;
        padding: 12px 0;
    }
    .gig-date { grid-area: date; grid-template-columns: 1fr; grid-template-areas: "day" "month" "wd"; justify-items: start; padding: 0 8px 0 14px; row-gap: 0; align-self: start; }
    .gig-day { font-size: 2.6rem; }
    .gig-month { align-self: start; font-size: 1rem; }
    .gig-wd { font-size: 0.68rem; white-space: normal; }
    .gig-main { grid-area: main; padding: 0 12px 0 4px; }
    .gig-action { grid-area: action; padding: 0 12px 0 4px; }
    .gig-more { flex-direction: column; align-items: flex-start; margin: 22px 14px 20px; }
    .year-label { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gig-route, .year-chev { transition: none; }
}

/* Banner readability over the paint cloud */
.book-banner-text {
    position: relative;
    isolation: isolate;
    padding: 14px 30px;
    background: #000;
    box-shadow: 0 0 0 6px #fff;
}
.book-alt {
    display: inline-block;
    padding: 6px 14px;
    background: #000;
    color: #fff;
}
.page-agenda main { background: #000; }
.book-banner-text { font-size: clamp(2rem, 4vw, 3.2rem); }
.book-banner-inner { flex-wrap: nowrap; }
.book-banner-actions { flex-shrink: 0; }
@media (max-width: 900px) {
    .book-banner-inner { flex-wrap: wrap; }
}

/* Festival: subtle small tag next to the venue */
.gig-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    vertical-align: middle;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c, var(--yellow));
    box-shadow: inset 0 0 0 1px currentColor;
    border-radius: 2px;
    opacity: 0.85;
}
.gig-empty { color: #ccc; font-family: var(--font-ui); padding: 24px 20px; }
