/* Danube Esports Media — design system */
:root {
  --bg-deep: #0a0e14;
  --bg-base: #0f1520;
  --bg-elevated: #161e2c;
  --bg-panel: #1a2436;
  --border: rgba(125, 211, 232, 0.12);
  --border-strong: rgba(125, 211, 232, 0.28);
  --text: #e8eef6;
  --text-muted: #8b9bb0;
  --text-dim: #5c6b80;
  --accent: #3dd6c6;
  --accent-dim: rgba(61, 214, 198, 0.15);
  --accent-hot: #f0a04b;
  --accent-hot-dim: rgba(240, 160, 75, 0.15);
  --status-upcoming: #3dd6c6;
  --status-review: #7eb8ff;
  --danger-soft: #e87a7a;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 4px;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #6eefe0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Background atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 214, 198, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(240, 160, 75, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 40%, #0c121c 100%);
  pointer-events: none;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 232, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #2a9d8f);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

/* Age badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 0.4rem;
  border: 2px solid var(--accent-hot);
  color: var(--accent-hot);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 2.25rem 0 2.5rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  animation: heroFade 1.2s var(--ease) both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 20, 0.92) 0%, rgba(10, 14, 20, 0.72) 42%, rgba(10, 14, 20, 0.5) 100%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.25) 0%, rgba(10, 14, 20, 0.55) 100%);
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  animation: riseIn 0.9s var(--ease) 0.15s both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
  max-width: 34ch;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 44ch;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: #6eefe0;
  color: var(--bg-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Critical notice */
.critical-notice {
  margin: 2.5rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  animation: riseIn 0.8s var(--ease) 0.3s both;
}

.critical-notice p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.critical-notice strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-desc {
  color: var(--text-muted);
  max-width: 40ch;
  font-size: 0.95rem;
}

/* Featured spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 3rem;
}

.spotlight-media {
  position: relative;
  min-height: 280px;
  background: #0d1824;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  overflow: hidden;
}

.spotlight-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.15) 0%, rgba(10, 14, 20, 0.88) 100%);
}

.spotlight-media > *:not(img) {
  position: relative;
  z-index: 2;
}

.spotlight-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

.badge-upcoming {
  background: var(--accent-dim);
  color: var(--status-upcoming);
  border: 1px solid rgba(61, 214, 198, 0.35);
}

.badge-review {
  background: rgba(126, 184, 255, 0.12);
  color: var(--status-review);
  border: 1px solid rgba(126, 184, 255, 0.35);
}

.spotlight-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.spotlight-meta {
  display: grid;
  gap: 0.65rem;
}

.meta-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  min-width: 5.5rem;
  padding-top: 0.2rem;
}

.meta-item dd {
  color: var(--text);
}

/* Cards grid — used for interactive browse lists */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feed-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  animation: riseIn 0.7s var(--ease) both;
}

.feed-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d1824;
}

.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.feed-item:hover .feed-thumb img {
  transform: scale(1.04);
}

.feed-thumb .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.feed-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.feed-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.feed-item:nth-child(1) { animation-delay: 0.05s; }
.feed-item:nth-child(2) { animation-delay: 0.1s; }
.feed-item:nth-child(3) { animation-delay: 0.15s; }
.feed-item:nth-child(4) { animation-delay: 0.2s; }
.feed-item:nth-child(5) { animation-delay: 0.25s; }
.feed-item:nth-child(6) { animation-delay: 0.3s; }

.feed-body h3 {
  font-size: 1.1rem;
}

.feed-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: auto;
}

.panel-media {
  margin: -1.75rem -1.75rem 1.15rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1824;
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Calendar */
.calendar {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.calendar-row:last-child {
  border-bottom: none;
}

.calendar-row:hover {
  background: var(--bg-panel);
}

.cal-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.cal-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cal-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cal-loc {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: right;
  max-width: 14rem;
}

/* Analytics / mechanics */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.stat-list {
  display: grid;
  gap: 0.75rem;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.stat-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-list span {
  color: var(--text-muted);
}

.stat-list strong {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

/* Responsible gaming */
.rg-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.rg-block h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.rg-block p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.rg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.rg-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 55ch;
}

/* Content prose */
.prose {
  padding: 3rem 0 4rem;
  max-width: 720px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.contact-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius);
}

.contact-item h3 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080b10;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.footer-badge {
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.footer-badge strong {
  display: block;
  color: var(--text);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 36ch;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 480px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: none;
}

.cookie-bar.is-visible {
  display: block;
  animation: riseIn 0.4s var(--ease);
}

.cookie-bar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cookie-bar .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight-media {
    min-height: 220px;
  }

  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .calendar-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cal-loc {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 14, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .feed-grid,
  .analytics-grid,
  .contact-grid,
  .footer-badges,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.75rem 0 2rem;
  }

  .hero-brand {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .spotlight-media {
    min-height: 220px;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
