/* =====================================================
   Future DZ - ثيم التدرج الوردي/البنفسجي + شريط التنقل السفلي
   الخطوة 1
   ===================================================== */

:root {
  --hitv-pink: #ff4d94;
  --hitv-violet: #9b5cff;
  --hitv-grad: linear-gradient(135deg, #ff4d94 0%, #9b5cff 100%);

  /* اللون الأساسي للقالب (يتغلب على القيم المحفوظة في إعدادات الألوان) */
  --bs-primary: #ff4d94 !important;
  --bs-primary-rgb: 255, 77, 148 !important;
  --bs-primary-text-emphasis: #ff8fbd !important;
  --bs-primary-bg-subtle: #3a1426 !important;
  --bs-primary-border-subtle: #7a2a52 !important;
  --bs-link-color: #ff6fa8 !important;
  --bs-link-hover-color: #ff9cc5 !important;
}

/* ---------- الأزرار ---------- */
.btn-primary,
.btn-primary:focus {
  --bs-btn-bg: #ff4d94;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: #ff4d94;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #e23c82;
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-bg: #ff4d94;
  --bs-btn-disabled-border-color: transparent;
  color: #fff !important;
  background-image: var(--hitv-grad) !important;
  border-color: transparent !important;
}
.btn-primary:hover,
.btn-primary:active {
  filter: brightness(1.08);
  color: #fff !important;
}

.btn-outline-primary {
  --bs-btn-color: #ff4d94;
  --bs-btn-border-color: #ff4d94;
  --bs-btn-hover-bg: rgba(255, 77, 148, 0.12);
  --bs-btn-hover-color: #ff7cb0;
  --bs-btn-hover-border-color: #ff4d94;
  --bs-btn-active-bg: rgba(255, 77, 148, 0.2);
  --bs-btn-active-border-color: #ff4d94;
  --bs-btn-active-color: #ff7cb0;
}

/* ---------- عناصر تستعمل اللون الأساسي ---------- */
.text-primary { color: #ff4d94 !important; }
.border-primary { border-color: #ff4d94 !important; }
.bg-primary,
.badge.bg-primary { background: var(--hitv-grad) !important; color: #fff !important; }
.progress-bar { background-image: var(--hitv-grad) !important; }
.form-check-input:checked { background-color: #ff4d94; border-color: #ff4d94; }
.form-control:focus,
.form-select:focus { border-color: #ff4d94; box-shadow: 0 0 0 0.2rem rgba(255, 77, 148, 0.2); }

/* =====================================================
   شريط التنقل السفلي (الهاتف والأجهزة اللوحية الصغيرة)
   ===================================================== */
.hitv-bottom-nav { display: none; }

@media (max-width: 991.98px) {
  .hitv-bottom-nav {
    display: flex;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(22, 22, 27, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .hitv-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    color: #8d8d96;
    font-size: 0.72rem;
    line-height: 1.2;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .hitv-bottom-nav a svg { width: 24px; height: 24px; }
  .hitv-bottom-nav a svg path { fill: currentColor; }
  .hitv-bottom-nav a.active svg path { fill: url(#hitvGrad); }
  .hitv-bottom-nav a.active span {
    background: var(--hitv-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
  }

  /* مساحة أسفل الصفحة حتى لا يغطي الشريط آخر المحتوى */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
