/*
  application.css — custom styles for the Salawat sessions site.

  Most of the look comes from Tailwind utility classes written directly in the
  HTML/ERB (like "text-emerald-800" or "px-4"). This file adds the few special
  touches that are easier to write as plain CSS — the dome sky, the geometric
  pattern, and small reusable pieces like the checkmark list items.

  The theme: deep emerald green (like the Green Dome of Madina) with warm gold
  accents.
*/

/* Smooth scrolling when nav links jump to a section. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* leave room under the sticky header */
}

/* Friendly font helpers used in the HTML via font-heading / font-arabic. */
.font-heading { font-family: "Marcellus", ui-serif, Georgia, serif; }
.font-arabic  { font-family: "Amiri", serif; }

/* ===== Hero sky ===== */
.hero-sky {
  background: linear-gradient(180deg, #022c22 0%, #064e3b 45%, #047857 80%, #0f766e 100%);
}

.islamic-pattern {
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg,  rgba(251, 191, 36, 0.05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(251, 191, 36, 0.05) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #fde68a;
  box-shadow: 0 0 6px 1px rgba(253, 230, 138, 0.8);
  animation: twinkle 3s ease-in-out infinite;
}
.star:nth-child(odd) { animation-delay: 1.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

.dome-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  display: block;
}

/* ===== Small reusable pieces ===== */
.gold-divider {
  width: 72px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.day-chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #047857;
  color: #ecfdf5;
  font-size: 0.875rem;
}
.day-chip--off {
  background: transparent;
  color: #047857;
  border: 1px dashed #34d399;
}

.step-num {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #047857;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check {
  position: relative;
  padding-left: 1.6rem;
}
.check::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #047857;
  font-weight: 700;
}
.check--light::before {
  color: #fbbf24;
}

/* ===== Admin sidebar navigation ===== */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: rgba(209, 250, 229, 0.85);
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-nav--active {
  background: #065f46;
  color: #fff;
  font-weight: 600;
}
