/* ================================
   تخصيص ألوان الـ primary حسب هوية مستر فيصل
   ================================ */

/* لو أنت على Bootstrap 5 وتستخدم CSS variables */
:root {
  /* اللون الأساسي */
  --bs-primary: #2fb7c0;
  --bs-primary-rgb: 47, 183, 192;

  /* ألوان الروابط الافتراضية */
  --bs-link-color: #2fb7c0;
  --bs-link-hover-color: #208a93; /* أغمق شوي لمجرد الهوفر */

  /* اختياري: لو تستخدم أزرار soft */
  --bs-primary-bg-subtle: #e3f7f9;
  --bs-primary-border-subtle: #b8e7ec;
}

/* تعميم لون الروابط الافتراضي في الموقع */
a {
  color: #2fb7c0;
  text-decoration-color: rgba(47, 183, 192, 0.4);
}

a:hover,
a:focus {
  color: #208a93;
  text-decoration-color: rgba(32, 138, 147, 0.7);
}


/* للأمان: إعادة تعريف بعض الكلاسات الأساسية في حال الثيم ما يعتمد بس على المتغيرات */

/* خلفيات الـ primary */
.bg-primary {
  background-color: #2fb7c0 !important;
}

.border-primary {
  border-color: #2fb7c0 !important;
}

.text-primary {
  color: #2fb7c0 !important;
}

/* زر primary أساسي */
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2fb7c0, #59c1cd);
  border-color: #2fb7c0;
  box-shadow: 0 4px 12px rgba(47, 183, 192, 0.35);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #ffffff;
  background: linear-gradient(135deg, #27a5ae, #4cb0bc);
  border-color: #27a5ae;
  box-shadow: 0 6px 16px rgba(39, 165, 174, 0.45);
}

/* زر outline primary */
.btn-outline-primary {
  color: #2fb7c0;
  border-color: #2fb7c0;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #ffffff;
  background-color: #2fb7c0;
  border-color: #2fb7c0;
}

/* Badges و Pills primary لو تستخدمها */
.badge.bg-primary,
.bg-primary .badge {
  background-color: #2fb7c0 !important;
}

/* Links داخل النافبار لما تكون مستعملة .text-primary أو active */
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: #2fb7c0 !important;
}


/* ===== Calm Bio Page ===== */

body {
  background: #f6f7fb;
  color: #1f2937;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, sans-serif;
}

/* Navbar */
.bio-nav {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

/* Hero */
.bio-hero {
  padding: 50px 15px 35px;
  text-align: center;
}

.bio-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.bio-name {
  font-weight: 700;
  margin-top: 18px;
}

.bio-desc {
  color: #6b7280;
  max-width: 420px;
  margin: 10px auto 0;
}

/* Social */
.bio-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.social-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: .2s ease;
}

.social-btn:hover {
  background: var(--bs-link-hover-color);
  color: #fff;
  border-color: var(--bs-link-hover-color);
}

/* GO Box */
.go-box {
  max-width: 420px;
  margin: 35px auto;
  background: #fff;
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
}

.go-box h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.go-form .input-group-text {
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
}

.go-form .form-control {
  border: 1px solid #e5e7eb;
}

.go-form .btn {
  background: #2563eb;
  border: none;
}

.go-form .btn:hover {
  background: #1e40af;
}

/* Cards */
.bio-links {
  max-width: 420px;
  margin: 10px auto 60px;
  display: grid;
  gap: 14px;
}

.bio-card {
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  transition: .2s ease;
}

.bio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0,0,0,.08);
}

/* Footer */
.bio-footer {
  text-align: center;
  padding: 25px;
  color: #6b7280;
  font-size: 14px;
}

/* Social icons wrapper */
.bio-social-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin-top:22px;
  flex-wrap:wrap;
}

/* ثبّت اللون حتى لو الرابط visited */
.bio-social-icons a.social-icon,
.bio-social-icons a.social-icon:visited{
  text-decoration:none;
  color:#fff;
}

.bio-social-icons a.social-icon i{
  color: inherit;
}

/* icon base */
.social-icon{
  width:46px;
  height:46px;
  border-radius:14px;      /* إذا تبيها دائرية 100% بدل 14px */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;

  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* hover بدون تغيير لون مزعج */
.social-icon:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

/* لو الرابط # */
.social-icon.is-disabled{
  pointer-events:none;
  opacity:.65;
  transform:none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* Brand colors + visited */
.social-icon.ig,   .social-icon.ig:visited   { background:#e1306c; }
.social-icon.x,    .social-icon.x:visited    { background:#000; }
.social-icon.snap, .social-icon.snap:visited { background:#fffc00 !important; color:#000 !important; }
.social-icon.yt,   .social-icon.yt:visited   { background:#ff0000; }
.social-icon.tt,   .social-icon.tt:visited   { background:#000; }
.social-icon.tg,   .social-icon.tg:visited   { background:#0088CC; }
.social-icon.wa,   .social-icon.wa:visited   { background:#25D366; }

/* ===== Public Navbar ===== */

.public-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.public-navbar .nav-link {
  color: #374151;
  font-weight: 500;
}

.public-navbar .nav-link:hover {
  color: var(--bs-link-color);
}

.navbar-brand img {
  max-height: 50px;
}


.public-navbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
}

/* أيقونة القائمة للجوال */
.menu-toggle-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle-icon .line {
  position: absolute;
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.menu-toggle-icon .line:nth-child(1) {
  top: 11px;
}
.menu-toggle-icon .line:nth-child(2) {
  top: 16px;
}
.menu-toggle-icon .line:nth-child(3) {
  top: 21px;
}

/* حالة الفتح: نحط كلاس على البودي عبر JS */
.mobile-menu-open .menu-toggle-icon .line:nth-child(1) {
  top: 16px;
  transform: rotate(45deg);
}
.mobile-menu-open .menu-toggle-icon .line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-toggle-icon .line:nth-child(3) {
  top: 16px;
  transform: rotate(-45deg);
}

/* Offcanvas مخصص للجوال */
.mobile-offcanvas {
  border-radius: 0 18px 18px 0;
  overflow: hidden;
}

.mobile-offcanvas .offcanvas-header {
  background: linear-gradient(135deg, #2fb7c0, #2ca0a8);
  color: #f9fafb;
}

.mobile-offcanvas .offcanvas-title {
  font-size: 0.95rem;
}

.mobile-offcanvas .offcanvas-body {
  background: #f9fafb;
}

/* روابط القائمة في الجوال */
.mobile-nav-link {
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.mobile-nav-link i {
  font-size: 0.9rem;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(15, 23, 42, 0.04);
}

/* ايقونات السوشال */
.social-pill {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.9rem;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.social-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.5);
}
