/* ============================================
   Today Page — Navigation Links
   ============================================ */
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-link--active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
}

/* ============================================
   Today Hero Section
   ============================================ */
.today-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 0 40px;
  overflow: hidden;
}

.hero-crescent {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
  animation: fadeIn 0.8s ease;
}

.hero-crescent svg {
  width: 60px;
  height: 60px;
}

.hero-day-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
  animation: fadeInUp 0.5s ease;
}

.hero-day-name {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease;
}

/* ============================================
   Date Cards Row
   ============================================ */
.hero-date-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 740px;
  margin: 0 auto;
  animation: fadeInUp 0.7s ease;
}

.date-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.date-card--hijri {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  border-right: none;
}

[dir="rtl"] .date-card--hijri {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  border-right: 1px solid var(--border);
  border-left: none;
}

.date-card--greg {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  border-left: none;
}

[dir="rtl"] .date-card--greg {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  border-left: 1px solid var(--border);
  border-right: none;
}

.date-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.date-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.date-card__month {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.date-card__date {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

/* Divider between cards */
.date-cards-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.divider-line {
  width: 1px;
  flex: 1;
  background: var(--border);
}

.divider-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.divider-icon svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Details Section
   ============================================ */
.details-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}

.details-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
  transition: all var(--transition);
}

.details-card:hover {
  box-shadow: var(--shadow-xl);
}

.details-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.details-title-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Table */
.details-table-wrap {
  padding: 8px;
}

.details-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.details-table tr {
  transition: background var(--transition);
}

.details-table tr:hover {
  background: var(--bg-tertiary);
}

.details-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-light);
}

.details-table td {
  padding: 18px 24px;
  vertical-align: middle;
}

.details-table__label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.details-table__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

[dir="rtl"] .details-table__value {
  text-align: left;
}

.details-table__value--accent {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .today-hero {
    padding: 40px 0 28px;
  }

  .hero-day-name {
    margin-bottom: 28px;
  }

  .hero-date-cards {
    flex-direction: column;
    gap: 0;
  }

  .date-card--hijri,
  [dir="rtl"] .date-card--hijri {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-bottom: none;
  }

  .date-card--greg,
  [dir="rtl"] .date-card--greg {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-top: none;
  }

  .date-cards-divider {
    flex-direction: row;
    width: 100%;
    height: 44px;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .divider-line {
    width: auto;
    height: 1px;
    flex: 1;
  }

  .date-card {
    padding: 24px 20px;
  }

  .date-card:hover {
    transform: none;
  }

  .details-table td {
    padding: 14px 16px;
  }

  .details-table__label {
    font-size: 0.82rem;
    white-space: normal;
  }

  .details-table__value {
    font-size: 0.9rem;
  }

  .header-actions {
    gap: 4px;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .hero-crescent svg {
    width: 44px;
    height: 44px;
  }

  .details-section {
    padding-bottom: 48px;
  }

  .details-title {
    font-size: 0.9rem;
    padding: 16px 16px;
  }

  .details-table-wrap {
    padding: 4px;
  }

  .details-table td {
    padding: 12px 12px;
    font-size: 0.82rem;
  }
}
