/* ══════════════════════════════════════════════
   Doctor Pro — Footer CSS  v4.0  (Premium Dark)
   ══════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   ۱. ریشه فوتر
───────────────────────────────────────────── */
.dr-footer {
  background: #0C1A2E;
  color: rgba(255,255,255,.78);
  margin-top: 96px;
  position: relative;
  overflow: hidden;
}

/* اُرب‌های نوری پس‌زمینه */
.dr-footer::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,94,138,.22) 0%, transparent 65%);
  pointer-events: none;
}
.dr-footer::after {
  content: '';
  position: absolute;
  bottom: 40px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,62,.11) 0%, transparent 65%);
  pointer-events: none;
}

/* خط طلایی بالای فوتر */
.dr-footer__top-border {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(27,94,138,.50) 15%,
    #C8963E 35%,
    #E0BC72 50%,
    #C8963E 65%,
    rgba(27,94,138,.50) 85%,
    transparent 100%
  );
}

/* ─────────────────────────────────────────────
   ۲. بخش اصلی فوتر
───────────────────────────────────────────── */
.dr-footer__top { padding: 64px 0 52px; position: relative; z-index: 1; }

.dr-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px 40px;
}

/* ─────────────────────────────────────────────
   ۳. عنوان ستون‌ها
───────────────────────────────────────────── */
.dr-footer__col-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* خط زیر عنوان */
.dr-footer__col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(200,163,62,.40) 0%, transparent 100%);
  margin-right: 4px;
}

/* ─────────────────────────────────────────────
   ۴. ستون پروفایل دکتر
───────────────────────────────────────────── */

/* کارت پروفایل شیشه‌ای */
.dr-footer__profile-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: border-color .3s;
  position: relative;
  overflow: hidden;
}
.dr-footer__profile-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200,163,62,.50), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.dr-footer__profile-card:hover { border-color: rgba(200,163,62,.20); }
.dr-footer__profile-card:hover::before { opacity: 1; }

/* هدر کارت دکتر */
.dr-footer__profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dr-footer__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dr-footer__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(200,163,62,.40);
  box-shadow: 0 0 0 4px rgba(200,163,62,.12);
}

/* نقطه آنلاین */
.dr-footer__avatar-dot {
  position: absolute;
  bottom: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0C1A2E;
  animation: footer-dot-pulse 2.5s ease-in-out infinite;
}
@keyframes footer-dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.60); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,.0); }
}

.dr-footer__doctor-info { flex: 1; min-width: 0; }
.dr-footer__doctor-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-footer__doctor-title {
  font-size: 12px;
  color: rgba(200,163,62,.80);
  font-weight: 500;
  margin: 0;
}

.dr-footer__bio {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,.58);
  margin: 0 0 20px;
}

/* شبکه‌های اجتماعی */
.dr-footer__socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dr-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.62);
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

/* shimmer روی هاور */
.dr-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  border-radius: inherit;
  transition: opacity .25s;
}

.dr-social:hover { color: #fff; transform: translateY(-3px); }
.dr-social:hover { border-color: transparent; }

.dr-social--instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); box-shadow: 0 6px 20px rgba(253,29,29,.30); }
.dr-social--telegram:hover  { background: #26a5e4; box-shadow: 0 6px 20px rgba(38,165,228,.35); }
.dr-social--linkedin:hover  { background: #0077b5; box-shadow: 0 6px 20px rgba(0,119,181,.35); }
.dr-social--youtube:hover   { background: #ff0000; box-shadow: 0 6px 20px rgba(255,0,0,.30); }
.dr-social--aparat:hover    { background: #e54e4e; box-shadow: 0 6px 20px rgba(229,78,78,.30); }
.dr-social--twitter:hover   { background: #1da1f2; box-shadow: 0 6px 20px rgba(29,161,242,.30); }

/* ─────────────────────────────────────────────
   ۵. منوی فوتر
───────────────────────────────────────────── */
.dr-footer__menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}

.dr-footer__menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: rgba(255,255,255,.58);
  font-size: 13.5px;
  text-decoration: none;
  transition: all .22s ease;
  border: 1px solid transparent;
}

/* فلش با pseudo-element */
.dr-footer__menu > li > a::before {
  content: '';
  width: 7px; height: 7px;
  border-left: 2px solid rgba(200,163,62,.45);
  border-bottom: 2px solid rgba(200,163,62,.45);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: border-color .22s, transform .22s;
  margin-left: 2px;
}

.dr-footer__menu > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.06);
  padding-right: 16px;
}
.dr-footer__menu > li > a:hover::before {
  border-color: #C8963E;
  transform: rotate(45deg) translate(-2px, 2px);
}

/* ─────────────────────────────────────────────
   ۶. آخرین پست‌ها
───────────────────────────────────────────── */
.dr-footer__posts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}

.dr-footer__post-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .22s ease;
}

.dr-footer__post-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.dr-footer__post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.dr-footer__post-thumb svg { opacity: .3; }

.dr-footer__post-text { flex: 1; min-width: 0; }
.dr-footer__post-title {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 3px;
  transition: color .22s;
}
.dr-footer__post-date {
  font-size: 11px;
  color: rgba(200,163,62,.55);
}

.dr-footer__post-item a:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
.dr-footer__post-item a:hover .dr-footer__post-title { color: #fff; }

/* ─────────────────────────────────────────────
   ۷. اطلاعات تماس
───────────────────────────────────────────── */
.dr-footer__contact-list {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}

.dr-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dr-footer__contact-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(27,94,138,.25);
  border: 1px solid rgba(27,94,138,.30);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(100,180,255,.80);
  transition: background .22s;
}
.dr-footer__contact-list li:hover .dr-footer__contact-icon {
  background: rgba(27,94,138,.45);
}

.dr-footer__contact-text { flex: 1; min-width: 0; padding-top: 4px; }
.dr-footer__contact-label {
  font-size: 10.5px;
  color: rgba(255,255,255,.35);
  display: block;
  margin-bottom: 1px;
}
.dr-footer__contact-value {
  font-size: 13px;
  color: rgba(255,255,255,.70);
  text-decoration: none;
  direction: ltr;
  display: block;
  transition: color .2s;
}
.dr-footer__contact-value:hover { color: #fff; }

/* دکمه نوبت‌دهی */
.dr-footer__appt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(200,150,62,.18) 0%, rgba(200,150,62,.10) 100%);
  border: 1px solid rgba(200,163,62,.30);
  border-radius: 12px;
  color: #C8963E;
  font-family: var(--dr-font);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.dr-footer__appt-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200,163,62,.12), transparent);
  transform: translateX(-100%);
  transition: transform .55s ease;
}
.dr-footer__appt-btn:hover {
  background: linear-gradient(135deg, rgba(200,150,62,.30) 0%, rgba(200,150,62,.20) 100%);
  border-color: rgba(200,163,62,.55);
  color: #E0BC72;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(200,150,62,.20);
}
.dr-footer__appt-btn:hover::after { transform: translateX(100%); }

/* ─────────────────────────────────────────────
   ۸. دیوایدر وسط
───────────────────────────────────────────── */
.dr-footer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 20%, rgba(255,255,255,.08) 80%, transparent 100%);
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ─────────────────────────────────────────────
   ۹. بار پایین
───────────────────────────────────────────── */
.dr-footer__bottom {
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

.dr-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dr-footer__copy {
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dr-footer__copy a {
  color: rgba(255,255,255,.50);
  text-decoration: none;
  transition: color .2s;
}
.dr-footer__copy a:hover { color: #C8963E; }

/* نشان قلب */
.dr-footer__heart {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,.30);
  font-size: 11.5px;
}
.dr-footer__heart svg {
  color: #ef4444;
  animation: heart-beat 1.8s ease-in-out infinite;
}
@keyframes heart-beat {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.25); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.15); }
  70%      { transform: scale(1); }
}

/* دکمه بازگشت به بالا */
.dr-back-to-top {
  width: 55px; height: auto !important;
  border-radius: 50%;
  border: 1px solid rgba(200,163,62,.25);
  background: rgba(200,150,62,.10);
  color: rgba(200,163,62,.70);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
  opacity: 0;
  pointer-events: none;
  position: relative;
}
/* دایره دوار */
.dr-back-to-top::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(200,163,62,.20);
  animation: top-spin 6s linear infinite;
  opacity: 0;
  transition: opacity .25s;
}
@keyframes top-spin { to { transform: rotate(360deg); } }

.dr-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.dr-back-to-top:hover {
  background: linear-gradient(135deg, #C8963E, #E0BC72);
  border-color: transparent;
  color: #0C1A2E;
  box-shadow: 0 6px 22px rgba(200,150,62,.40);
  transform: translateY(-3px);
}
.dr-back-to-top:hover::before { opacity: 1; }

/* ─────────────────────────────────────────────
   ۱۰. ریسپانسیو
───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .dr-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px 28px; }
}

@media (max-width: 1023px) {
  .dr-footer__top { padding: 48px 0 40px; }
  .dr-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
  .dr-footer__col--about { grid-column: 1 / -1; }
  .dr-footer__profile-card { max-width: 440px; }
}

@media (max-width: 640px) {
  .dr-footer { margin-top: 64px; }
  .dr-footer__top { padding: 36px 0 28px; }
  .dr-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .dr-footer__col--about { grid-column: auto; }
  .dr-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .dr-footer__heart { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes footer-dot-pulse { to {} }
  @keyframes heart-beat { to {} }
  @keyframes top-spin { to {} }
  .dr-footer__appt-btn::after,
  .dr-topbar__appt::after { display: none; }
}
