/*
Theme Name: The When & Where
Theme URI: https://thewhenandwhere.com
Author: Ray
Author URI: https://thewhenandwhere.com
Description: Custom theme for The When & Where — a curated live events guide for the Raleigh-Durham Triangle.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: whenandwhere
*/

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

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

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  line-height: 1.5;
}

/* ── HEADER ── */
header {
  padding: 14px 20px 10px;
  border-bottom: 2px solid #111;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
}
.nameplate-left { display: flex; flex-direction: column; gap: 4px; }
.nameplate-title { font-size: 18px; font-weight: 400; letter-spacing: 0.02em; line-height: 1; text-decoration: none; color: #111; }
.nameplate-logo { width: 36px; height: 36px; flex-shrink: 0; margin-top: 2px; }

nav { display: flex; gap: 16px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
nav a { color: #111; text-decoration: none; font-weight: 700; }
nav a:hover { text-decoration: underline; }
nav a.active { text-decoration: underline; }

/* ── PAGE ── */
.page { max-width: 900px; margin: 0 auto; padding: 0 20px 64px; }

/* ── SECTION HEADERS ── */
.section-header {
  margin-top: 32px; padding: 5px 0;
  border-top: 2px solid #111; border-bottom: 1px solid #bbb;
  margin-bottom: 2px; display: flex; align-items: baseline; justify-content: space-between;
}
.section-title { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.section-note { font-size: 10px; color: #999; font-style: italic; }

/* ── DATE GROUP ── */
.date-group { margin-top: 28px; }
.date-header {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 5px 0;
  border-top: 2px solid #111; border-bottom: 1px solid #bbb;
  margin-bottom: 2px;
}

/* ── EVENT ROW ── */
.event-row { padding: 8px 0 5px; border-bottom: 1px solid #ebebeb; }
.event-row:hover { background: #fafafa; }
.event-line1 { display: flex; align-items: center; gap: 10px; }
.event-time { font-size: 12px; color: #777; white-space: nowrap; min-width: 42px; flex-shrink: 0; }
.event-name { font-weight: 700; color: #111; white-space: nowrap; flex-shrink: 0; }
.event-sep { color: #ccc; flex-shrink: 0; }
.event-venue { color: #777; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 40px; }
.event-venue:hover { color: #111; text-decoration: underline; }
.event-line2 { display: flex; align-items: center; padding-left: 52px; margin-top: 3px; gap: 10px; }
.event-meta { font-size: 11px; color: #999; flex: 1; }
.event-icons { display: flex; gap: 6px; align-items: center; }

/* ── ICONS ── */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; opacity: 0.5; transition: opacity 0.12s; text-decoration: none; }
.ico:hover { opacity: 1; }
.ico svg { width: 14px; height: 14px; }

/* ── ARTIST / VENUE ROWS ── */
.artist-row, .venue-row { padding: 8px 0 6px; border-bottom: 1px solid #ebebeb; }
.artist-row:hover, .venue-row:hover { background: #fafafa; }
.artist-row-line1, .venue-row-line1 { display: flex; align-items: center; gap: 10px; }
.artist-row-name, .venue-row-name { font-weight: 700; color: #111; text-decoration: none; flex-shrink: 0; }
.artist-row-name:hover, .venue-row-name:hover { text-decoration: underline; }
.artist-row-sep, .venue-row-sep { color: #ccc; flex-shrink: 0; }
.artist-row-genre, .venue-row-city { font-size: 12px; color: #777; flex-shrink: 0; }
.artist-row-date, .venue-row-count { font-size: 11px; font-weight: 700; color: #111; margin-left: auto; white-space: nowrap; padding-left: 12px; }
.artist-row-date span, .venue-row-count span { font-weight: 400; color: #999; }
.artist-row-line2, .venue-row-line2 { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.artist-row-origin, .venue-row-cap { font-size: 11px; color: #999; }
.artist-row-tags, .venue-row-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-sm { font-size: 10px; letter-spacing: 0.04em; color: #999; border: 1px solid #e8e8e8; padding: 0px 5px; }
.artist-row-links { display: flex; gap: 10px; margin-left: auto; }
.view-events-sm { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #777; text-decoration: none; margin-left: auto; opacity: 0.5; transition: opacity 0.12s; }
.view-events-sm:hover { opacity: 1; color: #111; }
.row-link { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #777; text-decoration: none; opacity: 0.5; transition: opacity 0.12s; }
.row-link:hover { opacity: 1; color: #111; }

/* ── SPONSOR CARDS ── */
:root { --navy: #1a2e4a; --navy-mid: #4a6380; }
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sponsor-card { background: #f2f8fd; border: 3px solid var(--navy); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.sponsor-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-mid); }
.sponsor-name { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.2; text-decoration: none; }
.sponsor-name:hover { text-decoration: underline; }
.sponsor-city, .sponsor-capacity { font-size: 11px; color: var(--navy-mid); }
.sponsor-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tag { font-size: 10px; letter-spacing: 0.06em; border: 1px solid #aac4dd; padding: 1px 6px; color: var(--navy-mid); white-space: nowrap; background: #f8fbfe; }
.sponsor-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid #c8daea; }
.events-count { font-size: 11px; font-weight: 700; color: var(--navy); }
.events-count span { font-weight: 400; color: var(--navy-mid); }
.view-events { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); text-decoration: none; opacity: 0.6; transition: opacity 0.12s; }
.view-events:hover { opacity: 1; text-decoration: underline; }

/* ── RANDOMIZER ── */
.randomizer { margin-top: 44px; border-top: 2px solid #111; padding-top: 18px; display: flex; align-items: center; gap: 20px; }
.randomizer-label { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #999; white-space: nowrap; }
.randomizer-btn { font-family: 'Courier Prime', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: #111; color: #fff; border: none; padding: 7px 18px; cursor: pointer; }
.randomizer-btn:hover { background: #444; }
.randomizer-desc { font-size: 11px; color: #aaa; font-style: italic; }

/* ── COMING UP TOGGLE ── */
.coming-up-toggle { margin-top: 32px; border-top: 2px solid #111; border-bottom: 1px solid #bbb; padding: 5px 0; display: flex; align-items: baseline; justify-content: space-between; cursor: pointer; user-select: none; }
.coming-up-toggle:hover .toggle-hint { color: #111; }
.toggle-hint { font-size: 10px; color: #bbb; font-style: italic; transition: color 0.12s; }
.toggle-arrow { font-size: 10px; color: #bbb; transition: transform 0.2s, color 0.12s; display: inline-block; }
.coming-up-toggle:hover .toggle-arrow { color: #111; }
.toggle-arrow.open { transform: rotate(90deg); }
.coming-up-list { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.coming-up-list.open { max-height: 800px; }

/* ── LANDING HERO ── */
.hero { position: relative; width: 100%; height: 420px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.1) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 20px 28px; width: 100%; }
.hero-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.hero-headline { font-size: clamp(28px, 7vw, 48px); font-weight: 700; line-height: 1.05; color: #fff; margin-bottom: 6px; }
.hero-headline em { font-style: italic; font-weight: 400; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; max-width: 340px; line-height: 1.6; }
.hero-cta { display: inline-block; font-family: 'Courier Prime', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: #fff; color: #111; padding: 10px 22px; text-decoration: none; }
.hero-cta:hover { background: #eee; }

/* ── TONIGHT STRIP (landing) ── */
.tonight-strip { border-bottom: 2px solid #111; }
.tonight-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #999; padding: 8px 20px; border-bottom: 1px solid #ddd; }
.tonight-row { padding: 8px 20px 6px; border-bottom: 1px solid #ebebeb; }
.tonight-row:hover { background: #fafafa; }
.tonight-line1 { display: flex; align-items: center; gap: 8px; }
.tonight-time { font-size: 11px; color: #aaa; white-space: nowrap; min-width: 38px; flex-shrink: 0; }
.tonight-name { font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-decoration: none; font-size: 13px; }
.tonight-name:hover { text-decoration: underline; }
.tonight-sep { color: #ddd; flex-shrink: 0; }
.tonight-venue { font-size: 11px; color: #999; white-space: nowrap; flex-shrink: 0; }
.tonight-line2 { display: flex; align-items: center; padding-left: 46px; margin-top: 1px; }
.tonight-meta { font-size: 11px; color: #bbb; }
.see-all { display: block; padding: 10px 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: #777; border-top: 1px solid #ebebeb; background: #fafafa; }
.see-all:hover { color: #111; }

/* ── NAV TILES (landing) ── */
.nav-tiles { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid #111; }
.nav-tile { padding: 18px 20px 14px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #111; }
.nav-tile:nth-child(even) { border-right: none; }
.nav-tile:nth-last-child(-n+2) { border-bottom: none; }
.nav-tile:hover { background: #f5f5f5; }
.nav-tile-label { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #bbb; }
.nav-tile-title { font-size: 15px; font-weight: 700; line-height: 1.1; }
.nav-tile-desc { font-size: 11px; color: #aaa; font-style: italic; }

/* ── FOOTER ── */
.site-footer { padding: 14px 20px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid #ddd; }
.footer-left { font-size: 11px; color: #bbb; }
.footer-right { font-size: 11px; color: #bbb; font-style: italic; }

/* ── LETTER (about) ── */
.letter { max-width: 580px; margin-top: 48px; }
.letter-date { font-size: 11px; color: #999; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 28px; }
.letter p { font-size: 15px; line-height: 1.8; color: #111; margin-bottom: 20px; }
.letter-sig { margin-top: 36px; font-size: 15px; line-height: 1.8; color: #111; }
.letter-sig .sig-name { font-weight: 700; font-size: 16px; display: block; margin-top: 4px; }
.letter-divider { border: none; border-top: 1px solid #ddd; margin: 44px 0; max-width: 580px; }
.for-venues { max-width: 580px; }
.for-venues-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #999; margin-bottom: 10px; display: block; }
.for-venues p { font-size: 13px; line-height: 1.8; color: #555; margin-bottom: 12px; }
.for-venues a { color: #111; font-weight: 700; text-decoration: none; }
.for-venues a:hover { text-decoration: underline; }

/* ── DESKTOP ── */
@media (min-width: 680px) {
  header { padding: 16px 32px 12px; }
  .nameplate-title { font-size: 20px; }
  .nameplate-logo { width: 42px; height: 42px; }
  nav { font-size: 11px; gap: 20px; }
  .page { padding: 0 32px 64px; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { height: 520px; }
  .hero-content { padding: 0 40px 40px; }
  .tonight-label { padding: 8px 32px; }
  .tonight-row { padding: 8px 32px 6px; }
  .see-all { padding: 10px 32px; }
  .nav-tiles { grid-template-columns: repeat(4, 1fr); }
  .nav-tile { border-bottom: none; padding: 22px 24px 18px; }
  .nav-tile:nth-child(even) { border-right: 1px solid #ddd; }
  .nav-tile:last-child { border-right: none; }
  .site-footer { flex-direction: row; justify-content: space-between; padding: 16px 32px; }
}

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