@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');

:root {
    --bg: #000000;
    --bg-card: #121212;
    --text: #ffffff;
    --muted: #9a9a9a;
    --accent: #ffffff;
    --danger: #e5484d;
    --border: #2a2a2a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 16px;
}
h1 { font-size: 42px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

header.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

header.site-header img.logo { height: 72px; width: 72px; object-fit: cover; border-radius: 50%; background: #000; }

nav.main-nav { display: flex; gap: 28px; flex-wrap: wrap; }
nav.main-nav a {
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
nav.main-nav a:hover { text-decoration: none; border-bottom-color: var(--text); }
nav.main-nav a.active { border-bottom-color: var(--accent); }

.hero {
    position: relative;
    margin: 0 -24px 0;
    overflow: hidden;
}
.hero img {
    width: 100%;
    display: block;
    max-height: 620px;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.92) 100%);
}
.hero-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 24px 36px;
    z-index: 2;
}
.hero-overlay h1 {
    font-size: clamp(40px, 9vw, 110px);
    font-family: 'Rye', 'Times New Roman', serif;
    line-height: 0.95;
    margin: 0;
    letter-spacing: 0.01em;
}
.hero-overlay p {
    color: var(--muted);
    max-width: 640px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 10px;
}

.section { margin: 56px 0; }
.section h1, .section h2 { margin-bottom: 14px; }

.bio { color: var(--muted); max-width: 680px; font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border); }

.card {
    background: var(--bg);
    padding: 20px;
}
.card h3 { margin-bottom: 12px; }

.video-embed { position: relative; width: 100%; aspect-ratio: 9/16; max-height: 640px; }
.video-embed.youtube { aspect-ratio: 16/9; max-height: none; }
.video-embed iframe, .video-embed blockquote { width: 100%; height: 100%; border: 0; }

table.tour-table { width: 100%; border-collapse: collapse; }
table.tour-table th, table.tour-table td {
    text-align: left; padding: 16px 10px; border-bottom: 1px solid var(--border);
}
table.tour-table th {
    color: var(--muted); font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: .1em;
}
table.tour-table tr:hover td { background: var(--bg-card); }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 14px;
    padding: 13px 24px;
    border-radius: 0;
    border: 2px solid var(--accent);
    cursor: pointer;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--text); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(10%); }

footer.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 36px 0;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.socials { display: flex; gap: 22px; }
.socials a:hover { color: var(--text); }

/* --- Admin --- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px; background: var(--bg-card); border-right: 1px solid var(--border);
    padding: 24px 16px; flex-shrink: 0;
}
.admin-sidebar a { display: block; color: var(--text); padding: 10px 8px; font-weight: 600; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.admin-main { flex: 1; padding: 32px; max-width: 880px; }

.login-box {
    max-width: 360px; margin: 80px auto; background: var(--bg-card);
    border: 1px solid var(--border); padding: 28px;
}

form.stacked label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
form.stacked input[type=text], form.stacked input[type=date], form.stacked input[type=url],
form.stacked input[type=password], form.stacked input[type=email], form.stacked textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    background: #111; color: var(--text); font-size: 15px;
}
form.stacked textarea { min-height: 110px; resize: vertical; }
form.stacked input[type=file] { color: var(--muted); }

.flash {
    padding: 12px 16px; margin-bottom: 18px; font-weight: 600;
}
.flash.success { background: rgba(60, 200, 120, .15); color: #4ade80; }
.flash.error { background: rgba(229, 72, 77, .15); color: #f87171; }

.list-item {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px; border: 1px solid var(--border); margin-bottom: 10px;
}
.list-item .meta { color: var(--muted); font-size: 14px; }

.helptext { color: var(--muted); font-size: 14px; margin-top: 4px; }

.tour-poster { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
table.tour-table td .muted { color: var(--muted); }

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

.tour-list { display: flex; flex-direction: column; gap: 28px; }
.tour-card {
display: flex;
gap: 24px;
align-items: flex-start;
padding-bottom: 28px;
border-bottom: 1px solid var(--border);
}
.tour-card-poster {
width: 220px;
max-width: 40%;
aspect-ratio: 2/3;
object-fit: cover;
border-radius: 6px;
border: 1px solid var(--border);
flex-shrink: 0;
display: block;
}
.tour-card-poster-placeholder {
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
background: var(--bg-card);
}
.tour-card-info { flex: 1; min-width: 0; }
.tour-card-date {
font-weight: 700;
font-size: 13px;
text-transform: uppercase;
letter-spacing: .1em;
color: var(--accent);
margin-bottom: 6px;
}
.tour-card-city { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.tour-card-venue { color: var(--muted); margin-bottom: 16px; }
.tour-card-actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px 18px;
margin-top: 4px;
}
.tour-card-note { font-size: 15px; }

@media (max-width: 640px) {
.tour-card { flex-direction: column; }
.tour-card-poster { width: 100%; max-width: 320px; }
.tour-card-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; }
.tour-card-actions .btn { display: block; width: 100%; max-width: 320px; text-align: center; padding: 15px 20px; }
}


/* Instagram */
.ig-profile { display: flex; gap: 24px; align-items: center; margin-bottom: 40px; }
.ig-profile-pic { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.ig-profile-info h2 { margin-bottom: 4px; }
.ig-profile-stats { display: flex; gap: 24px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.ig-profile-stats span strong { color: var(--text); }
.ig-bio { color: var(--muted); max-width: 480px; margin-top: 8px; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 3px; }
.ig-item { position: relative; aspect-ratio: 1; overflow: hidden; display: block; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.ig-item:hover img { opacity: .75; }
.ig-item.ig-video-item .ig-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ig-item.ig-video-item .ig-play::after { content: "\25B6"; font-size: 28px; color: #fff; text-shadow: 0 0 12px rgba(0,0,0,.8); }
.ig-placeholder { width: 100%; height: 100%; background: var(--bg-card); }
.ig-preview { margin-top: 16px; }
.ig-preview .ig-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 640px) {
      header.site-header { flex-direction: column; gap: 12px; padding: 14px 0; }
      header.site-header img.logo { height: 52px; width: 52px; }
      nav.main-nav { gap: 10px 16px; justify-content: center; }
      nav.main-nav a { font-size: 11px; letter-spacing: 0.05em; }
  .ig-profile { flex-direction: column; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}


/* Instagram embed modal */
.ig-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.ig-modal.active { display: flex; }
.ig-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.ig-modal-content { position: relative; z-index: 1; max-width: 540px; width: 90%; margin: 0 auto; }
.ig-modal-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; padding: 0; }
.ig-modal-close:hover { opacity: .7; }
.ig-modal-frame iframe { width: 100%; height: 700px; border: none; display: block; }

/* Ticket modal (Buy Tickets opens the ticketing site in an overlay) */
.ticket-modal { display: none; position: fixed; inset: 0; z-index: 3000; align-items: center; justify-content: center; background: rgba(0,0,0,.88); }
.ticket-modal.active { display: flex; }
.ticket-modal-content { width: min(1100px, 94vw); height: min(860px, 90vh); background: #fff; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; }
.ticket-modal-bar { display: flex; justify-content: space-between; align-items: center; background: #000; padding: 8px 14px; }
.ticket-modal-bar a { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ticket-modal-bar a:hover { color: var(--text); }
.ticket-modal-close { background: none; border: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 2px; }
.ticket-modal-close:hover { opacity: .7; }
.ticket-modal-frame { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 640px) {
.ticket-modal-content { width: 100vw; height: 100dvh; border-radius: 0; }
}

/* Poster Lightbox */
.poster-clickable { cursor: pointer; transition: opacity 0.2s ease; }
.poster-clickable:hover { opacity: 0.85; }
.poster-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; }
.poster-lightbox.active { display: flex; }
.poster-lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.poster-lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.poster-lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; padding: 0; }
.poster-lightbox-close:hover { color: #ccc; }
/* Home page Next Up - horizontal scroll */
.home-tour-list { display: flex; overflow-x: auto; flex-wrap: nowrap; gap: 16px; padding-bottom: 8px; scrollbar-width: thin; }
.home-tour-list .tour-card { flex: 0 0 auto; width: 260px; }
.home-tour-list .tour-card-poster { height: auto; object-fit: contain; }
/* Buy Me a Coffee header button */
.bmc-btn {
display: inline-block;
background: #ffdd00;
color: #000;
font-weight: 800;
text-transform: uppercase;
font-size: 12px;
letter-spacing: .06em;
padding: 10px 18px;
border-radius: 999px;
white-space: nowrap;
}
.bmc-btn:hover { text-decoration: none; opacity: .85; }
@media (max-width: 640px) {
.bmc-btn { font-size: 11px; padding: 8px 14px; }
}
