/* ==========================================================
   BURSA MEZAR BAKIMI & MERMER YAPIMI - ROYAL MEMORIAL THEME
   Açelya Çiçekçilik - Özel Tasarım & Lüks Tema
   ========================================================== */

:root {
  --primary-950: #031910;
  --primary-900: #06281B;
  --primary-800: #0B3B29;
  --primary-700: #12553C;
  --primary-600: #1B7252;
  --primary-100: #E2F2E9;
  --primary-50:  #F0F8F4;

  --gold-300: #FDE68A;
  --gold-400: #FCD34D;
  --gold-500: #F2C542;
  --gold-600: #D4AF37;
  --gold-700: #B38E22;
  --gold-800: #8E6E16;

  --marble-base: #F8FAF9;
  --marble-card: #FFFFFF;
  --slate-text:  #1E293B;
  --slate-muted: #64748B;
}

/* Custom Fonts & Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--marble-base);
  color: var(--slate-text);
}

body {
  overflow-x: hidden;
  width: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(20, 92, 63, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
              #F8FAF9;
}

.font-serif-luxury {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

/* Gold Gradient Utilities */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF1B8 0%, #F5D061 25%, #D4AF37 60%, #A9831E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #FDE68A 0%, #E5C158 35%, #D4AF37 70%, #B38E22 100%);
}

.bg-emerald-gradient {
  background: linear-gradient(145deg, #052317 0%, #0B3B29 50%, #07261A 100%);
}

.border-gold-glow {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
}

/* Luxury Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px -10px rgba(11, 59, 41, 0.08);
}

.glass-dark {
  background: rgba(6, 40, 27, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Premium Card Hover Transitions */
.card-hover-effect {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(11, 59, 41, 0.16);
  border-color: rgba(212, 175, 55, 0.5);
}

/* iOS Safari form zoom prevention */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================
   INTERACTIVE BEFORE / AFTER SLIDER
   ========================================================== */
.ba-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  user-select: none;
  touch-action: pan-y;
  background-color: #061F15;
  border: 2px solid rgba(212, 175, 55, 0.35);
}

.ba-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 72%; /* Optimal Aspect Ratio */
}

@media (max-width: 640px) {
  .ba-image-wrapper {
    padding-top: 85%;
  }
}

.ba-before-img,
.ba-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba-after-wrapper .ba-after-img {
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Slider Handle & Divider Line */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, #FFF3B0, #D4AF37, #FFF3B0);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.6);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  touch-action: none;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #B38E22 100%);
  color: #041E14;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 3.5px #FFFFFF;
  font-weight: bold;
}

@media (max-width: 640px) {
  .ba-handle-button {
    width: 40px;
    height: 40px;
  }
}

.ba-label-before,
.ba-label-after {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.ba-label-before {
  right: 16px;
  background: rgba(15, 23, 42, 0.88);
  color: #FCA5A5;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.ba-label-after {
  left: 16px;
  background: rgba(4, 30, 20, 0.92);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

/* ==========================================================
   MOBILE BOTTOM APP DOCK (4 BUTTONS)
   ========================================================== */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(3, 25, 16, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #CBD5E1;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 5px 2px;
  border-radius: 10px;
}

.mobile-dock-btn:active,
.mobile-dock-btn:hover {
  color: #FCD34D;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-dock-btn-primary {
  color: #031910;
  background: linear-gradient(135deg, #FFF3B0 0%, #D4AF37 50%, #B38E22 100%);
  padding: 6px 12px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  font-weight: 800;
}

/* Floating WhatsApp Button (Desktop) */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 13px 22px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-green 2.5s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .whatsapp-float {
    display: none;
  }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Shimmer Animation for Badges */
.badge-shimmer {
  position: relative;
  overflow: hidden;
}

.badge-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shimmer 3.5s infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  50%, 100% { left: 150%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
