/* ==========================================================================
   InfoZedCelebs Editorial — global styles
   Tokens, header, footer, buttons and cards come straight from homepage.html.
   ========================================================================== */

:root {
  --red: #a51616;
  --dark-red: #540909;
  --black: #171717;
  --text: #1c1c1c;          /* body text: 16.8:1 on white */
  --text-soft: #383838;     /* secondary paragraphs: 11.6:1 */
  --text-meta: #545454;     /* dates, labels, captions: 7.6:1 */
  --on-dark-soft: #d6d6d6;  /* paragraphs on black panels: 13:1 */
  --on-dark-meta: #b4b4b4;  /* labels on black panels: 9:1 */
  --grey: var(--text-soft);
  --light: #f5f5f5;
  --border: #e6e6e6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --header-height: 76px;
  --container: 1180px;
  --admin-bar: 0px;
}

body.admin-bar { --admin-bar: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar { --admin-bar: 46px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(90px + var(--admin-bar));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

body, button, a { -webkit-tap-highlight-color: transparent; }

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

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

button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow { width: min(820px, calc(100% - 40px)); }
.container--wide { width: min(1000px, calc(100% - 40px)); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: #fff;
  background: var(--red);
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.top-line {
  height: 4px;
  background: var(--red);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: var(--admin-bar);
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  flex-shrink: 0;
  font: 800 25px/1 var(--serif);
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo span { color: var(--red); }
.logo .screen-reader-text { color: inherit; }

.custom-logo-link img { max-height: 54px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 25px);
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 25px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-menu-parent > a { color: var(--red); }

.nav-links .nav-button {
  padding: 13px 16px;
  color: #fff;
  background: var(--red);
  transition: background .2s ease;
}

.nav-links .nav-button:hover { color: #fff; background: var(--dark-red); }

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--black);
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.menu-button__icon::before { content: "☰"; }
.menu-button[aria-expanded="true"] .menu-button__icon::before { content: "✕"; }

/* ---------- Shared elements ---------- */

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

a.eyebrow-link:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 13px 19px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
}

.button:hover {
  color: #fff;
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px #a5161626;
}

.text-link { font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--red); }

.outline-button { color: var(--red); background: #fff; }
.outline-button:hover { color: #fff; }

.center { margin-top: 40px; text-align: center; }

.section { padding-block: 90px; }
.section--tight { padding-block: 50px 90px; }

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

.section-title {
  margin: 14px 0 0;
  font: 700 clamp(36px, 4vw, 52px)/1.08 var(--serif);
  letter-spacing: -1px;
}

.section-title span { color: var(--red); }

.section-header > p {
  max-width: 440px;
  margin: 0;
  color: var(--grey);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- Article cards (homepage design) ---------- */

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

.article-card {
  min-width: 0;
  transition: transform .3s ease;
}

.article-card:hover { transform: translateY(-4px); }
.article-card.hidden,
.article-card.is-extra { display: none; }

.article-image {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  background: #eee;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.article-image__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  background: linear-gradient(145deg, #b52222, #400707 90%);
  font: 700 64px var(--serif);
}

.article-card:hover .article-image img { transform: scale(1.05); }

.article-image::after {
  content: "↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  opacity: 0;
  transition: opacity .2s ease;
}

.article-card:hover .article-image::after { opacity: 1; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 15px 0 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.article-meta time {
  color: var(--text-meta);
  font-weight: 400;
}

.article-card__title {
  margin: 0 0 10px;
  font: 700 21px/1.35 var(--serif);
}

.article-card__title a:hover { color: var(--red); }

.article-card p {
  margin: 0 0 12px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.7;
}

.read-more { font-size: 12.5px; font-weight: 800; }
.read-more span[aria-hidden] { color: var(--red); }
.read-more:hover { color: var(--red); }

/* ---------- Page hero band (archives, pages, search) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 42px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid #a5161622;
  border-radius: 50%;
  box-shadow: 0 0 0 30px #a516160a, 0 0 0 60px #a5161606;
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero__title {
  max-width: 880px;
  margin: 12px 0 0;
  font: 700 clamp(36px, 5vw, 58px)/1.08 var(--serif);
  letter-spacing: -1.5px;
}

.page-hero__title span { color: var(--red); }

.page-hero__desc {
  max-width: 680px;
  margin-top: 16px;
  color: var(--grey);
  font-size: 16.5px;
  line-height: 1.75;
}

.page-hero__desc p { margin: 0 0 10px; }

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--text-meta);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-hero__meta::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--red);
}

.page-hero .search-form { margin-top: 24px; }

/* Breadcrumbs (Rank Math markup) */

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--text-meta);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumbs p { margin: 0; }
.breadcrumbs a { color: #555; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }
.breadcrumbs .separator { margin: 0 6px; color: #aaa; }
.breadcrumbs .last { color: var(--black); }

/* Topic chips */

.topic-chips ul,
.article-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 12.5px;
  font-weight: 700;
  transition: .2s ease;
}

.chip:hover,
.chip.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

/* Pagination */

.pagination { margin-top: 50px; }

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.pagination a.page-numbers:hover,
.pagination .page-numbers.current {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.pagination .dots { border: 0; background: none; min-width: 20px; }

.pagination ul.page-numbers {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
}

.pagination .prev,
.pagination .next { padding: 0 18px; }

/* Search form */

.search-form {
  display: flex;
  width: 100%;
  max-width: 560px;
}

.search-field {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--black);
  background: #fff;
  border: 1px solid #d5d5d5;
  border-right: 0;
  border-radius: 0;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}

.search-field:focus { outline: 2px solid var(--red); outline-offset: -2px; }

.search-submit { min-height: 48px; }
.search-submit:hover { transform: none; }

/* Empty state */

.empty-state {
  max-width: 640px;
  padding: 40px 0;
}

.empty-state h2 {
  margin: 0 0 10px;
  font: 700 30px/1.2 var(--serif);
}

.empty-state p { color: var(--grey); font-size: 16px; line-height: 1.75; }
.empty-state .search-form { margin: 22px 0 26px; }

/* 404 */

.error-404 {
  position: relative;
  overflow: hidden;
  padding: 70px 0 60px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.error-404__inner { position: relative; }

.error-404__code {
  position: absolute;
  top: -40px;
  right: 0;
  color: #a5161612;
  font: italic 700 clamp(140px, 22vw, 280px)/1 var(--serif);
  pointer-events: none;
  user-select: none;
}

.error-404 p {
  position: relative;
  max-width: 560px;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.85;
}

.error-404 .search-form { position: relative; margin: 26px 0 24px; }
.error-404 .topic-chips ul { margin-bottom: 10px; }
.error-404__home { margin-top: 22px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 45px 0 20px;
  color: #fff;
  background: #454545;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo,
.footer-title {
  margin: 0 0 12px;
  font: 700 18px/1.3 var(--serif);
  color: #fff;
}

.footer-logo span { color: #f3b8b0; }

.footer-grid p,
.footer-grid a {
  color: #eee;
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid p { margin: 0 0 12px; max-width: 320px; }

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { display: inline-block; padding: 2px 0; }

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials--icons a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  transition: background .2s ease, border-color .2s ease;
}

.socials--icons a:hover { background: var(--red); border-color: var(--red); }

.socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #777;
  color: #eee;
  font-size: 12.5px;
}

/* Social icon hover (footer, header, contact, about) */

.socials a {
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s cubic-bezier(.2, .75, .2, 1), box-shadow .3s ease;
}

.socials--icons a:hover,
.socials--icons a:focus-visible {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px #a5161640;
}

.socials--icons a:hover svg { transform: scale(1.12); }
.socials svg { transition: transform .3s ease; }

/* Header social icons: wide desktop bar + inside the mobile menu */

.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(10px, 1.4vw, 18px);
  border-left: 1px solid var(--border);
}

.nav-social__label {
  display: none;
  color: var(--text-meta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-social .socials { gap: 6px; flex-wrap: nowrap; }

.nav-social .socials--icons a {
  width: 34px;
  height: 34px;
  color: var(--black);
  border-color: var(--border);
  padding: 0;
}

.nav-social .socials svg { width: 15px; height: 15px; }

@media (min-width: 901px) and (max-width: 1139px) {
  .nav-social { display: none; }
}

/* Back to top + reading progress (from the About Us design) */

.back-top {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 25px #a5161640;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.read-progress {
  position: fixed;
  top: var(--admin-bar);
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #e7c47e);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Scroll reveal (only hides content when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .nav-links, .nav-links ul { gap: 14px; }
  .nav-links a { font-size: 12px; }
}

@media (max-width: 900px) {
  :root { --header-height: 70px; }

  .menu-button { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-height) - var(--admin-bar));
    overflow-y: auto;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px #0000000b;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .nav-links ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
  }

  .nav-links .nav-button {
    margin-top: 12px;
    padding: 14px;
    text-align: center;
    font-size: 13px;
  }

  .nav-social {
    justify-content: space-between;
    margin-top: 16px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #eee;
  }

  .nav-social__label { display: block; }

  .nav-links .nav-social .socials {
    flex-direction: row;
    gap: 10px;
  }

  .nav-links .nav-social .socials a {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 850px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  :root { --header-height: 64px; }

  html { scroll-padding-top: calc(72px + var(--admin-bar)); }

  .container,
  .container--narrow,
  .container--wide { width: calc(100% - 30px); }

  .logo { font-size: 21px; }

  .section { padding-block: 58px; }
  .section--tight { padding-block: 34px 58px; }
  .section-title { font-size: 38px; }
  .section-header > p { margin-top: 5px; }

  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .article-image { height: clamp(210px, 60vw, 300px); }
  .article-card__title { font-size: 21px; }
  .article-card p { font-size: 15.5px; }

  .page-hero { padding: 30px 0 30px; }
  .page-hero::after { width: 220px; height: 220px; top: -90px; right: -110px; }
  .page-hero__title { font-size: clamp(32px, 9vw, 40px); letter-spacing: -1px; }

  .search-form { flex-direction: column; gap: 10px; }
  .search-field { border-right: 1px solid #d5d5d5; }

  .chip { font-size: 13px; }

  .error-404 { padding: 44px 0 40px; }
  .error-404__code { top: -10px; }

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

  .footer-brand { grid-column: 1 / -1; }

  .footer-title { font-size: 16px; }

  .footer-grid a { font-size: 15px; padding: 5px 0; }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    line-height: 1.7;
  }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}
