/* ===== تدبُّر — Custom styles ===== */

.font-quran { font-family: 'Amiri', serif; }
.font-body  { font-family: 'Tajawal', sans-serif; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 119, 6, 0.12), transparent),
    #0c0a09;
}

/* Nav links */
.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  color: #d6d3d1;
  transition: all .2s;
  font-weight: 500;
}
.nav-link:hover { color: #fbbf24; background: rgba(217,119,6,.1); }
.nav-link.active { color: #fbbf24; background: rgba(217,119,6,.15); font-weight: 700; }

/* Quranic verse display */
.verse-text {
  font-family: 'Amiri', serif;
  font-size: 1.9rem;
  line-height: 2.4;
  color: #fef3c7;
  text-align: center;
}

/* Ornamental frame around verses */
.verse-frame {
  position: relative;
  border: 1px solid rgba(217,119,6,.35);
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(41,37,36,.85), rgba(28,25,23,.9));
  box-shadow: 0 0 40px rgba(217,119,6,.07) inset, 0 10px 40px rgba(0,0,0,.4);
}
.verse-frame::before, .verse-frame::after {
  content: '❁';
  position: absolute;
  color: rgba(217,119,6,.5);
  font-size: 1.1rem;
}
.verse-frame::before { top: .6rem; right: .9rem; }
.verse-frame::after  { bottom: .6rem; left: .9rem; }

/* Category cards */
.cat-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
  background: rgba(28,25,23,.7);
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

/* Wizard option buttons */
.opt-btn {
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  text-align: right;
  width: 100%;
  background: rgba(28,25,23,.6);
  transition: all .2s;
}
.opt-btn:hover { border-color: #f59e0b; background: rgba(217,119,6,.1); }

/* Step progress dots */
.step-dot {
  width: 2.4rem; height: 2.4rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.15);
  color: #a8a29e;
  font-weight: 700;
  background: #1c1917;
  transition: all .3s;
  flex-shrink: 0;
}
.step-dot.done   { background: #059669; border-color: #059669; color: #fff; }
.step-dot.current{ background: #d97706; border-color: #fbbf24; color: #0c0a09; box-shadow: 0 0 18px rgba(251,191,36,.4); }

/* Notebook entry cards */
.note-card {
  border: 1px solid rgba(217,119,6,.25);
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(41,37,36,.9), rgba(28,25,23,.95));
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 9999px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #0c0a09;
  font-weight: 800;
  border-radius: .8rem;
  padding: .7rem 1.6rem;
  transition: all .2s;
  box-shadow: 0 4px 18px rgba(217,119,6,.35);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .8rem;
  padding: .7rem 1.4rem;
  color: #d6d3d1;
  transition: all .2s;
  font-weight: 600;
}
.btn-ghost:hover { border-color: #f59e0b; color: #fbbf24; }

/* Inputs */
.input-dark {
  background: rgba(12,10,9,.7);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .8rem;
  padding: .7rem 1rem;
  color: #fef3c7;
  width: 100%;
  transition: border-color .2s;
}
.input-dark:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.input-dark::placeholder { color: #78716c; }

/* Fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .45s ease both; }
.fade-up-d1 { animation: fadeUp .45s .08s ease both; }
.fade-up-d2 { animation: fadeUp .45s .16s ease both; }
.fade-up-d3 { animation: fadeUp .45s .24s ease both; }

/* Flow diagram connectors */
.flow-branch { position: relative; }
.flow-branch::before {
  content: '';
  position: absolute;
  top: -1.2rem;
  right: 50%;
  width: 1.5px;
  height: 1.2rem;
  background: rgba(217,119,6,.4);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 50%;
  transform: translateX(50%) translateY(120%);
  background: #1c1917;
  border: 1px solid #f59e0b;
  color: #fef3c7;
  padding: .8rem 1.6rem;
  border-radius: .9rem;
  z-index: 100;
  transition: transform .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  font-weight: 600;
}
#toast.show { transform: translateX(50%) translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0c0a09; }
::-webkit-scrollbar-thumb { background: #44403c; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #d97706; }
