/* =============================================================
   יומיומי · NEW CARDS — Kol HaLashon, Gilyonot, Verse, Tehilim, APOD
   ============================================================= */

/* ---------- KOL HALASHON — animated list of shiurim ---------- */
.card-kol-halashon {
  background: linear-gradient(135deg,
    rgba(212, 168, 67, 0.06),
    rgba(108, 99, 255, 0.04));
}
.kol-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  padding-inline-end: 0.25rem;
}
.kol-list::-webkit-scrollbar { width: 6px; }
.kol-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.kol-item {
  display: grid;
  grid-template-columns: 38px 28px 1fr 24px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
  border-right: 3px solid var(--gold);
  border-radius: 10px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: kol-slide-in 600ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes kol-slide-in {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.kol-item:hover {
  background: rgba(212, 168, 67, 0.08);
  border-color: var(--c-border-strong);
  border-right-color: var(--gold-light);
  transform: translateX(-4px);
  box-shadow: -8px 0 24px -8px var(--gold-glow);
}
.kol-num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  text-align: center;
}
.kol-icon { font-size: 1rem; }
.kol-title {
  color: var(--c-text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kol-arrow {
  color: var(--c-text-3);
  font-size: 0.7rem;
  text-align: center;
  transition: transform 200ms ease, color 200ms ease;
}
.kol-item:hover .kol-arrow {
  color: var(--gold);
  transform: translateX(-3px);
}
.kol-foot { margin-top: 1rem; text-align: center; }
.kol-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0a0a0a;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 20px -6px var(--gold-glow);
}
.kol-channel-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px var(--gold-glow);
}
.kol-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--c-text-2);
}
.kol-empty-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.kol-empty-text { font-size: 0.95rem; margin-bottom: 1rem; }
.kol-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.kol-link:hover { color: var(--gold-light); }

/* ---------- GILYONOT — compact cover (no big embed) ---------- */
.gil-compact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.gil-art {
  position: relative;
  width: 96px; height: 110px;
  flex-shrink: 0;
}
.gil-page {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fbf6e6, #e8dcc0);
  border: 1px solid rgba(212,168,67,0.4);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.gil-p1 { transform: rotate(-8deg) translateY(4px); opacity: 0.5; }
.gil-p2 { transform: rotate(-3deg) translateY(2px); opacity: 0.75; }
.gil-p3 { transform: rotate(2deg); }
.gil-emoji {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  z-index: 1;
}
.gil-info { flex: 1 1 220px; min-width: 0; }
.gil-info-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.gil-info-text {
  font-size: 0.9rem;
  color: var(--c-text-2);
  line-height: 1.55;
  margin: 0 0 0.9rem;
}
.gil-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0a0a0a;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 18px -6px var(--gold-glow);
}
.gil-open:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -6px var(--gold-glow); }

/* ---------- DAF YOMI — keep compact, fit the masechet image ---------- */
.card-daf-yomi .card-body { max-width: 100%; }
.card-daf-yomi iframe,
.card-daf-yomi video,
.card-daf-yomi img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 12px;
}
.card-daf-yomi .card-body > * { margin-inline: auto; }

/* ---------- PARSHA ARTICLES — bigger typography per request ---------- */
.card-parsha-articles .card-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.card-parsha-articles .card-body { font-size: 1.08rem; line-height: 1.75; }
.card-parsha-articles .card-body h3,
.card-parsha-articles .card-body .art-title { font-size: 1.25rem; font-weight: 800; }
.card-parsha-articles .card-body p { font-size: 1.05rem; line-height: 1.8; }

/* ---------- YouTube multi-link footer ---------- */
.yt-foot-multi {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.yt-foot-multi .kol-channel-link { margin-top: 0; }

/* ---------- VERSE OF DAY ---------- */
.card-verse {
  background: linear-gradient(135deg,
    rgba(212, 168, 67, 0.08),
    rgba(20, 20, 22, 0.6));
}
.verse-quote {
  position: relative;
  padding: 1.25rem 1.5rem;
  margin: 0.5rem 0 1rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 168, 67, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  text-align: center;
}
.verse-text-he {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--c-text);
  letter-spacing: 0.005em;
}
.verse-text-en {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--c-border);
  font-size: 0.85rem;
  color: var(--c-text-2);
  font-style: italic;
  line-height: 1.55;
}
.verse-src {
  display: block;
  text-align: center;
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}
.verse-link {
  display: block;
  text-align: center;
  color: var(--c-text-3);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 180ms ease;
}
.verse-link:hover { color: var(--gold); }

/* ---------- TEHILIM YOMI — chips grid ---------- */
.card-tehilim {
  background: linear-gradient(135deg,
    rgba(108, 99, 255, 0.06),
    rgba(212, 168, 67, 0.04));
}
.teh-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.teh-day-pill {
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0a0a0a;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 700;
}
.teh-day-pill strong { font-size: 1.05rem; font-weight: 900; }
.teh-range {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-text-2);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.teh-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 0.5rem;
}
.teh-chip {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0.4rem;
  background: linear-gradient(180deg,
    rgba(108, 99, 255, 0.15),
    rgba(108, 99, 255, 0.05));
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.teh-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(108, 99, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.teh-chip:hover {
  transform: translateY(-3px) rotate(-2deg);
  border-color: var(--rgb-b);
  color: white;
  box-shadow:
    0 12px 28px -6px rgba(108, 99, 255, 0.5),
    0 0 0 1px var(--rgb-b) inset;
}
.teh-chip:hover::before { opacity: 1; }
.teh-chip-num {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.teh-foot {
  margin-top: 0.85rem;
  text-align: center;
}
.teh-tip {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--c-text-3);
  letter-spacing: 0.08em;
}

/* ---------- APOD (NASA) ---------- */
.card-apod {
  background: linear-gradient(135deg,
    rgba(108, 99, 255, 0.05),
    rgba(48, 209, 88, 0.04));
  overflow: hidden;
}
.apod-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .apod-wrap { grid-template-columns: 1fr; }
}
.apod-media-wrap {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.apod-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.apod-media-wrap:hover .apod-media { transform: scale(1.04); }
.apod-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.apod-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.3;
  margin: 0 0 0.4rem;
}
.apod-date {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--rgb-c);
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}
.apod-expl {
  font-size: 0.85rem;
  color: var(--c-text-2);
  line-height: 1.6;
  margin: 0 0 0.85rem;
}
.apod-link {
  align-self: flex-start;
  color: var(--rgb-c);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 200ms ease;
}
.apod-link:hover { color: var(--rgb-b); }
