/* ============================================================
   Homepage-specific styles (module 02 - 06)
   ============================================================ */

/* ------------------------------------------------------------
   Module 02 — Hero slider carousel (full-bleed + fade)
   ------------------------------------------------------------ */
[class~="7de401-hero"] {
  position: relative;
  height: 460px;
  overflow: hidden;
}

[class~="7de401-hero__slide"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

[class~="7de401-hero__slide"].is-active {
  opacity: 1;
  pointer-events: auto;
}

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

[class~="7de401-hero__overlay"] {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(20, 16, 16, 0.85), rgba(20, 16, 16, 0.25) 60%, rgba(20, 16, 16, 0.1));
}

[class~="7de401-hero__content"] {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 42px;
}

[class~="7de401-hero__cat"] {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
}

[class~="7de401-hero__title"] {
  font-size: 2.3rem;
  line-height: 1.15;
  max-width: 22ch;
  margin: 0;
}

[class~="7de401-hero__title"] a {
  color: #fff;
}

[class~="7de401-hero__title"] a:hover {
  color: #ffd8d0;
}

[class~="7de401-hero__dots"] {
  position: absolute;
  bottom: 18px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

[class~="7de401-hero__dot"] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

[class~="7de401-hero__dot"].is-active {
  background: #fff;
}

/* ------------------------------------------------------------
   Module 03 — Editor's Choice (text-only, large title + underline)
   ------------------------------------------------------------ */
[class~="7de401-editors__list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

[class~="7de401-editors__title"] {
  font-size: 1.7rem;
  margin: 0;
}

[class~="7de401-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~="7de401-editors__title"] a:hover {
  background-size: 100% 2px;
  color: var(--text);
}

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

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

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

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

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

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

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

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

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

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

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

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

[class~="7de401-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;
}

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

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

[class~="7de401-subscribe-form"] input[type="email"] {
  background: var(--bg);
  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~="7de401-subscribe-form"] input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* ------------------------------------------------------------
   Module 05 — Tag cloud & topic index (full width)
   ------------------------------------------------------------ */
[class~="7de401-topics"] {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

[class~="7de401-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: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

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

/* ------------------------------------------------------------
   Module 06 — Newsletter (illustration left + form right)
   ------------------------------------------------------------ */
[class~="7de401-newsletter"] {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[class~="7de401-newsletter__grid"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}

[class~="7de401-newsletter__art"] {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

[class~="7de401-newsletter__art"] img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

[class~="7de401-newsletter__title"] {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

[class~="7de401-newsletter__text"] {
  color: var(--text-muted);
  margin-bottom: 1.2em;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  [class~="7de401-hero"] {
    height: 360px;
  }

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

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

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

@media (max-width: 640px) {
  [class~="7de401-hero"] {
    height: 300px;
  }

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

  [class~="7de401-editors__item"] {
    gap: 18px;
  }

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

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