/* ================================================================
   Zmanim Schedule — Page Styles
   Scoped under .zmanim-container
   ================================================================ */

/* ---- Base ---- */
.zmanim-container {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  color: #1e293b;
}

/* ---- Page Header ---- */
.zmanim-header {
  text-align: center;
  padding: 50px 24px 10px;
  max-width: 750px;
  margin: 0 auto;
}

.zmanim-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.zmanim-header p {
  font-size: 1.05rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ---- Content Wrapper ---- */
.zmanim-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 24px 70px;
}

/* ---- Info Bar ---- */
.zmanim-info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.zmanim-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafe 100%);
  border-radius: 14px;
  padding: 20px 22px;
  border-left: 4px solid #0958a3;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
}

.zmanim-info-item > i {
  font-size: 1.4rem;
  color: #0958a3;
  flex-shrink: 0;
}

.zmanim-info-item > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zmanim-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 3px;
}

.zmanim-info-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

/* ---- Section Cards ---- */
.zmanim-section {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03);
  border-left: 5px solid #0958a3;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.zmanim-section.zmanim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section color accents */
.zmanim-section--sunrise   { border-left-color: #e8910c; }
.zmanim-section--sunset    { border-left-color: #dc2626; }
.zmanim-section--shaah     { border-left-color: #0958a3; }
.zmanim-section--alos      { border-left-color: #6366f1; }
.zmanim-section--misheyakir{ border-left-color: #8b5cf6; }
.zmanim-section--shma      { border-left-color: #0958a3; }
.zmanim-section--tfila     { border-left-color: #0891b2; }
.zmanim-section--pesach    { border-left-color: #b45309; }
.zmanim-section--chatzos   { border-left-color: #059669; }
.zmanim-section--gedola    { border-left-color: #34a853; }
.zmanim-section--ketana    { border-left-color: #16a34a; }
.zmanim-section--plag      { border-left-color: #7c3aed; }
.zmanim-section--candles   { border-left-color: #e8910c; }
.zmanim-section--bain      { border-left-color: #6d28d9; }
.zmanim-section--tzais     { border-left-color: #1e3a5f; }
.zmanim-section--midnight  { border-left-color: #374151; }
.zmanim-section--molad     { border-left-color: #0958a3; }
.zmanim-section--essential { border-left-color: #0958a3; }

/* ---- Section Header ---- */
.zmanim-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.zmanim-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(9, 88, 163, 0.08);
  color: #0958a3;
}

/* Color-matched icon backgrounds */
.zmanim-section--sunrise .zmanim-section-icon   { background: rgba(232, 145, 12, 0.1); color: #e8910c; }
.zmanim-section--sunset .zmanim-section-icon     { background: rgba(220, 38, 38, 0.08); color: #dc2626; }
.zmanim-section--alos .zmanim-section-icon       { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.zmanim-section--misheyakir .zmanim-section-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.zmanim-section--tfila .zmanim-section-icon      { background: rgba(8, 145, 178, 0.1); color: #0891b2; }
.zmanim-section--pesach .zmanim-section-icon     { background: rgba(180, 83, 9, 0.1); color: #b45309; }
.zmanim-section--chatzos .zmanim-section-icon    { background: rgba(5, 150, 105, 0.1); color: #059669; }
.zmanim-section--gedola .zmanim-section-icon     { background: rgba(52, 168, 83, 0.1); color: #34a853; }
.zmanim-section--ketana .zmanim-section-icon     { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.zmanim-section--plag .zmanim-section-icon       { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.zmanim-section--candles .zmanim-section-icon    { background: rgba(232, 145, 12, 0.1); color: #e8910c; }
.zmanim-section--bain .zmanim-section-icon       { background: rgba(109, 40, 217, 0.1); color: #6d28d9; }
.zmanim-section--tzais .zmanim-section-icon      { background: rgba(30, 58, 95, 0.1); color: #1e3a5f; }
.zmanim-section--midnight .zmanim-section-icon   { background: rgba(55, 65, 81, 0.1); color: #374151; }
.zmanim-section--molad .zmanim-section-icon      { background: rgba(9, 88, 163, 0.08); color: #0958a3; }

.zmanim-section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---- Section Body ---- */
.zmanim-section-body {
  padding: 0;
}

/* ---- Zmanim Row ---- */
.zmanim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.2s ease;
}

.zmanim-row:last-child {
  border-bottom: none;
}

.zmanim-row:nth-child(even) {
  background: #fafbfd;
}

.zmanim-row:hover {
  background: #f0f7ff;
}

.zmanim-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.zmanim-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: #f0f7ff;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(9, 88, 163, 0.1);
}

/* ---- Mobile Responsive ---- */
@media (max-width: 900px) {
  .zmanim-info-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .zmanim-header {
    padding: 35px 16px 8px;
  }

  .zmanim-header h1 {
    font-size: 2rem;
  }

  .zmanim-header p {
    font-size: 1rem;
  }

  .zmanim-content {
    padding: 24px 16px 50px;
  }

  .zmanim-section-header {
    padding: 16px 18px;
  }

  .zmanim-row {
    padding: 10px 18px;
  }

  .zmanim-label {
    font-size: 0.85rem;
  }

  .zmanim-time {
    font-size: 0.88rem;
    padding: 3px 10px;
  }
}

@media (max-width: 480px) {
  .zmanim-header h1 {
    font-size: 1.7rem;
  }

  .zmanim-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 16px;
  }

  .zmanim-label {
    padding-right: 0;
  }

  .zmanim-time {
    align-self: flex-end;
  }
}
