/* ==========================================================================
   BULUT TEKNİK MERSİN YETKİLİ SERVİS - KURUMSAL GLOBAL MARKA DİZAYN SİSTEMİ
   (LG, HAIER, HOOVER VE SMEG RESMİ SİTELERİ STANDARDI - TSE YETKİLİ SERVİS)
   ========================================================================== */

:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-accent: #0284C7;
  --color-accent-light: #38BDF8;
  
  --color-body-bg: #FFFFFF;
  --color-surface-bg: #F8FAFC;
  --color-surface-alt: #F1F5F9;
  
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-text-sub: #64748B;
  
  --color-border: #E2E8F0;
  --color-border-hover: #93C5FD;

  /* Dinamik Marka Vurgu Değişkenleri */
  --brand-glow-color: rgba(37, 99, 235, 0.15);
  --brand-border-color: #2563EB;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color-scheme: light;
}

body {
  background-color: var(--color-surface-bg);
  color: var(--color-text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hafif kurumsal zemin deseni */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

/* CDN kesintisinde bile modalların/kapalı adımların ekranı kapatmamasını sağlayan CSS güvencesi */
#product-detail-modal.hidden,
#price-inquiry-modal.hidden,
#certificate-lightbox-modal.hidden,
#call-center-dropdown-menu.hidden,
#mobile-menu-drawer.hidden,
#speed-dial-panel.hidden,
#wizard-step-1.hidden,
#wizard-step-2.hidden,
#wizard-step-3.hidden,
#wizard-step-4.hidden,
#wizard-step-5.hidden,
#wizard-smart-routing-banner.hidden,
#mezitli-akdeniz-alert.hidden,
#management-alert.hidden,
[data-spotlight-secondary-badge].hidden {
  display: none !important;
}

/* ==========================================================================
   1. TAM EKRAN ÇOKLU MARKA SHOWROOM HERO (KENAR BOŞLUKSUZ)
   ========================================================================== */
.showroom-hero-wrapper {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.showroom-hero-stage {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.showroom-canvas {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  cursor: pointer;
}

.showroom-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  display: block;
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.showroom-slide-img.active {
  position: relative;
  opacity: 1;
}

.showroom-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: rgba(11, 34, 57, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(11, 34, 57, 0.28);
  transition: all 0.22s ease;
  cursor: pointer;
}

.showroom-arrow-btn:hover {
  background: rgba(37, 99, 235, 0.92);
  border-color: rgba(147, 197, 253, 0.8);
  transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   2. ÜST MENÜ (NAVBAR) & GLASSMORPHISM
   ========================================================================== */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.glass-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   3. SONSUZ KAYAN MARKA ŞERİDİ (INFINITE LOGO MARQUEE)
   ========================================================================== */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 32s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  flex-shrink: 0;
  transition: all 0.25s ease;
  cursor: pointer;
}

.marquee-item:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   4. LOGO SPOTLIGHT VE BEYAZ ROZET VİTRİNİ
   ========================================================================== */
.logo-spotlight-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-spotlight-box img {
  max-width: 85%;
  max-height: 75%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-fallback-badge {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 1rem;
}

/* ==========================================================================
   5. SİHİRBAZ KARTLARI VE CİHAZ GRUPLARI
   ========================================================================== */
.wizard-card {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.wizard-card.active {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.wizard-card:hover:not(.active) {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.device-3d-card {
  cursor: pointer;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.device-3d-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #93C5FD;
}

.device-3d-card.active {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px #2563EB, 0 8px 20px rgba(37, 99, 235, 0.15);
  background: #EFF6FF;
}

.device-preview-box {
  width: 100%;
  height: 8.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.check-item {
  transition: all 0.2s ease;
  user-select: none;
}

.check-item:hover {
  background: #F8FAFC;
  border-color: #93C5FD;
}

.check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.375rem;
  background-color: #FFFFFF;
  border: 2px solid #CBD5E1;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.check-item input[type="checkbox"]:checked {
  background-color: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.check-item input[type="checkbox"]:checked::before {
  content: "✓";
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.875rem;
}

/* ==========================================================================
   6. KURUMSAL BUTONLAR & SHIMMER EFEKTİ
   ========================================================================== */
.btn-electric {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.25s ease;
}

.btn-electric:hover {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.btn-electric:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg) translateX(-100%);
  animation: shimmer-sweep 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer-sweep {
  0% {
    transform: rotate(30deg) translateX(-120%);
  }
  20%, 100% {
    transform: rotate(30deg) translateX(120%);
  }
}

/* ==========================================================================
   7. SCROLL REVEAL & SPEED DIAL
   ========================================================================== */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.floating-speed-dial {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

.speed-dial-panel {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.speed-dial-panel.hidden {
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  pointer-events: none;
}

.speed-dial-panel:not(.hidden) {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   8. KATALOG VE ÜRÜN KARTLARI
   ========================================================================== */
.catalog-card {
  animation: catalogFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes catalogFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Özel Aydınlık Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   9. KURUMSAL TOP BAR (4 ÇAĞRI MASASI & WHATSAPP ŞERİDİ)
   ========================================================================== */
.corporate-topbar {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-desk-item {
  transition: all 0.2s ease;
}

.topbar-desk-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   10. RESMİ BELGELERİMİZ & TSE GÜVENCESİ
   ========================================================================== */
.certificate-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #2563eb, #059669);
  opacity: 0.8;
}

.certificate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.tse-seal-badge {
  background: radial-gradient(circle at 30% 30%, #fef3c7 0%, #fde68a 60%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.barcode-strip {
  background: repeating-linear-gradient(
    90deg,
    #0f172a,
    #0f172a 2px,
    transparent 2px,
    transparent 4px,
    #0f172a 4px,
    #0f172a 7px,
    transparent 7px,
    transparent 9px
  );
  height: 28px;
}

/* Belge Galeri Çerçevesi ve Kurumsal Koruma Katmanı */
#tse-belgelerimiz,
.certificate-card,
.certificate-preview-frame,
#certificate-lightbox-modal {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
}

.certificate-preview-frame {
  position: relative;
}

.certificate-preview-frame img,
.certificate-preview-frame canvas,
.certificate-preview-frame iframe {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

#certificate-lightbox-modal .certificate-lightbox-pdf-frame {
  pointer-events: auto;
}

.certificate-pdf-preview {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.12);
}

.certificate-lightbox-pdf-frame {
  width: 100%;
  height: 70vh;
  min-height: 440px;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
}

.certificate-watermark-ribbon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;
  z-index: 15;
}

.certificate-watermark-grid {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  align-content: space-evenly;
  justify-items: center;
  transform: rotate(-24deg);
  z-index: 15;
}

.certificate-watermark-text {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 34, 57, 0.22);
  background: rgba(255, 255, 255, 0.32);
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  border: 1px dashed rgba(11, 34, 57, 0.22);
  white-space: nowrap;
}

.certificate-watermark-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 16;
}

.certificate-print-warning {
  display: none;
}

/* ==========================================================================
   12. YAZDIRMA (PRINT) KORUMASI — BELGE GÖRSELLERİNİ GİZLE
   ========================================================================== */
@media print {
  .certificate-preview-frame,
  .certificate-pdf-preview,
  .certificate-lightbox-pdf-frame,
  #certificate-lightbox-modal,
  #cert-lightbox-pdf,
  #cert-lightbox-image,
  #cert-lightbox-canvas,
  .certificate-card iframe,
  .certificate-card img,
  .certificate-card canvas,
  .certificate-watermark-grid,
  .certificate-watermark-overlay-canvas {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .certificate-print-warning {
    display: block !important;
    padding: 2rem !important;
    margin: 1.5rem 0 !important;
    border: 2px solid #0B2239 !important;
    border-radius: 0.75rem !important;
    background: #ffffff !important;
    color: #0B2239 !important;
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   11. GOOGLE 5 YILDIZ DEĞERLENDİRME & YÖNETİM MODÜLÜ
   ========================================================================== */
.google-badge-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.management-feedback-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}
