/**
 * @file
 * Prayer Times styling.
 */

/* Full Page Styles */
.nsia-prayer-times-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #f8f9fa;
  min-height: 60vh;
}

.prayer-times-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.prayer-times-header h1 {
  font-size: 2.5rem;
  color: #1a5f2a;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.prayer-times-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.prayer-times-location svg {
  color: #1a5f2a;
}

.prayer-times-date {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.gregorian-date {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
}

.hijri-date {
  font-size: 1.1rem;
  color: #1a5f2a;
  font-weight: 500;
}

/* Prayer Times Grid */
.prayer-times-today {
  margin-bottom: 3rem;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.prayer-time-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  position: relative;
  transition: all 0.3s ease;
}

.prayer-time-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.prayer-time-card.is-current {
  border-color: #1a5f2a;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.prayer-time-card.is-next {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.prayer-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.current-badge {
  background: #1a5f2a;
  color: #fff;
}

.next-badge {
  background: #f59e0b;
  color: #fff;
}

.prayer-icon {
  color: #1a5f2a;
  margin-bottom: 0.75rem;
}

.prayer-time-card.is-next .prayer-icon {
  color: #d97706;
}

.prayer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.prayer-arabic {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
  font-family: 'Noto Sans Arabic', sans-serif;
}

/* Prayer Times Row (Adhan + Iqamah) */
.prayer-times-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prayer-adhan,
.prayer-iqamah {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.prayer-iqamah {
  border-top: 1px dashed #e0e0e0;
}

.time-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prayer-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a5f2a;
}

.iqamah-time {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d97706;
}

.prayer-time-card.is-next .prayer-time {
  color: #d97706;
}

.prayer-time-card.is-next .iqamah-time {
  color: #b45309;
}

/* Monthly Prayer Times Table */
.prayer-times-monthly {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.prayer-times-monthly h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

.prayer-times-monthly h2 svg {
  color: #1a5f2a;
}

.monthly-table-wrapper {
  overflow-x: auto;
}

.monthly-prayer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.monthly-prayer-table th,
.monthly-prayer-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.monthly-prayer-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a5f2a;
  position: sticky;
  top: 0;
}

.monthly-prayer-table tbody tr:hover {
  background: #f8f9fa;
}

.monthly-prayer-table tbody tr.is-today {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  font-weight: 600;
}

.monthly-prayer-table tbody tr.is-today td {
  color: #1a5f2a;
}

.date-cell {
  font-weight: 600;
  color: #333;
}

.day-cell {
  color: #666;
}

/* Footer */
.prayer-times-footer {
  text-align: center;
  padding-top: 1rem;
}

.prayer-times-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.prayer-times-note svg {
  flex-shrink: 0;
  color: #1a5f2a;
}

/* Responsive */
@media (max-width: 768px) {
  .nsia-prayer-times-page {
    padding: 1rem;
  }

  .prayer-times-header h1 {
    font-size: 1.75rem;
  }

  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .prayer-time-card {
    padding: 1.25rem 0.75rem;
  }

  .prayer-times-monthly {
    padding: 1rem;
  }

  .prayer-times-monthly h2 {
    font-size: 1.25rem;
  }

  .monthly-prayer-table {
    font-size: 0.8rem;
  }

  .monthly-prayer-table th,
  .monthly-prayer-table td {
    padding: 8px 4px;
  }
}

@media (max-width: 480px) {
  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prayer-time-card {
    padding: 1rem 0.5rem;
  }

  .prayer-icon svg {
    width: 24px;
    height: 24px;
  }

  .prayer-name {
    font-size: 0.95rem;
  }

  .prayer-time {
    font-size: 1.1rem;
  }

  .iqamah-time {
    font-size: 0.95rem;
  }

  .time-label {
    font-size: 0.65rem;
  }
}

/* Hijri Monthly Prayer Times Table */
.prayer-times-hijri-monthly {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.prayer-times-hijri-monthly h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

.prayer-times-hijri-monthly h2 svg {
  color: #1a5f2a;
}

.hijri-table-wrapper {
  overflow-x: auto;
}

.hijri-prayer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hijri-prayer-table th {
  background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
  color: #fff;
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.hijri-prayer-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.hijri-prayer-table tbody tr:nth-child(odd) {
  background: #f9fafb;
}

.hijri-prayer-table tbody tr:hover {
  background: #f0fdf4;
}

.hijri-prayer-table .hijri-date {
  font-weight: 600;
  color: #1a5f2a;
}

.hijri-prayer-table .gregorian-date {
  color: #666;
}

.hijri-prayer-table .day-cell {
  color: #888;
}

/* Responsive Hijri Table */
@media (max-width: 768px) {
  .prayer-times-hijri-monthly {
    padding: 1rem;
  }

  .prayer-times-hijri-monthly h2 {
    font-size: 1.25rem;
  }

  .hijri-prayer-table {
    font-size: 0.75rem;
  }

  .hijri-prayer-table th,
  .hijri-prayer-table td {
    padding: 8px 4px;
  }
}

@media (max-width: 480px) {
  .hijri-prayer-table {
    font-size: 0.7rem;
  }

  .hijri-prayer-table th,
  .hijri-prayer-table td {
    padding: 6px 3px;
  }
}
