/* ============================================================
   GAMER'S HAVEN — Main Stylesheet
   Theme: Dark gaming aesthetic matching the logo —
   Black/charcoal background, yellow-gold primary,
   royal blue shield accent, bold & gritty.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Exo+2:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Rajdhani:wght@400;500;600;700&display=swap');

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

:root {
  /* Core palette — pulled directly from the logo */
  --black:        #0A0A0A;
  --bg:           #111111;
  --bg2:          #181818;
  --bg3:          #202020;
  --surface:      #1E1E1E;
  --surface2:     #252525;
  --surface3:     #2E2E2E;

  --gold:         #F5C100;
  --gold-bright:  #FFD740;
  --gold-dim:     #B88A00;
  --gold-muted:   #7A5C00;
  --gold-pale:    #2A2000;

  --blue:         #1E56A0;
  --blue-bright:  #2E7DD1;
  --blue-dim:     #153B72;
  --blue-pale:    #0D1E38;

  --text:         #F0EDE0;
  --text-mid:     #B8B4A0;
  --text-muted:   #706C5C;
  --border:       #333333;
  --border-bright:#444444;

  --danger:       #CC3333;
  --success:      #2D7A3A;

  /* Typography */
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body:    'Exo 2', 'Arial', sans-serif;
  --font-ui:      'Rajdhani', 'Arial', sans-serif;

  --max-w: 1160px;
  --section-pad: 5rem 2rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

/* ─── UTILITY ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-pad); }

.section--dark    { background: var(--bg); }
.section--surface { background: var(--surface); }
.section--surface2{ background: var(--surface2); }
.section--blue    { background: var(--blue-dim); }
.section--gold    { background: var(--gold-pale); }

.section-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  margin-bottom: 1.8rem;
  border-radius: 1px;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 28px;
  border-radius: 3px;
  transition: all 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,193,0,0.35);
}

.btn-blue {
  background: var(--blue);
  color: var(--text);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-outline-white {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-outline-white:hover {
  background: var(--surface3);
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* ─── TOPBAR ─── */
.topbar {
  background: var(--black);
  border-bottom: 1px solid var(--gold-muted);
  padding: 7px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.topbar-left { display: flex; gap: 1.5rem; align-items: center; color: var(--text-mid); }
.topbar-right { display: flex; gap: 1.5rem; align-items: center; }
.topbar a { color: var(--text-mid); }
.topbar a:hover { color: var(--gold); }

/* ─── HEADER / NAV ─── */
.site-header {
  background: var(--black);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 24px rgba(0,0,0,0.8);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* Logo using actual logo image */
.logo-img {
  height: 54px;
  width: auto;
}

/* Fallback text logo if image not present */
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }

.logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(245,193,0,0.4);
}

.logo-tagline {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 0; }

.nav-item { position: relative; }

.nav-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 13px;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.15s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-link .caret {
  font-size: 9px;
  margin-top: 1px;
  transition: transform 0.2s;
}

.nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 300;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s, color 0.12s;
}

.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--surface3); color: var(--gold); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold-dim);
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--black);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold-muted);
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(30,86,160,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245,193,0,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 0.6rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.05;
  margin-bottom: 0.7rem;
  text-shadow: 0 0 40px rgba(245,193,0,0.25);
}

.page-hero-sub {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 9px 2rem;
}

.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumb-inner a { color: var(--gold-dim); }
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border-bright); }

/* ─── STAT STRIP ─── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--black);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--gold-muted);
}

.stat-cell {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-cell:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 20px rgba(245,193,0,0.3);
}

.stat-lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── CARD GRID ─── */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-muted);
  border-radius: 4px;
  overflow: hidden;
  transition: border-top-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,193,0,0.1);
  transform: translateY(-3px);
}

.card-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--bg2), var(--surface2));
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  border-bottom: 1px solid var(--border);
}

.card-body { padding: 1.3rem 1.4rem; }

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.card-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.card-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: inline-flex; align-items: center; gap: 4px;
}

.card-link:hover { color: var(--gold); }
.card-link::after { content: ' →'; }

.cat-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: var(--blue-pale);
  border: 1px solid var(--blue-dim);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 0.6rem;
  width: fit-content;
}

/* ─── SPLIT LAYOUT ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-placeholder {
  background: linear-gradient(135deg, var(--bg2), var(--surface2));
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-muted);
  border-radius: 4px;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}

/* ─── INFO BOX ─── */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1.4rem 1.8rem;
  margin: 1.5rem 0;
}

.info-box-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ─── HOURS TABLE ─── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
}

.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 10px 0; color: var(--text-mid); }
.hours-table td:first-child { letter-spacing: 0.04em; }
.hours-table td:last-child { text-align: right; color: var(--gold); font-weight: 600; }

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-muted);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  cursor: pointer;
  transition: border-top-color 0.2s, transform 0.2s;
  overflow: hidden;
}

.gallery-item:hover { border-top-color: var(--gold); transform: scale(1.02); }

/* ─── NEWS ─── */
.news-item {
  display: flex;
  gap: 1.8rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.news-item:last-child { border-bottom: none; }

.news-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--black);
  border: 1px solid var(--gold-muted);
  border-top: 3px solid var(--gold);
  border-radius: 3px;
  padding: 10px 14px;
  min-width: 72px;
}

.news-date-day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.news-date-mon {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.news-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ─── DISCORD BANNER ─── */
.discord-banner {
  background: #23272A;
  border: 1px solid #5865F2;
  border-top: 3px solid #5865F2;
  border-radius: 4px;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.discord-banner:hover {
  box-shadow: 0 4px 20px rgba(88,101,242,0.3);
  transform: translateY(-1px);
}

.discord-banner svg { width: 36px; height: 36px; fill: #5865F2; flex-shrink: 0; }

.discord-banner-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.discord-banner-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}

.discord-banner-text { flex: 1; }

.btn-discord {
  background: #5865F2;
  color: white;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-discord:hover { background: #4752C4; color: white; }

/* ─── FORM ─── */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(245,193,0,0.1);
}

textarea.form-control { min-height: 130px; resize: vertical; }

/* ─── GOLD RULE DIVIDER ─── */
.gold-rule {
  border: none;
  border-top: 1px solid var(--gold-muted);
  margin: 2rem 0;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--black);
  border-top: 2px solid var(--gold);
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 3rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.2rem;
  text-shadow: 0 0 16px rgba(245,193,0,0.25);
}

.footer-brand-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}

.footer-brand-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 0.7rem;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-item a { color: var(--text-muted); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-contact-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--black);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.open { max-height: 700px; }

.mobile-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 12px 1.5rem;
  display: block;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--gold); background: var(--bg2); }
.mobile-nav a.sub {
  padding-left: 2.5rem;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; }
  .mobile-nav { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  :root { --section-pad: 3rem 1.2rem; }
  .discord-banner { flex-direction: column; text-align: center; }
}
