/**
 * RINBEE - Mobil Arı Evi Web Sitesi Özel Stilleri
 * Mimari ve Tasarım Prensipleri: Endüstriyel Bal Sarısı & Açık/Koyu Tema Geçişi
 */

/* 1. Tema Değişkenleri (Varsayılan: Beyaz / Aydınlık Mod) */
:root {
  --color-primary: #E5A93C;
  --color-primary-dark: #D97706;
  --color-primary-light: #FBBF24;
  --color-primary-glow: rgba(229, 169, 60, 0.25);

  --color-bg-main: #F8FAFC;
  --color-bg-surface: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
}

/* Koyu Mod Seçicisi */
.dark {
  --color-primary: #E5A93C;
  --color-primary-dark: #D97706;
  --color-primary-light: #FBBF24;
  --color-primary-glow: rgba(229, 169, 60, 0.35);

  --color-bg-main: #0B1120;
  --color-bg-surface: #0F172A;
  --color-bg-card: #1E293B;
  --color-border: #334155;
  --color-text-main: #F8FAFC;
  --color-text-muted: #94A3B8;
}

/* 2. Temel Sayfa ve Scroll Davranışı */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Tema Geçişlerinde Yumuşak Renk Akışı */
body, header, nav, section, footer, a, button, input, select, textarea, .glass-nav, .glass-card {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
}

/* Özel Endüstriyel Kaydırma Çubuğu */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
.dark ::-webkit-scrollbar-track {
  background: #0B1120;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
  border: 2px solid #F1F5F9;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border: 2px solid #0B1120;
}
::-webkit-scrollbar-thumb:hover {
  background: #D97706;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #E5A93C;
}

/* 3. Glassmorphism & Blur Stilleri */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}
.dark .glass-nav {
  background-color: rgba(11, 17, 32, 0.85);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(217, 119, 6, 0.05);
}
.dark .glass-card {
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 16px 35px -8px rgba(217, 119, 6, 0.15);
}
.dark .glass-card-hover:hover {
  border-color: rgba(229, 169, 60, 0.5);
  box-shadow: 0 16px 35px -8px rgba(229, 169, 60, 0.2);
}

/* 4. Buton Parlama ve Endüstriyel Bal Vurguları */
.btn-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #E5A93C 100%);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* İnce Arka Plan Grid Deseni */
.bg-industrial-grid {
  background-image: radial-gradient(rgba(217, 119, 6, 0.12) 1px, transparent 0);
  background-size: 32px 32px;
}
.dark .bg-industrial-grid {
  background-image: radial-gradient(rgba(229, 169, 60, 0.1) 1px, transparent 0);
}

/* 5. Hero Görseli İnteraktif Hotspot Stilleri */
.hotspot-point {
  position: absolute;
  cursor: pointer;
  z-index: 20;
  transform: translate(-50%, -50%);
}

.hotspot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.4);
  animation: hotspotPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
.dark .hotspot-pulse {
  background: rgba(229, 169, 60, 0.4);
}

.hotspot-core {
  position: relative;
  width: 24px;
  height: 24px;
  background: #E5A93C;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #0F172A;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.dark .hotspot-core {
  border: 3px solid #0B1120;
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.8);
}

.hotspot-point:hover .hotspot-core,
.hotspot-point.active .hotspot-core {
  transform: scale(1.25);
  background: #D97706;
  color: #FFFFFF;
}
.dark .hotspot-point:hover .hotspot-core,
.dark .hotspot-point.active .hotspot-core {
  background: #FFFFFF;
  color: #0B1120;
}

@keyframes hotspotPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
  }
}

/* Hotspot Tooltip Kartı */
.hotspot-card {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 270px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 35;
}

/* Üstte kalan noktalar için aşağı doğru açılan kart */
.hotspot-card.hotspot-card-down {
  bottom: auto;
  top: 130%;
  right: -20px;
  left: auto;
  transform: translateY(-8px);
}

.hotspot-point:hover .hotspot-card,
.hotspot-point.active .hotspot-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hotspot-point:hover .hotspot-card.hotspot-card-down,
.hotspot-point.active .hotspot-card.hotspot-card-down {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 6. İnteraktif Ray Mekanizması Simülasyonu */
.rail-simulator-box {
  position: relative;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 1rem;
}
.dark .rail-simulator-box {
  background: #0F172A;
  border: 1px solid #334155;
}

.rail-drawer {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rail-drawer.is-extended {
  transform: translateX(35%);
}

@media (max-width: 768px) {
  .rail-drawer.is-extended {
    transform: translateX(18%);
  }
}

/* 7. Sayaç Kutusu Stili */
.countdown-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.06);
}
.dark .countdown-box {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(229, 169, 60, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* 8. Accordion SSS Geçişleri */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content.open {
  max-height: 400px;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #D97706;
}
.dark .faq-item.active .faq-chevron {
  color: #E5A93C;
}

.faq-item.active {
  border-color: rgba(217, 119, 6, 0.5);
}
.dark .faq-item.active {
  border-color: rgba(229, 169, 60, 0.4);
}

/* 9. Yüzen WhatsApp Butonu */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
}

.floating-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* 10. Spinner / Yükleniyor Durumu */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 23, 42, 0.3);
  border-radius: 50%;
  border-top-color: #0F172A;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 11. Tema Değiştirici Buton Animasyonu */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  color: var(--color-text-main);
}
.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* 12. Mobil Kullanılabilirlik (UX) İyileştirmeleri */
/* iOS Safari Input Otomatik Zoom Koruması */
@media screen and (max-width: 767px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .floating-whatsapp {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    width: 50px;
    height: 50px;
  }
}

/* Mobil Hotspot Kartı Tıklama Efekti */
@keyframes cardFlashHighlight {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.7); }
  50% { transform: scale(1.01); box-shadow: 0 0 20px 4px rgba(229, 169, 60, 0.35); border-color: #E5A93C; }
  100% { transform: scale(1); box-shadow: none; }
}

.card-flash-highlight {
  animation: cardFlashHighlight 0.5s ease-out;
  border-color: #E5A93C !important;
}

/* Tap Highlight Önleyici & Dokunmatik İyileştirme */
* {
  -webkit-tap-highlight-color: transparent;
}

