/* 
 * Aik Minara Masjid - Clean Vertical Timetable
 */

:root {
  --bg-primary: #03130e;
  --bg-secondary: #06231a;
  --bg-card: rgba(8, 32, 24, 0.75);
  --bg-card-hover: rgba(12, 44, 34, 0.9);
  
  --border-color: rgba(52, 211, 153, 0.14);
  --border-gold: rgba(245, 158, 11, 0.4);
  
  --text-primary: #f0fdf4;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  
  --gold-primary: #f59e0b;
  --emerald-primary: #10b981;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(6, 78, 59, 0.25) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  padding: 20px 16px 36px;
}

.pattern-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(52, 211, 153, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header */
.masjid-header {
  text-align: center;
  margin-bottom: 24px;
}

.bismillah {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.masjid-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.masjid-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* Date & Time Bar */
.datetime-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 18px;
  background: rgba(6, 35, 26, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.time-item {
  display: flex;
  align-items: center;
}

.live-clock {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.date-divider {
  width: 1px;
  height: 16px;
  background: var(--border-color);
}

.date-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hijri-date {
  color: var(--gold-primary);
  font-weight: 500;
}

/* Vertical Prayers List */
.prayers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

/* Prayer Box */
.prayer-box {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
}

.prayer-box:hover {
  background: var(--bg-card-hover);
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.prayer-box.is-jumuah {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 35, 26, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.prayer-box-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.prayer-box-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.prayer-box-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.prayer-box-right {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.prayer-box-time {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.prayer-box-period {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Footer */
.masjid-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 6px var(--emerald-primary);
}

.status-dot.syncing {
  background: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-primary);
}

.status-dot.error {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

@media (max-width: 480px) {
  .masjid-title {
    font-size: 1.8rem;
  }
  
  .prayer-box {
    padding: 16px 20px;
  }
  
  .prayer-box-name {
    font-size: 1.25rem;
  }

  .prayer-box-arabic {
    font-size: 1.15rem;
  }
  
  .prayer-box-time {
    font-size: 1.65rem;
  }
  
  .datetime-bar {
    gap: 8px;
    padding: 8px 12px;
  }
}
