/* GhEcho — Ghana's News, Fast and Clear */
:root {
  --navy: #0b1f4a;
  --navy-deep: #071536;
  --navy-mid: #14306a;
  --red: #c00f2c;
  --red-dark: #9a0c23;
  --gold: #fcd116;
  --green: #006b3f;
  --white: #ffffff;
  --off-white: #f5f7fb;
  --text: #1a1a1a;
  --muted: #5a6478;
  --border: #e2e8f0;
  --shadow: 0 8px 24px rgba(11, 31, 74, 0.12);
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Flag stripe */
.flag-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 33.33%, var(--gold) 33.33% 66.66%, var(--green) 66.66% 100%);
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: var(--red);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.brand-tag {
  font-size: .72rem;
  color: rgba(255,255,255,.78);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  align-items: center;
}
.nav a {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 600;
  padding: .35rem .55rem;
  border-radius: 8px;
}
.nav a:hover {
  background: rgba(255,255,255,.1);
  text-decoration: none;
  color: var(--white);
}
.nav a.active { background: var(--red); color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.75);
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }

/* Hero */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  min-height: 280px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  opacity: .55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7,21,54,.92) 0%, rgba(7,21,54,.72) 45%, rgba(192,15,44,.45) 100%);
}
.hero-inner {
  position: relative;
  padding: 3rem 0 2.75rem;
  max-width: 640px;
}
.hero h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.hero h1 span { color: var(--gold); }
.hero p {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Sections */
.section { padding: 2.25rem 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--navy);
  font-weight: 800;
}
.section-head .sub {
  color: var(--muted);
  font-size: .9rem;
  margin: .2rem 0 0;
}

/* Story grid */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11, 31, 74, 0.16);
}
.card-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: var(--navy);
}
.card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  align-items: center;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
}
.badge {
  display: inline-block;
  background: rgba(192,15,44,.1);
  color: var(--red);
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--navy);
  font-weight: 800;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  flex: 1;
}
.card-source {
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: .65rem;
  margin-top: .15rem;
}
.card-source strong { color: var(--navy); }
.card-link {
  font-weight: 700;
  font-size: .88rem;
  color: var(--red);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* About / Contact blocks */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.panel h2, .panel h3 {
  color: var(--navy);
  margin-top: 0;
}
.panel p { color: var(--muted); }
.two-col {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1.2fr .8fr; }
}

.tip-box {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tip-box h3 { margin: 0 0 .5rem; color: var(--gold); }
.tip-box p { color: rgba(255,255,255,.88); margin: 0 0 1rem; }
.todo {
  display: inline-block;
  background: rgba(252,209,22,.2);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 4px;
  letter-spacing: .04em;
  margin-left: .35rem;
  vertical-align: middle;
}

/* Category chips (filter UI) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.1rem;
}
.chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: .8rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover, .chip.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.8);
  margin-top: 2rem;
}
.footer-inner {
  padding: 1.75rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: .7rem;
  align-items: center;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}
.footer-brand span { font-size: .8rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.1rem;
}
.footer-links a { color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: .85rem 0 1.1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
}

/* Page title (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0 1.75rem;
}
.page-hero h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}
.page-hero p { margin: 0; color: rgba(255,255,255,.8); }

@media (max-width: 639px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: .75rem;
  }
  .header-inner { flex-wrap: wrap; }
  .menu-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: var(--white);
    border-radius: 8px;
    padding: .4rem .65rem;
    font-weight: 700;
    cursor: pointer;
  }
}
@media (min-width: 640px) {
  .menu-toggle { display: none; }
}

/* Follow dropdown */
.follow-menu { position: relative; }
.follow-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: .4rem;
  min-width: 220px;
  white-space: nowrap;
  z-index: 50;
}
.follow-dropdown::before { content: none; }
.follow-dropdown a {
  display: block;
  background: var(--white);
  color: var(--navy) !important;
  padding: .6rem .9rem !important;
  border-radius: 0 !important;
  font-weight: 700;
}
.follow-dropdown a:first-child { border-radius: 10px 10px 0 0 !important; }
.follow-dropdown a:last-child { border-radius: 0 0 10px 10px !important; border-top: 1px solid #e6e8ef; }
.follow-dropdown a:hover { background: #f3f4f8 !important; color: var(--red) !important; }
.follow-menu:hover .follow-dropdown,
.follow-menu:focus-within .follow-dropdown,
.follow-menu.open .follow-dropdown { display: block; box-shadow: none; }
.follow-dropdown { filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
@media (max-width: 639px) {
  .follow-dropdown { position: static; padding-top: .4rem; }
  .follow-menu:hover .follow-dropdown,
  .follow-menu:focus-within .follow-dropdown { display: none; }
  .follow-menu.open .follow-dropdown { display: block; }
}
