:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-soft: #0f172a;
  --text: #e5e7eb;
  --muted: #a5b4fc;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 18px 40px rgba(2, 8, 23, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(59, 130, 246, 0.25), transparent 65%),
    radial-gradient(700px 360px at 92% 8%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 50%, #0b1220 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

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

h1,
h2,
h3 {
  font-family: "Bebas Neue", "Barlow", sans-serif;
  letter-spacing: 0.6px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 28, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Bebas Neue", "Barlow", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.8px;
}

.brand-badge {
  width: 54px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1220;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
}

.site-hero {
  position: relative;
  min-height: 320px;
  background: url("https://loremflickr.com/1600/900/sports") center/cover no-repeat;
}

.site-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 12, 24, 0.88), rgba(16, 24, 40, 0.45));
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 48px;
  display: grid;
  gap: 16px;
  color: #ffffff;
  max-width: 780px;
}

.hero-inner h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  margin: 0;
}

.hero-inner p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
}

.hero-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.hero-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 14px;
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.hero-card p,
.hero-card ul {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.6;
}

.hero-card ul {
  padding-left: 18px;
}

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

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #dbeafe;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  width: fit-content;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1220;
  box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  border-color: rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.5);
}

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.bento-grid,
.mini-grid,
.card-grid,
.info-grid,
.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card,
.info-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.card h3,
.info-card h3 {
  margin: 0;
}

.card p,
.info-card p {
  margin: 0;
  color: #cbd5f5;
  line-height: 1.7;
}

.mini-card {
  min-height: 150px;
}

.mini-card h3 {
  font-size: 1rem;
  margin: 0;
}

.mini-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  color: #cbd5f5;
}

.info-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.stat-list {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.stat-list span {
  color: #ffffff;
  font-weight: 600;
}

.site-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.16);
}

.result-info {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.post-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.post-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.pagination button {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}

.pagination button.active {
  color: #ffffff;
  border-color: var(--accent);
}

.post-header {
  display: grid;
  gap: 8px;
}

.post-header .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-hero {
  margin: 16px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prose {
  display: grid;
  gap: 16px;
  line-height: 1.85;
  color: #cbd5f5;
}

.prose h2,
.prose h3 {
  margin-bottom: 4px;
  color: #ffffff;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 20px;
}

.prose blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(59, 130, 246, 0.12);
  color: #ffffff;
  border-radius: 8px;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.post-nav a,
.post-nav span {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 14px;
  text-align: center;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.6);
}

.post-nav a:hover {
  color: #ffffff;
  border-color: var(--accent);
}

.post-nav .disabled {
  opacity: 0.5;
  pointer-events: none;
}

form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
}

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 40px 0 60px;
  color: var(--muted);
  background: #0b1220;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}


@media (max-width: 980px) {
  .bento-grid,
  .mini-grid,
  .card-grid,
  .info-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    right: 20px;
    top: 70px;
    background: #0f172a;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: none;
    min-width: 200px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .site-hero {
    min-height: 220px;
  }
}
