/* =========================================================
   Galveston Underground — Shared Stylesheet
   File: public_html/css/style.css
   ========================================================= */

/* ---------- CSS Variables (Palette) ---------- */
:root{
  --bg-primary: #0B0E13;
  --bg-secondary: #121826;
  --brand-blue: #1F4FD8;
  --brand-blue-bright: #3A6BFF;
  --text-primary: #E6E9F0;
  --text-muted: #9AA3B2;
  --border-subtle: #1C2436;

  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 1100px;
  --grid-gap: 16px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(58,107,255,.20), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(31,79,216,.14), transparent 55%),
    var(--bg-primary);
  color:var(--text-primary);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--brand-blue-bright); }
img{ max-width:100%; display:block; }

.container{
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
}

/* ---------- Shared Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,14,19,.72);
  border-bottom: 1px solid rgba(28,36,54,.75);
}

.site-header .inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}

.logo{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  white-space:nowrap;
}

.logo-mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(58,107,255,.95), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(31,79,216,.9), transparent 60%),
    linear-gradient(135deg, rgba(28,36,54,.8), rgba(18,24,38,.8));
  border: 1px solid rgba(28,36,54,.9);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.logo-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.logo-text .title{ font-size: 14px; text-transform: uppercase; }
.logo-text .sub{ font-size: 12px; color: var(--text-muted); font-weight: 600; }

.main-nav{
  display:flex;
  align-items:center;
  gap: 8px;
}

.nav-toggle{
  display:none;
  border:1px solid rgba(28,36,54,.9);
  background: rgba(18,24,38,.7);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

.nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 6px;
  align-items:center;
}

.nav-list a{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 14px;
}

.nav-list a:hover{
  background: rgba(18,24,38,.8);
  border-color: rgba(28,36,54,.9);
  color: var(--text-primary);
}

.nav-list a[aria-current="page"]{
  background: linear-gradient(135deg, rgba(31,79,216,.22), rgba(58,107,255,.08));
  border-color: rgba(58,107,255,.35);
  color: var(--text-primary);
}

/* ---------- Page Layout ---------- */
main{ padding: 28px 0 56px; }

.page-header{
  padding: 22px 0 18px;
}

.page-header h1{
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
}

.page-header p{
  margin: 0;
  color: var(--text-muted);
  max-width: 72ch;
}

/* ---------- Utility ---------- */
.panel{
  background: rgba(18,24,38,.55);
  border: 1px solid rgba(28,36,54,.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin: 28px 0 12px;
}

.section-title h2{
  margin:0;
  font-size: 18px;
  letter-spacing: .2px;
}

.section-title .hint{
  margin:0;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Responsive Video Embed ---------- */
.video-embed{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(28,36,54,.9);
  background: rgba(11,14,19,.6);
  box-shadow: var(--shadow);
}

.video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* ---------- Video Grid + Card ---------- */
.video-grid{
  display:grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(12, 1fr);
  margin-top: 14px;
}

.video-card{
  grid-column: span 12;
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(28,36,54,.85);
  background: rgba(18,24,38,.48);
  box-shadow: var(--shadow-soft);
}

.video-card .meta{
  padding: 14px 14px 16px;
}

.video-card h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.video-card p{
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Grid breakpoints */
@media (min-width: 720px){
  .video-card{ grid-column: span 6; }
}
@media (min-width: 1024px){
  .video-card{ grid-column: span 4; }
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid rgba(28,36,54,.75);
  padding: 22px 0 26px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 860px){
  .nav-toggle{ display:inline-flex; }
  .nav-list{
    position: absolute;
    right: 16px;
    top: calc(var(--header-h) - 8px);
    flex-direction:column;
    align-items:stretch;
    background: rgba(11,14,19,.92);
    border: 1px solid rgba(28,36,54,.9);
    border-radius: 16px;
    padding: 10px;
    min-width: 220px;
    box-shadow: var(--shadow);
    display:none;
  }
  .nav-list[data-open="true"]{ display:flex; }
  .nav-list a{ width:100%; justify-content:flex-start; }
}