/*
Theme Name: EVE Frontier Portal
Theme URI: https://evefrontier.pl/
Author: Codex
Description: Dark editorial theme for a Polish EVE Frontier fan portal.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: evefrontier
*/

:root {
  --bg: #07090d;
  --panel: #111722;
  --panel-soft: #171f2c;
  --text: #eef4ff;
  --muted: #a8b3c5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #42e8b4;
  --accent-2: #ffb64f;
  --danger: #ff5f6d;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(66, 232, 180, 0.45);
  text-underline-offset: 4px;
}

img {
  height: auto;
  max-width: 100%;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.nav-wrap,
.section-inner,
.content-wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(66, 232, 180, 0.75);
  background: linear-gradient(135deg, rgba(66, 232, 180, 0.26), rgba(255, 182, 79, 0.18));
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.menu a {
  text-decoration: none;
}

.menu a:hover,
.menu .current-menu-item > a {
  color: var(--text);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.96), rgba(7, 9, 13, 0.68) 42%, rgba(7, 9, 13, 0.18)),
    linear-gradient(0deg, rgba(7, 9, 13, 0.3), rgba(7, 9, 13, 0.08)),
    url("assets/images/frontier-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 108px 0 88px;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 96px);
  margin: 14px 0 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 0 16px;
}

h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.lead {
  color: #d8e1ee;
  font-size: clamp(18px, 2vw, 22px);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button.primary {
  color: #03110d;
  background: var(--accent);
  border-color: var(--accent);
}

.section {
  padding: 72px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.post-card,
.widget,
.article {
  background: var(--panel);
  border: 1px solid var(--line);
}

.card {
  padding: 24px;
}

.card .kicker {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-card {
  min-height: 100%;
  overflow: hidden;
}

.post-card a {
  text-decoration: none;
}

.post-thumb {
  aspect-ratio: 16 / 9;
  background: var(--panel-soft);
  display: block;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 180ms ease, filter 180ms ease;
}

.post-card:hover .post-thumb img {
  filter: brightness(1.08);
  transform: scale(1.04);
}

.post-body {
  padding: 22px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.excerpt {
  color: var(--muted);
  margin: 0;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 56px 0;
}

.article {
  padding: min(6vw, 52px);
}

.article h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.article-content {
  color: #dce5f2;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.widget {
  padding: 22px;
}

.widget ul {
  padding-left: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .menu {
    flex-wrap: wrap;
  }

  .grid,
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
  }

  .section-title {
    display: block;
  }
}
