/* =====================================================================
   بنت — سامانه رزرو آنلاین آرایشگران | Theme اصلی
   ===================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --c-purple: #6C63FF;
  --c-purple-2: #8B7FFF;
  --c-teal: #00C9A7;
  --c-gold: #FFB800;
  --c-bg: #F8F9FB;
  --c-text: #222222;
  --c-white: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow-soft: 0 8px 30px rgba(108, 99, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-deep: 0 20px 60px rgba(108, 99, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.06);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --dark-bg: #14151f;
  --dark-card: #1d1f2e;
  --dark-text: #f1f1f6;
}

[data-theme="dark"] {
  --c-bg: var(--dark-bg);
  --c-text: var(--dark-text);
  --glass-bg: rgba(29, 31, 46, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  direction: rtl;
  transition: background .35s ease, color .35s ease;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(108,99,255,0.10), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0,201,167,0.10), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255,184,0,0.08), transparent 45%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Glass Card ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- 3D Tilt Card ---------- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  will-change: transform;
}
.tilt-card:hover {
  box-shadow: var(--shadow-deep);
}

/* ---------- Floating animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.floating { animation: float 4.5s ease-in-out infinite; }

/* ---------- Gradient brand text ---------- */
.brand-gradient {
  background: linear-gradient(90deg, var(--c-purple), var(--c-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ripple ---------- */
.ripple-btn {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: ripple-anim .6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(3); opacity: 0; }
}

/* ---------- Primary Button ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, var(--c-purple), var(--c-purple-2));
  box-shadow: 0 10px 25px rgba(108,99,255,0.35);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(108,99,255,0.45); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Skeleton loading ---------- */
.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.12) 37%, rgba(0,0,0,0.06) 63%);
  background-size: 400% 100%;
  animation: skeleton-shine 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--c-purple), var(--c-teal)); border-radius: 8px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 50;
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; color: #888; padding: 4px 10px; border-radius: 14px; transition: all .2s;
}
.bottom-nav .nav-item.active { color: var(--c-purple); background: rgba(108,99,255,0.1); }

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  left: 20px;
  bottom: 84px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal), var(--c-purple));
  box-shadow: 0 12px 28px rgba(0,201,167,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  z-index: 60;
  transition: transform .2s ease;
}
.fab:active { transform: scale(.92); }

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}
