:root {
  --bg: #080b12;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #b8c3d6;
  --accent: #f7c948;
  --accent-2: #32d6c5;
  --danger: #ff6b8b;
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(50, 214, 197, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(247, 201, 72, 0.18), transparent 28%),
    linear-gradient(145deg, #080b12 0%, #111827 48%, #05070d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8, 11, 18, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #061015;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(50, 214, 197, 0.26);
}

.nav-actions {
  gap: 8px;
}

.nav-actions a,
.category-btn,
.load-more,
.search-row button,
.share-btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-actions a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
}

.nav-actions a:hover,
.category-btn:hover,
.load-more:hover,
.search-row button:hover,
.share-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 201, 72, 0.54);
  background: var(--panel-strong);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 26px;
  align-items: end;
  min-height: 430px;
  padding: 72px 0 42px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 8px 0 16px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.search-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.search-row input:focus {
  border-color: var(--accent-2);
}

.search-row button,
.load-more {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
}

.toolbar,
.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar {
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.category-btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}

.category-btn.is-active {
  color: #071017;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.status-strip {
  margin-bottom: 34px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.status-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.trending {
  margin-bottom: 34px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 1.8rem;
}

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

.trend-pill {
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.trend-pill span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.trend-pill p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

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

.news-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  animation: riseIn 420ms ease both;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 280ms ease;
}

.news-card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.summary {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #d6deed;
  font-size: 0.82rem;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 13px;
  color: #071017;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.share-btn {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 13px;
}

.load-more-wrap {
  display: grid;
  place-items: center;
  padding: 34px 0 20px;
}

.load-more[hidden] {
  display: none;
}

.site-footer {
  padding: 32px 0 42px;
  color: var(--muted);
  text-align: center;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: shimmer 1200ms infinite;
}

.skeleton.media {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.skeleton.line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton.line.wide {
  width: 88%;
}

.skeleton.line.short {
  width: 52%;
}

.skeleton.footer-line {
  width: 70%;
  height: 34px;
  margin-top: auto;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

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

@media (max-width: 900px) {
  .hero,
  .news-grid,
  .trending-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(260px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(8, 11, 18, 0.94);
  }

  .nav-actions.is-open {
    display: flex;
  }

  .hero,
  .news-grid,
  .trending-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 28px;
  }

  .hero-copy h1 {
    font-size: 3.4rem;
  }

  .search-row,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .search-row {
    display: grid;
  }

  .status-strip {
    align-items: flex-start;
  }

  .card-body {
    min-height: 260px;
  }
}
