/* ============================================================
   Mahdkoodak Profile Slider — Shortcode: [mahdkoodakslider]
   ============================================================ */

.mahdkoodak-slider-wrapper *,
.mahdkoodak-slider-wrapper *::before,
.mahdkoodak-slider-wrapper *::after {
  box-sizing: border-box;
}

.mahdkoodak-slider-wrapper {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  direction: rtl;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

.mahdkoodak-slider-container {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 48px;
  padding: 3.5rem 0 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.mahdkoodak-slider-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0 2.5rem;
}

.mahdkoodak-slider-track {
  display: flex;
  direction: ltr;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  gap: 24px;
}

.mahdkoodak-profile-card {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;
  box-sizing: border-box;
  direction: rtl;
}

.mahdkoodak-circle-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.mahdkoodak-circle-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mahdkoodak-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
  display: block;
}

.mahdkoodak-circle-wrapper:hover .mahdkoodak-circle-img {
  transform: scale(1.08);
}

.mahdkoodak-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 38, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  padding: 10px;
  color: #ffffff;
}

.mahdkoodak-circle-wrapper:hover .mahdkoodak-hover-overlay {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mahdkoodak-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.mahdkoodak-family {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.mahdkoodak-social-icons {
  display: flex;
  gap: 6px;
}

.mahdkoodak-social-icons a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.25s ease;
}

.mahdkoodak-social-icons a:hover {
  background: #ffffff;
  color: #121826;
  transform: translateY(-2px);
}

.mahdkoodak-profile-label {
  margin-top: 12px;
  background: #ffffff;
  padding: 10px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  white-space: nowrap;
  text-align: center;
}

.mahdkoodak-slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.mahdkoodak-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.mahdkoodak-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mahdkoodak-btn:not(:disabled):hover {
  background: #121826;
  color: #ffffff;
  border-color: #121826;
  transform: scale(1.05);
}

.mahdkoodak-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  direction: ltr;
}

.mahdkoodak-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mahdkoodak-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #121826;
}

/* ===== Responsive (Larger circles, tighter 12px gap) ===== */
@media (max-width: 768px) {
  .mahdkoodak-slider-track {
    gap: 12px !important;
  }
  .mahdkoodak-profile-card {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    padding: 10px 4px !important;
  }
  .mahdkoodak-circle-wrapper {
    width: 145px !important;
    height: 145px !important;
  }
  .mahdkoodak-slider-container {
    padding: 2rem 0 1.5rem !important;
    border-radius: 32px !important;
  }
  .mahdkoodak-slider-viewport {
    padding: 0 24px !important;
  }
}

@media (max-width: 480px) {
  .mahdkoodak-slider-viewport {
    padding: 0 12px !important;
  }
  .mahdkoodak-profile-card {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    padding: 8px 2px !important;
  }
  .mahdkoodak-circle-wrapper {
    width: 135px !important;
    height: 135px !important;
    border-width: 3px !important;
  }
  .mahdkoodak-profile-label {
    font-size: 11px !important;
    padding: 6px 14px !important;
  }
}