/* ============================================================
   828 WEATHER — SUBSTACK MODULE
   Clean editorial card for embedded articles
   ============================================================ */

/* ------------------------------------------------------------
   CARD WRAPPER
   ------------------------------------------------------------ */

.substack-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--module-radius);
  padding: var(--module-padding);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.45s ease forwards;
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.substack-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.substack-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.substack-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.25;
}

/* ------------------------------------------------------------
   TIMESTAMP
   ------------------------------------------------------------ */

.substack-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -4px;
}

/* ------------------------------------------------------------
   THUMBNAIL
   ------------------------------------------------------------ */

.substack-thumb-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 10px;
}
.substack-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   EXCERPT
   ------------------------------------------------------------ */

.substack-excerpt {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------
   READ MORE LINK
   ------------------------------------------------------------ */

.substack-readmore {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.substack-readmore:hover {
  color: var(--accent-orange);
}

/* ------------------------------------------------------------
   HOVER LIFT (entire card)
   ------------------------------------------------------------ */

.substack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

/* SUBSTACK MODULE — FIX THUMBNAIL SIZE */
.substack-thumb-wrapper {
  width: 100%;
  height: 160px;          /* Reduced from full height */
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.substack-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Ensures fallback image looks like a real thumbnail */
  display: block;
}

.substack-article {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.substack-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.substack-new-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   MOBILE TUNING
   ------------------------------------------------------------ */

@media (max-width: 640px) {
  .substack-title {
    font-size: 1.15rem;
  }

  .substack-excerpt {
    font-size: 0.9rem;
  }
}
