/*
 * Fadma — addons.css
 * Extra classes introduced in Pass 2 partials that are not in the Pass 1 inventory.
 * Consumes only established design tokens — no magic numbers.
 */

/* ─────────────────────────────────────────────
   HERO INNER LAYOUT (split / editorial)
───────────────────────────────────────────── */

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--t-space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .hero--split .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--t-space-10);
  }
}

@media (min-width: 1024px) {
  .hero--split .hero__inner {
    grid-template-columns: 5fr 4fr;
    gap: var(--t-space-12);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--t-space-4);
}

/* ─────────────────────────────────────────────
   HERO MEDIA FRAME
───────────────────────────────────────────── */

.hero__media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--t-radius-sm);
  aspect-ratio: 4 / 5;
  background: var(--t-surface-alt);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────
   HERO MEDIA PLACEHOLDER (typographic fallback)
───────────────────────────────────────────── */

.hero__media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: var(--t-surface-alt);
  border-radius: var(--t-radius-sm);
  border: 1px solid var(--t-border);
  gap: var(--t-space-4);
}

.hero__media-placeholder-letter {
  font-family: var(--t-font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--t-primary);
  opacity: 0.18;
  user-select: none;
}

.hero__media-placeholder-rule {
  width: 3rem;
  height: 2px;
  background: var(--t-primary);
  opacity: 0.4;
}

/* ─────────────────────────────────────────────
   HERO META ROW
───────────────────────────────────────────── */

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--t-space-3);
  color: var(--t-text-secondary);
  font-size: var(--t-text-sm);
}

.hero__meta-date,
.hero__meta-read {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-1);
}

/* ─────────────────────────────────────────────
   HERO TITLE LINK (when article is featured)
───────────────────────────────────────────── */

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

.hero__title a:hover {
  color: var(--t-primary);
}

/* ─────────────────────────────────────────────
   CARD EXTRA CLASSES (card__date, card__reading-time, card__author, card__read-more)
───────────────────────────────────────────── */

.card__date,
.card__reading-time {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-1);
  color: var(--t-text-muted);
  font-size: var(--t-text-xs);
}

.card__author {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-1);
  color: var(--t-text-secondary);
  font-size: var(--t-text-xs);
}

.card__read-more {
  margin-inline-start: auto;
}

/* ─────────────────────────────────────────────
   HEADER LOGO WORDMARK
───────────────────────────────────────────── */

.site-header__logo-wordmark {
  font-family: var(--t-font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--t-text);
  line-height: 1;
  transition: color var(--t-dur-fast) var(--t-ease-out);
}

.site-header__logo:hover .site-header__logo-wordmark {
  color: var(--t-primary);
}

/* ─────────────────────────────────────────────
   FOOTER LOGO WORDMARK
───────────────────────────────────────────── */

.site-footer__logo-wordmark {
  font-family: var(--t-font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--t-text);
  line-height: 1;
}

.site-footer__logo {
  text-decoration: none;
  display: inline-block;
  margin-block-end: var(--t-space-3);
}

.site-footer__logo:hover .site-footer__logo-wordmark {
  color: var(--t-primary);
}

/* ─────────────────────────────────────────────
   NAV DRAWER LOGO TEXT
───────────────────────────────────────────── */

.nav-drawer__logo-text {
  font-family: var(--t-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--t-text);
}

/* ─────────────────────────────────────────────
   SEARCH OVERLAY HINT TEXT
───────────────────────────────────────────── */

.search-overlay__hint {
  margin-block-start: var(--t-space-3);
  font-size: var(--t-text-sm);
  color: var(--t-text-muted);
  text-align: center;
}

/* ─────────────────────────────────────────────
   ICON SUN / MOON DISPLAY HELPERS
   (JS controls display:none; these ensure correct baseline)
───────────────────────────────────────────── */

.icon-sun,
.icon-moon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─────────────────────────────────────────────
   TOC ITEM INDENTATION FOR H3
───────────────────────────────────────────── */

.toc__item--sub {
  padding-inline-start: var(--t-space-4);
}

.toc__item--sub .toc__link {
  font-size: var(--t-text-sm);
  color: var(--t-text-secondary);
}

/* ─────────────────────────────────────────────
   SITE-NAV__ITEM (missing from inventory, used in header)
───────────────────────────────────────────── */

.site-nav__item {
  list-style: none;
}

/* ─────────────────────────────────────────────
   NAV BURGER (mobile only)
───────────────────────────────────────────── */

.nav-burger {
  display: flex;
}

@media (min-width: 900px) {
  .nav-burger {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   HEADER CTA — hide on mobile, show from 640px
───────────────────────────────────────────── */

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

/* ─────────────────────────────────────────────
   DARK MODE — hero media placeholder
───────────────────────────────────────────── */

[data-theme="dark"] .hero__media-placeholder {
  background: var(--t-surface-alt);
  border-color: var(--t-border);
}