/**
 * @file DailyIntelligenceStyles
 * @description Premium mobile-first editorial system for MyEyeOnAi.
 */

:root {
  color-scheme: dark;
  --ink: #f7f1e6;
  --muted: #b8b1a4;
  --dim: #82796d;
  --bg: #07090d;
  --bg-2: #0c1119;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(247, 241, 230, 0.14);
  --line-strong: rgba(247, 241, 230, 0.26);
  --gold: #d8b96f;
  --platinum: #e9e2d4;
  --steel: #8ba4bd;
  --green: #8de0bd;
  --red: #e78a92;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% -10%, rgba(216, 185, 111, 0.16), transparent 28rem),
    linear-gradient(135deg, #06070a 0%, #0b1018 52%, #05070a 100%);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,0.045) 39%, transparent 42% 100%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 64px;
  opacity: 0.55;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header,
.news-ticker,
.hero,
.briefing-band,
.filter-section,
.category-section,
.source-section,
.newsletter-section,
.site-footer,
.page-shell {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.brand,
.site-header nav,
.hero__actions,
.story-card__topline,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--platinum);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-block;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(216,185,111,0.95), rgba(255,255,255,0.9) 48%, rgba(139,164,189,0.72)),
    #d8b96f;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.36), 0 0 24px rgba(216,185,111,0.18);
}

.site-header nav {
  gap: 14px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  white-space: nowrap;
  scrollbar-width: none;
}

.site-header nav::-webkit-scrollbar {
  display: none;
}

.site-header a:hover,
.site-footer a:hover,
.story-card a:hover,
.news-ticker a:hover {
  color: var(--gold);
}

.news-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.news-ticker strong {
  color: #101115;
  border-radius: var(--radius);
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--platinum), var(--gold));
  font-size: 0.76rem;
  text-transform: uppercase;
}

.news-ticker div {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.news-ticker div::-webkit-scrollbar {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
  min-height: auto;
  padding: 58px 0 52px;
}

.dateline {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  font-weight: 500;
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p,
.briefing-band p,
.section-heading p,
.source-section p,
.newsletter-section p,
.page-shell p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.filters button,
.newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.button-primary,
.filters .is-active,
.newsletter-form button {
  background: linear-gradient(135deg, var(--platinum), var(--gold));
  color: #101115;
  border-color: rgba(216, 185, 111, 0.58);
}

.button-secondary,
.filters button {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.hero-panel,
.glass-slab,
.story-card,
.briefing-note,
.newsletter-form,
.source-section,
.category-card,
.page-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.glass-slab {
  min-height: 260px;
  padding: 34px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06) 28%, rgba(255,255,255,0.03) 68%, rgba(216,185,111,0.11)),
    radial-gradient(circle at 20% 20%, rgba(233,226,212,0.18), transparent 14rem);
}

.glass-slab span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.glass-slab strong {
  display: block;
  margin-bottom: 16px;
  color: var(--platinum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.briefing-band,
.filter-section,
.category-section,
.source-section,
.newsletter-section {
  padding: 64px 0;
}

.briefing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 20px;
  border-top: 1px solid var(--line);
}

.briefing-note {
  padding: 22px;
}

.briefing-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

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

.search-box {
  display: grid;
  gap: 7px;
  width: min(100%, 340px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.search-box input,
.newsletter-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 680;
}

.search-box input::placeholder,
.newsletter-form input::placeholder {
  color: var(--dim);
}

.filters {
  display: flex;
  gap: 10px;
  margin: 0 -18px 28px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters button {
  flex: 0 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.story-grid .story-card:first-child {
  grid-column: span 2;
}

.dark-web-brief {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.source-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 22px;
  padding-inline: 30px;
}

.source-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.source-section li + li {
  margin-top: 10px;
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 740;
}

.site-footer nav {
  gap: 14px;
}

.page-shell {
  padding: 96px 0;
}

.page-card {
  padding: 42px;
}

.page-card + .page-card {
  margin-top: 18px;
}

.page-card ul {
  color: var(--muted);
}

.guide-grid,
.watch-list,
.timeline-list {
  display: grid;
  gap: 12px;
}

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

.guide-card,
.watch-list > div,
.timeline-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  padding: 18px;
}

.guide-card span,
.timeline-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.guide-card h2,
.timeline-list h3 {
  margin: 12px 0 8px;
  font-size: 1.22rem;
  line-height: 1.1;
}

.watch-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.watch-list strong {
  display: block;
  margin-bottom: 7px;
  color: var(--platinum);
}

.dark-web-page .page-card + .page-card,
.dark-web-page .page-card + .guide-grid,
.dark-web-page .guide-grid + .page-card {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .briefing-band,
  .newsletter-section,
  .story-grid,
  .source-section,
  .guide-grid,
  .watch-list {
    grid-template-columns: 1fr;
  }

  .story-grid .story-card:first-child {
    grid-column: auto;
  }

  .hero {
    gap: 36px;
    padding: 48px 0 46px;
  }

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 1.34rem;
  }

  .hero p,
  .briefing-band p,
  .section-heading p,
  .source-section p,
  .newsletter-section p,
  .page-shell p {
    font-size: 1.04rem;
  }

  .glass-slab strong {
    font-size: 2.35rem;
  }

  .briefing-band,
  .filter-section,
  .category-section,
  .source-section,
  .newsletter-section {
    padding: 50px 0;
  }

  .source-section {
    padding-inline: 24px;
  }

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

@media (max-width: 620px) {
  .site-header,
  .news-ticker,
  .hero,
  .briefing-band,
  .filter-section,
  .category-section,
  .source-section,
  .newsletter-section,
  .site-footer,
  .page-shell {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .site-header nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    overflow: visible;
    white-space: normal;
  }

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

  h1 {
    font-size: 2.72rem;
    line-height: 0.96;
  }

  h2 {
    font-size: 2.18rem;
  }

  h3 {
    font-size: 1.18rem;
  }

  .glass-slab,
  .page-card {
    padding: 22px;
  }

  .glass-slab strong {
    font-size: 1.78rem;
  }

  .source-section {
    padding-inline: 20px;
  }

  .briefing-band,
  .filter-section,
  .category-section,
  .source-section,
  .newsletter-section {
    padding: 34px 0;
  }

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

  .filters {
    margin-bottom: 18px;
  }

  .hero__actions,
  .newsletter-form div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .newsletter-form button {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}
