/*
  Parlak Temizlik – Ana Stil Dosyası
  - Tipografi ve tema
  - Header/hero
  - Karşılaştırma slider
  - İletişim formu
  - Yorumlar bölümü
  - Footer
  - Responsive iyileştirmeler
*/

/* Temel ayarlar */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1f2937; /* slate-800 */
  background: #f8fafc; /* slate-50 */
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #5b9cff;
  outline-offset: 2px;
}

/* Yardımcı sınıflar */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.section-desc {
  margin: 0 0 24px;
  color: #475569; /* slate-600 */
}

/* Header / Hero */
.hero {
  position: relative;
  color: #0b1220;
  background: radial-gradient(1200px 500px at 10% 0%, #e0f2fe 0%, transparent 70%),
              linear-gradient(180deg, #eaf2ff 0%, #ffffff 60%);
  padding: 16px 4% 12px;
}

.top-contact {
  position: absolute;
  top: 12px;
  right: 4%;
}

.logo {
  height: 42px;
  width: auto;
  display: block;
}

.logo-hero {
  display: grid;
  place-items: center;
  padding: 8px 0;
}

.big-logo {
  width: min(360px, 70vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.15));
}

.cta-group {
  display: inline-flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover { background: #1d4ed8; }
.btn.primary:active { transform: translateY(0); }

.btn.ghost {
  background: #ffffff;
  color: #1f2937;
  border-color: #e2e8f0;
}

.btn.ghost:hover {
  background: #f1f5f9;
}

.hero-wave {
  height: 40px;
  background: radial-gradient(60px 20px at 10% -10px, rgba(37, 99, 235, 0.2), transparent 60%),
              radial-gradient(80px 24px at 40% -10px, rgba(59, 130, 246, 0.18), transparent 60%),
              radial-gradient(70px 24px at 70% -10px, rgba(2, 132, 199, 0.18), transparent 60%);
}

/* Öncesi / Sonrası Karşılaştırma */
.compare-section .section-desc {
  margin-bottom: 16px;
}

.compare-title {
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* sol boşluk | başlık | sekmeler */
  align-items: center;
  gap: 12px;
}

.compare-header .compare-title {
  grid-column: 2;
  text-align: center;
  justify-self: center;
}

.compare-header .tabs {
  grid-column: 3;
  justify-self: end;
}

.tabs {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  margin: 0 0 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
  user-select: none;
}

.comparison .image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-after-wrapper {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.slider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0 auto;
  width: min(520px, 92%);
  -webkit-appearance: none;
  appearance: none;
  height: 0; /* gizle */
  opacity: 0; /* gizle */
  pointer-events: none; /* tıklanmasın */
  background: rgba(15, 23, 42, 0.15);
  border-radius: 9999px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 0 14px rgba(15, 23, 42, 0.15);
  pointer-events: none;
}

.handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Sürükle-bırak görsel durumu */
.comparison.dragover::after {
  content: "Fotoğrafları bırakın (1: Önce, 2: Sonra)";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* İletişim Formu */
.contact-form {
  display: grid;
  gap: 16px;
  background: #ffffff;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.form-group {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1; /* slate-300 */
  background: #ffffff;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.error {
  color: #b91c1c; /* red-700 */
  min-height: 18px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-status {
  color: #166534; /* green-800 */
  font-weight: 600;
}

/* Hata Durumu */
input.invalid,
textarea.invalid {
  border-color: #ef4444; /* red-500 */
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* Yorumlar */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.testimonial .rating {
  color: #f59e0b;
  margin-bottom: 8px;
}

.testimonial .author {
  color: #475569;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
}

/* Doğrulama Rozeti */
.badge.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 6px 10px;
  margin-left: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  color: #ffffff;
  vertical-align: middle;
}

.badge .icon {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav { padding: 10px 4%; }
  .cta-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .slider { width: 90%; }
}


