/* ============================================================
   Fri-Gaming.dk — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:            #0d0d0f;
  --bg-card:       #141418;
  --bg-card-hover: #1a1a22;
  --border:        #2a2a35;
  --border-glow:   #ff6a00;

  --orange:        #ff6a00;
  --orange-dim:    #c44d00;
  --orange-glow:   rgba(255, 106, 0, 0.25);

  --text:          #e8e8f0;
  --text-muted:    #7a7a90;
  --text-dim:      #4a4a5a;

  --link:          #ff8c3a;
  --link-hover:    #ffb070;

  --radius:        6px;
  --radius-lg:     12px;
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --shadow-orange: 0 0 20px rgba(255, 106, 0, 0.15);

  --font-display:  'Rajdhani', sans-serif;
  --font-body:     'Exo 2', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(255,106,0,0.06) 0%, transparent 70%);
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 600; }
em     { color: var(--orange); font-style: normal; }

/* ── Links ─────────────────────────────────────────────────── */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.header-logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255,106,0,0.4);
  transition: text-shadow 0.3s ease, color 0.2s ease;
}

.header-logo:hover {
  color: var(--orange);
  text-decoration: none;
  text-shadow: 0 0 30px rgba(255,106,0,0.7);
}

.header-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}

/* ── Global Navigation ─────────────────────────────────────── */
.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--orange);
  border-color: var(--border-glow);
  background: var(--orange-glow);
  text-decoration: none;
}

.nav-link.active {
  color: var(--orange);
  border-color: var(--orange-dim);
  background: rgba(255,106,0,0.1);
}

/* ── PUBG Sub-Navigation ───────────────────────────────────── */
.pubg-subnav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 2rem;
  background: rgba(14, 14, 18, 0.9);
  border-bottom: 1px solid var(--border);
}

.pubg-subnav-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-dim);
  padding-right: 0.6rem;
  border-right: 1px solid var(--border);
  margin-right: 0.2rem;
  white-space: nowrap;
}

.pubg-subnav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pubg-subnav-link:hover {
  color: var(--orange);
  border-color: rgba(255,106,0,0.3);
  background: rgba(255,106,0,0.08);
  text-decoration: none;
}

.pubg-subnav-link.active {
  color: var(--orange);
  border-color: rgba(255,106,0,0.4);
  background: rgba(255,106,0,0.12);
}

/* ── AMONGUS Sub-Navigation ───────────────────────────────────── */
.amongus-subnav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 2rem;
  background: rgba(14, 14, 18, 0.9);
  border-bottom: 1px solid var(--border);
}

.amongus-subnav-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-dim);
  padding-right: 0.6rem;
  border-right: 1px solid var(--border);
  margin-right: 0.2rem;
  white-space: nowrap;
}

.amongus-subnav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.amongus-subnav-link:hover {
  color: var(--orange);
  border-color: rgba(255,106,0,0.3);
  background: rgba(255,106,0,0.08);
  text-decoration: none;
}

.amongus-subnav-link.active {
  color: var(--orange);
  border-color: rgba(255,106,0,0.4);
  background: rgba(255,106,0,0.12);
}

/* ── Main Content ──────────────────────────────────────────── */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-hero h1 span {
  color: var(--orange);
}

/* Orange klikbart link i hero (bruges på PUBG-sider) */
.page-hero h1 a {
  color: var(--orange);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255,106,0,0.3);
  transition: text-shadow 0.3s ease;
}

.page-hero h1 a:hover {
  text-decoration: none;
  text-shadow: 0 0 30px rgba(255,106,0,0.6);
}

/* Fælles hero-undertekst — bruges som <p class="hero-sub"> */
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ── Grid / Cards ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-orange);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.card-arrow {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
}

.card:hover .card-arrow::after {
  transform: translateX(4px);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,106,0,0.3);
}

.btn-primary:hover {
  background: #ff7f20;
  box-shadow: 0 6px 25px rgba(255,106,0,0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.btn-outline:hover {
  background: var(--orange-glow);
  color: var(--link-hover);
  text-decoration: none;
}

/* ── Tables ────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

thead th {
  background: rgba(255,106,0,0.12);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glow);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: var(--bg-card);
}

tbody td {
  padding: 0.7rem 1rem;
  color: var(--text-muted);
}

tbody td:first-child {
  color: var(--text);
}

/* ── Section Dividers ──────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: rgba(255,106,0,0.15);
  color: var(--orange);
  border: 1px solid rgba(255,106,0,0.3);
}

/* ── Alerts / Info Boxes ───────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
  background: rgba(255,106,0,0.07);
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 1rem 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10,10,12,0.9);
  padding: 1.25rem 2rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.8;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-sep {
  color: var(--border);
  margin: 0 0.5rem;
  user-select: none;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dim); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 1rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pubg-subnav {
    padding: 0.45rem 1rem;
  }
  .amongus-subnav {
    padding: 0.45rem 1rem;
  }

  .site-nav { gap: 0.15rem; }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .pubg-subnav-link {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
  .amongus-subnav-link {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .site-main {
    padding: 1.5rem 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}