/* ============================================================
   Homepage-specific styles (module 02 - 06)
   Loaded only on front-page.php
   ============================================================ */

/* ------------------------------------------------------------
   Module 02 — Hero / featured article
   ------------------------------------------------------------ */
[class~="7d6129-hero"] {
  padding-top: 40px;
  padding-bottom: 40px;
}

[class~="7d6129-hero__grid"] {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

[class~="7d6129-hero__media"] {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}

[class~="7d6129-hero__media"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[class~="7d6129-hero__badge"] {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

[class~="7d6129-hero__body"] {
  padding: 12px 0;
}

[class~="7d6129-hero__title"] {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 0.5em;
  letter-spacing: -0.015em;
}

[class~="7d6129-hero__title"] a:hover {
  color: var(--accent);
}

[class~="7d6129-hero__excerpt"] {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5em;
  max-width: 46ch;
}

[class~="7d6129-hero"] [class~="7d6129-meta__avatar"] {
  width: 40px;
  height: 40px;
}

[class~="7d6129-hero"] [class~="7d6129-meta"] {
  font-size: 0.88rem;
}

/* ------------------------------------------------------------
   Module 03 — Editor's Choice (text-only list)
   ------------------------------------------------------------ */
[class~="7d6129-editors"] {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[class~="7d6129-editors__list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

[class~="7d6129-editors__item"] {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

[class~="7d6129-editors__item"]:last-child {
  border-bottom: 0;
}

[class~="7d6129-editors__num"] {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  flex: none;
  min-width: 44px;
}

[class~="7d6129-editors__content"] {
  flex: 1;
}

[class~="7d6129-editors__title"] {
  font-size: 1.55rem;
  margin-bottom: 0.25em;
}

[class~="7d6129-editors__title"] a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

[class~="7d6129-editors__title"] a:hover {
  background-size: 100% 2px;
  color: var(--text);
}

[class~="7d6129-editors__cat"] {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Module 04 — Main feed (70/30 split)
   ------------------------------------------------------------ */
[class~="7d6129-feed__grid"] {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 36px;
  align-items: start;
}

[class~="7d6129-feed__list"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

[class~="7d6129-feed__item--full"] {
  grid-column: 1 / -1;
}

[class~="7d6129-feed__item--full"] [class~="7d6129-card__media"] {
  aspect-ratio: 21 / 9;
}

[class~="7d6129-feed__item--full"] [class~="7d6129-card__title"] {
  font-size: 1.45rem;
}

[class~="7d6129-feed__more"] {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}

/* Sidebar — author mini card */
[class~="7d6129-sidecard"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

[class~="7d6129-sidecard__avatar"] {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  margin-bottom: 14px;
}

[class~="7d6129-sidecard__avatar"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[class~="7d6129-sidecard__name"] {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 0.2em;
}

[class~="7d6129-sidecard__bio"] {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* Sidebar — numbered trending list */
[class~="7d6129-trending"] {
  counter-reset: trend;
  list-style: none;
  margin: 0;
  padding: 0;
}

[class~="7d6129-trending"] li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

[class~="7d6129-trending__num"] {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex: none;
  min-width: 26px;
}

[class~="7d6129-trending__link"] {
  font-size: 0.9rem !important;
}

/* Sidebar — tag cloud */
[class~="7d6129-tagcloud"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[class~="7d6129-tagcloud"] a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}

[class~="7d6129-tagcloud"] a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sidebar — newsletter form */
[class~="7d6129-subscribe-form"] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[class~="7d6129-subscribe-form"] input[type="email"] {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}

[class~="7d6129-subscribe-form"] input[type="email"]::placeholder {
  color: var(--text-muted);
}

[class~="7d6129-subscribe-form"] input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* ------------------------------------------------------------
   Module 05 — Author / founder banner
   ------------------------------------------------------------ */
[class~="7d6129-author"] {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[class~="7d6129-author__banner"] {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 44px 0;
}

[class~="7d6129-author__avatar"] {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

[class~="7d6129-author__avatar"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[class~="7d6129-author__intro"] {
  flex: 1;
}

[class~="7d6129-author__hi"] {
  font-family: var(--font-head);
  font-size: 1.7rem;
  margin-bottom: 0.3em;
}

[class~="7d6129-author__bio"] {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 16px;
}

[class~="7d6129-author__social"] {
  display: flex;
  gap: 10px;
}

[class~="7d6129-author__social"] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

[class~="7d6129-author__social"] a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------
   Module 06 — Tag cloud & topic index
   ------------------------------------------------------------ */
[class~="7d6129-topics"] {
  padding-top: 48px;
  padding-bottom: 48px;
}

[class~="7d6129-topics__cloud"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

[class~="7d6129-topics__cloud"] a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

[class~="7d6129-topics__cloud"] a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-deep);
}

[class~="7d6129-topics__cloud"] a .hash {
  color: var(--accent);
  margin-right: 2px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  [class~="7d6129-hero__grid"] {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  [class~="7d6129-hero__title"] {
    font-size: 1.8rem;
  }

  [class~="7d6129-feed__grid"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  [class~="7d6129-feed__list"] {
    grid-template-columns: 1fr;
  }

  [class~="7d6129-feed__item--full"] [class~="7d6129-card__media"] {
    aspect-ratio: 16 / 10;
  }

  [class~="7d6129-editors__item"] {
    gap: 18px;
    flex-direction: row;
  }

  [class~="7d6129-editors__num"] {
    font-size: 1.8rem;
    min-width: 32px;
  }

  [class~="7d6129-editors__title"] {
    font-size: 1.25rem;
  }

  [class~="7d6129-author__banner"] {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  [class~="7d6129-author__social"] {
    justify-content: center;
  }
}
