/* BSides Canberra IX (Blue) theme
   Drop-in replacement for assets/css/style.css
   Palette: neon blue/cyan on black, subtle glow, retro grid.
*/

:root{
  --bg: #07090c;
  --bg2: #0b0f16;
  --text: #eaf2ff;
  --muted: rgba(234,242,255,0.72);

  --accent: #00b8ff;     /* primary neon blue */
  --accent2: #2fe2ff;    /* brighter cyan */
  --accent3: #0077ff;    /* deeper blue */
  --border: rgba(0,184,255,0.28);

  --shadow: rgba(0,184,255,0.22);
  --shadow2: rgba(47,226,255,0.18);

  --radius: 16px;
  --radius2: 22px;

  --maxw: 1120px;

  --glow-1: 0 0 10px var(--shadow);
  --glow-2: 0 0 22px var(--shadow);
  --glow-3: 0 0 44px var(--shadow2);

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(47,226,255,0.08), transparent 55%),
              radial-gradient(1000px 700px at 70% 25%, rgba(0,119,255,0.08), transparent 60%),
              linear-gradient(180deg, #04060a 0%, var(--bg) 55%, #04060a 100%);
  overflow-x: hidden;
}

/* Subtle film grain */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}

/* Retro grid */
body::after{
  content:"";
  position: fixed;
  inset: -40px;
  pointer-events: none;
  background-image: url("../img/grid-tile.png");
  background-size: 512px 512px;
  opacity: 0.35;
  transform: perspective(900px) rotateX(65deg) translateY(25vh);
  transform-origin: center top;
  filter: drop-shadow(0 0 34px rgba(0,184,255,0.12));
  z-index: 0;
}

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

.container{
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(4,6,10,0.55);
  border-bottom: 1px solid rgba(0,184,255,0.18);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand img{
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0,184,255,0.24));
}
.brand-title{
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-tag{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  font-size: 14px;
  color: rgba(234,242,255,0.86);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, color 120ms ease;
}
.nav a:hover{
  color: #ffffff;
  border-color: rgba(0,184,255,0.35);
  box-shadow: var(--glow-1);
  text-decoration: none;
}
.nav a.active{
  color: #ffffff;
  border-color: rgba(47,226,255,0.45);
  box-shadow: var(--glow-2);
}

/* Mobile nav */
.nav-toggle{
  display: none;
  border: 1px solid rgba(0,184,255,0.35);
  background: rgba(10,14,20,0.55);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--glow-1);
  cursor: pointer;
}

@media (max-width: 860px){
  .nav-toggle{ display: inline-flex; align-items:center; gap:10px; }
  .nav{
    display: none;
    width: 100%;
    padding: 12px 0 2px 0;
  }
  .nav.open{ display: flex; }
  .header-inner{ flex-wrap: wrap; }
}

/* Hero */
.hero{
  position: relative;
  z-index: 1;
  padding: 54px 0 26px 0;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.hero-logo{
  width: min(720px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(0,184,255,0.22));
}
.hero h1{
  margin: 0 0 12px 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0,184,255,0.22), 0 0 36px rgba(47,226,255,0.12);
}
.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: none;
}
.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

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

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(47,226,255,0.55);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0,184,255,0.22), rgba(0,119,255,0.12));
  box-shadow: var(--glow-1);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--glow-2), var(--glow-1);
  border-color: rgba(47,226,255,0.8);
  text-decoration: none;
}
.btn.secondary{
  background: rgba(10,14,20,0.55);
  border-color: rgba(0,184,255,0.30);
  color: rgba(234,242,255,0.9);
}
.btn.secondary:hover{
  border-color: rgba(0,184,255,0.55);
}

/* Sections */
.section{
  position: relative;
  z-index: 1;
  padding: 26px 0;
}
.section h2{
  margin: 0 0 12px 0;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent2);
  text-shadow: 0 0 14px rgba(0,184,255,0.26);
}
.section p{
  color: var(--muted);
  line-height: 1.65;
}

/* Panels / Cards */
.panel{
  background: linear-gradient(180deg, rgba(10,14,20,0.78), rgba(6,8,12,0.72));
  border: 1px solid rgba(0,184,255,0.22);
  border-radius: var(--radius2);
  box-shadow: 0 0 0 1px rgba(0,184,255,0.10) inset, 0 0 34px rgba(0,184,255,0.10);
  padding: 18px;
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 4;
  background: rgba(10,14,20,0.62);
  border: 1px solid rgba(0,184,255,0.18);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(0,184,255,0.10) inset, var(--glow-1);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(47,226,255,0.35);
  box-shadow: 0 0 0 1px rgba(47,226,255,0.14) inset, var(--glow-2);
}
.card h3{
  margin: 0 0 8px 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent2);
  text-shadow: 0 0 12px rgba(0,184,255,0.22);
}
.card p{
  margin: 0 0 12px 0;
  color: var(--muted);
}
.card .btn{
  width: fit-content;
  padding: 10px 14px;
}

@media (max-width: 980px){
  .card{ grid-column: span 6; }
}
@media (max-width: 640px){
  .card{ grid-column: span 12; }
}

/* Tables (Schedule) */
.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(0,184,255,0.22);
  background: rgba(6,8,12,0.58);
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,184,255,0.14);
  text-align: left;
}
.table th{
  color: var(--accent2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0,184,255,0.08);
}
.table tr:hover td{
  background: rgba(0,184,255,0.06);
}

/* Badges / Pills */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,184,255,0.26);
  background: rgba(0,184,255,0.08);
  color: rgba(234,242,255,0.92);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Footer */
.footer{
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 24px 0 34px 0;
  border-top: 1px solid rgba(0,184,255,0.18);
  background: rgba(4,6,10,0.55);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer small{
  color: rgba(234,242,255,0.65);
}
.footer a{ color: rgba(234,242,255,0.78); }
.footer a:hover{ color: #ffffff; }

/* Utility */
.kicker{
  font-family: var(--mono);
  color: rgba(234,242,255,0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.hr{
  height: 1px;
  background: rgba(0,184,255,0.18);
  margin: 18px 0;
}

/* Reduce heavy effects when user prefers */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .card, .btn, .nav a{ transition: none !important; }
}

/* ================================
   HERO ART / POSTER FRAME FIX
   ================================ */

.hero-art,
.poster-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-art img,
.poster-frame img {
  max-width: min(85vw, 520px);
  height: auto;
  display: block;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-art img,
  .poster-frame img {
    max-width: 420px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-art img,
  .poster-frame img {
    max-width: 260px;
  }
}
