/* ==========================================================================
   YCL ELEKTRİK VE BİLİŞİM - Modern Responsive Theme
   Color Palette: Deep Titanium Dark, Electric Amber, Emergency Pulse Red
   ========================================================================== */

:root {
  --ycl-bg-dark: #0a0d14;
  --ycl-bg-card: #121824;
  --ycl-bg-card-hover: #172030;
  --ycl-bg-input: #0f1522;
  --ycl-border: #232d3f;
  --ycl-border-focus: #f59e0b;

  --ycl-gold: #f59e0b;
  --ycl-gold-light: #fbbf24;
  --ycl-gold-glow: rgba(245, 158, 11, 0.25);

  --ycl-cyan: #0ea5e9;
  --ycl-cyan-glow: rgba(14, 165, 233, 0.25);

  --ycl-red: #ef4444;
  --ycl-red-pulse: rgba(239, 68, 68, 0.45);

  --ycl-text-main: #f8fafc;
  --ycl-text-muted: #cbd5e1;
  --ycl-text-dim: #94a3b8;

  --ycl-radius: 12px;
  --ycl-radius-sm: 8px;
  --ycl-radius-lg: 18px;
  --ycl-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ycl-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--ycl-bg-dark);
  color: var(--ycl-text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   High-Contrast Readability Overrides
   ========================================================================== */
.text-muted,
p.text-muted,
div.text-muted,
span.text-muted,
small.text-muted {
  color: #cbd5e1 !important; /* High-contrast crisp light silver */
}

.text-secondary {
  color: #94a3b8 !important;
}

.hero-desc {
  color: #e2e8f0 !important;
}

.service-desc {
  color: #cbd5e1 !important;
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
}

/* Sıkça Sorulan Sorular (Accordion) */
.accordion-item {
  background-color: var(--ycl-bg-card) !important;
  border: 1px solid var(--ycl-border) !important;
}

.accordion-button {
  background-color: transparent !important;
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--ycl-gold) !important;
  background-color: rgba(245, 158, 11, 0.08) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1) !important;
}

.accordion-body {
  color: #f1f5f9 !important; /* Bright, clear, highly legible text */
  font-size: 0.96rem !important;
  line-height: 1.75 !important;
  background-color: rgba(10, 13, 20, 0.5) !important;
}

/* Canlı Konum Teyidi ve Bölge Duyuru Kutusu */
.duty-region-callout,
.duty-region-callout .text-muted,
.duty-region-callout div {
  color: #ffffff !important;
}
.duty-region-callout .callout-subtext {
  color: #fde68a !important; /* Warm light gold for high readability */
}

/* ==========================================================================
   Top Bar - Acil Çağrı Hattı (Sabit / Kırmızı Vurgulu)
   ========================================================================== */
.emergency-topbar {
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 30%, #b91c1c 70%, #7f1d1d 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1040;
}

.pulse-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.8s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

.pulse-indicator.green {
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.emergency-btn-top {
  background: #ffffff;
  color: #b91c1c !important;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 14px;
  transition: var(--ycl-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}
.emergency-btn-top:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.main-navbar {
  background-color: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ycl-border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--ycl-transition);
}

.main-navbar .navbar-brand {
  flex-shrink: 0;
  margin-right: 1rem;
}

.brand-logo-img {
  width: 200px;
  height: 66px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: var(--ycl-transition);
}
.brand-logo-img:hover {
  transform: scale(1.03);
}

.main-navbar .navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.main-navbar .nav-item {
  white-space: nowrap;
}

.main-navbar .nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 6px 9px !important;
  border-radius: var(--ycl-radius-sm);
  transition: var(--ycl-transition);
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  gap: 5px;
}

.main-navbar .nav-link i {
  font-size: 0.90rem;
  flex-shrink: 0;
  line-height: 1;
}

.main-navbar .nav-link:hover, 
.main-navbar .nav-link.active {
  color: var(--ycl-gold) !important;
  background-color: rgba(245, 158, 11, 0.1);
}

.dropdown-menu-dark {
  background-color: var(--ycl-bg-card);
  border: 1px solid var(--ycl-border);
  box-shadow: var(--ycl-shadow);
  border-radius: var(--ycl-radius);
  padding: 10px;
}
.dropdown-item {
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: var(--ycl-radius-sm);
  font-size: 0.92rem;
  transition: var(--ycl-transition);
}
.dropdown-item:hover {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--ycl-gold);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f17 !important;
  font-weight: 700;
  border: none;
  border-radius: var(--ycl-radius-sm);
  padding: 10px 22px;
  box-shadow: 0 4px 15px var(--ycl-gold-glow);
  transition: var(--ycl-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-emergency {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: var(--ycl-radius-sm);
  padding: 10px 22px;
  box-shadow: 0 4px 15px var(--ycl-red-pulse);
  transition: var(--ycl-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-emergency:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.55);
}

.btn-outline-gold {
  border: 1px solid var(--ycl-gold);
  color: var(--ycl-gold) !important;
  background: transparent;
  font-weight: 600;
  border-radius: var(--ycl-radius-sm);
  padding: 9px 20px;
  transition: var(--ycl-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-gold:hover {
  background-color: var(--ycl-gold);
  color: #0b0f17 !important;
  box-shadow: 0 4px 15px var(--ycl-gold-glow);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: var(--ycl-radius-sm);
  padding: 10px 20px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--ycl-transition);
}
.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.cart-btn-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ycl-bg-card);
  border: 1px solid var(--ycl-border);
  color: var(--ycl-text-main);
  transition: var(--ycl-transition);
}
.cart-btn-badge:hover {
  border-color: var(--ycl-gold);
  color: var(--ycl-gold);
}
.cart-count-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ycl-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
              var(--ycl-bg-dark);
  border-bottom: 1px solid var(--ycl-border);
}

.hero-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--ycl-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 0%, #f59e0b 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--ycl-text-muted);
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-feature-box {
  background: var(--ycl-bg-card);
  border: 1px solid var(--ycl-border);
  border-radius: var(--ycl-radius);
  padding: 24px;
  box-shadow: var(--ycl-shadow);
  position: relative;
  overflow: hidden;
}

.hero-feature-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ycl-gold), var(--ycl-cyan));
}

/* ==========================================================================
   Service Category Cards (6 Temel İş Kolu)
   ========================================================================== */
.service-card {
  background: var(--ycl-bg-card);
  border: 1px solid var(--ycl-border);
  border-radius: var(--ycl-radius);
  padding: 28px 24px;
  transition: var(--ycl-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--ycl-gold-glow);
  background: var(--ycl-bg-card-hover);
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--ycl-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: var(--ycl-transition);
}

.service-card:hover .service-icon-box {
  background: var(--ycl-gold);
  color: #000;
  transform: scale(1.08) rotate(3deg);
}

.service-card.emergency-card {
  border-color: rgba(239, 68, 68, 0.4);
}
.service-card.emergency-card .service-icon-box {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--ycl-red);
}
.service-card.emergency-card:hover {
  border-color: var(--ycl-red);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--ycl-red-pulse);
}
.service-card.emergency-card:hover .service-icon-box {
  background: var(--ycl-red);
  color: #fff;
}

.service-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  letter-spacing: 0.5px;
}
.service-card.emergency-card .service-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.service-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--ycl-text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ycl-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ycl-transition);
}
.service-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================================================
   Product Cards & Vitrin
   ========================================================================== */
.product-card {
  background: var(--ycl-bg-card);
  border: 1px solid var(--ycl-border);
  border-radius: var(--ycl-radius);
  overflow: hidden;
  transition: var(--ycl-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--ycl-shadow);
}

.product-img-wrapper {
  position: relative;
  padding-top: 75%;
  background: #090c12;
  overflow: hidden;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--ycl-gold);
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-title a {
  color: #fff;
  text-decoration: none;
}
.product-title a:hover {
  color: var(--ycl-gold);
}

.product-price-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ycl-gold-light);
}

.price-old {
  font-size: 0.9rem;
  color: var(--ycl-text-dim);
  text-decoration: line-through;
  margin-left: 8px;
}

.assembly-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  margin-bottom: 10px;
}

/* ==========================================================================
   Before / After Interactive Comparison Slider
   ========================================================================== */
.ba-slider-container {
  position: relative;
  width: 100%;
  border-radius: var(--ycl-radius);
  overflow: hidden;
  user-select: none;
  aspect-ratio: 16 / 9;
  box-shadow: var(--ycl-shadow);
  border: 1px solid var(--ycl-border);
}

.ba-slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--ycl-gold);
  width: 50%;
}

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ycl-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.7);
  cursor: ew-resize;
  pointer-events: none;
  font-size: 0.9rem;
  font-weight: bold;
}

.ba-label {
  position: absolute;
  bottom: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 5;
}
.ba-label.before { left: 14px; border-left: 3px solid #ef4444; }
.ba-label.after { right: 14px; border-right: 3px solid #10b981; }

/* ==========================================================================
   Interactive Wizards (CCTV / Renovation / Emergency)
   ========================================================================== */
.wizard-box {
  background: var(--ycl-bg-card);
  border: 1px solid var(--ycl-border);
  border-radius: var(--ycl-radius-lg);
  padding: 35px;
  box-shadow: var(--ycl-shadow);
}

.wizard-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wizard-step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ycl-gold);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.wizard-option-card {
  border: 1px solid var(--ycl-border);
  border-radius: var(--ycl-radius-sm);
  padding: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--ycl-transition);
  text-align: center;
  height: 100%;
}
.wizard-option-card:hover {
  border-color: var(--ycl-gold);
  background: rgba(245, 158, 11, 0.05);
}
.wizard-option-card.selected {
  border-color: var(--ycl-gold);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 15px var(--ycl-gold-glow);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-control, .form-select {
  background-color: var(--ycl-bg-input) !important;
  border: 1px solid var(--ycl-border) !important;
  color: #f8fafc !important;
  border-radius: var(--ycl-radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--ycl-transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--ycl-gold) !important;
  box-shadow: 0 0 0 3px var(--ycl-gold-glow) !important;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: #07090e;
  border-top: 1px solid var(--ycl-border);
  padding: 60px 0 25px;
  margin-top: 80px;
}

.footer-logo-img {
  width: 350px;
  height: 117px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 18px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--ycl-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--ycl-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--ycl-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--ycl-gold);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  margin-top: 45px;
  font-size: 0.88rem;
  color: var(--ycl-text-dim);
}

/* ==========================================================================
   Mobile Responsive Tweaks
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .wizard-box {
    padding: 20px;
  }
}
