/* ============================================================
   SerLambiri - Hesaplama Motoru Stilleri
   Vanilla CSS, sıfır bağımlılık, premium tasarım
   ============================================================ */

/* ---- PAKET SEÇİMİ ---- */
.paket-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.paket-secim {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
  background: #fafafa;
}
.paket-secim:hover { border-color: #d4af37; background: #fffbeb; }
.paket-secim.secili { border-color: #d4af37; background: #fffbeb; box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.paket-radio { accent-color: #d4af37; width: 1rem; height: 1rem; cursor: pointer; flex-shrink: 0; }
.paket-bilgi { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.paket-ad { font-size: 0.8rem; font-weight: 700; color: #1e293b; }
.paket-kaplama { font-size: 0.7rem; color: #64748b; font-weight: 600; }
.paket-fiyat { font-size: 0.7rem; color: #d4af37; font-weight: 700; }

/* ---- FIRE RANGE ---- */
.fire-range {
  width: 100%;
  accent-color: #d4af37;
  height: 6px;
  cursor: pointer;
  margin: 0.5rem 0;
}
.fire-gosterge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.fire-gosterge strong {
  font-size: 1rem;
  font-weight: 900;
  color: #d4af37;
}

/* Genel kapsayıcı */
.calc-app {
  font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  min-height: 100vh;
}

/* ---- HEADER ---- */
.calc-header {
  background: linear-gradient(135deg, #0c1b33 0%, #1a3a5c 60%, #0f2a45 100%);
  color: white;
  padding: 4rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.calc-header-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.calc-badge {
  display: inline-block;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4);
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.calc-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.calc-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- BODY ---- */
.calc-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: -3rem auto 3rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; margin-top: -2rem; }
}

/* ---- KART ---- */
.calc-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06), 0 1px 4px rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
}
.calc-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0c1b33;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

/* ---- ÜRÜN GRID ---- */
.urun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}
.urun-kart {
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #fafafa;
}
.urun-kart:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.12);
}
.urun-kart.secili {
  border-color: #d4af37;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.urun-resim-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #f1f5f9;
  border-radius: 0.625rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.urun-resim {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.urun-kart:hover .urun-resim { transform: scale(1.05); }
.urun-bilgi { display: flex; flex-direction: column; gap: 0.15rem; padding: 0 0.25rem; }
.urun-adi { font-size: 0.7rem; font-weight: 700; color: #1e293b; line-height: 1.3; }
.urun-fiyat { font-size: 0.65rem; font-weight: 600; color: #d4af37; }
.urun-check {
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  background: #d4af37;
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---- ODA SATIRLARI ---- */
.oda-satir {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
}
.oda-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.oda-no { font-size: 0.8rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; }
.oda-sil-btn {
  background: none;
  border: 1px solid #fca5a5;
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
}
.oda-sil-btn:hover { background: #fee2e2; }

.oda-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0.5rem;
  align-items: end;
}
.input-sep {
  font-size: 1.25rem;
  font-weight: 900;
  color: #94a3b8;
  padding-bottom: 0.6rem;
  text-align: center;
}
.input-m2 { display: flex; flex-direction: column; align-items: center; padding-bottom: 0.5rem; }
.m2-label { font-size: 0.7rem; color: #94a3b8; }
.m2-deger { font-size: 0.85rem; font-weight: 800; color: #0c1b33; }

/* ---- INPUT ---- */
.input-grup { display: flex; flex-direction: column; gap: 0.35rem; }
.input-grup label { font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.calc-input {
  width: 100%;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.calc-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.input-hint { font-size: 0.65rem; color: #94a3b8; line-height: 1.4; }
.optional-hint { font-size: 0.65rem; color: #94a3b8; font-weight: 400; }

.ayar-grid { display: flex; flex-direction: column; gap: 1rem; }

/* ---- ODA EKLE BUTON ---- */
.oda-ekle-btn {
  width: 100%;
  background: none;
  border: 2px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.oda-ekle-btn:hover { border-color: #d4af37; color: #d4af37; background: #fffbeb; }

/* ---- SONUÇ PANELİ ---- */
.sonuc-panel {
  background: #0c1b33;
  border-radius: 1.5rem;
  padding: 1.75rem;
  position: sticky;
  top: 1.5rem;
  color: white;
}
.sonuc-baslik {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d4af37;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sonuc-satirlar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.sonuc-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sonuc-satir.vurgu {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.sonuc-satir.toplam {
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.sonuc-etiket { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.sonuc-deger { font-size: 0.9rem; font-weight: 800; color: white; }
.sonuc-deger.buyuk { font-size: 1.5rem; color: #d4af37; }
.sonuc-deger.toplam-fiyat { font-size: 1.2rem; color: #d4af37; }

.sonuc-not {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 0.75rem;
}
.sonuc-not a { color: #d4af37; text-decoration: none; }
.sonuc-not a:hover { text-decoration: underline; }

.sonuc-butonlar { display: flex; flex-direction: column; gap: 0.625rem; }
.btn-pdf, .btn-teklif {
  display: block;
  text-align: center;
  padding: 0.8rem;
  border-radius: 0.875rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-pdf {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
}
.btn-pdf:hover { background: rgba(255,255,255,0.14); }
.btn-teklif {
  background: linear-gradient(135deg, #d4af37, #b8952e);
  border: none;
  color: #0c1b33;
}
.btn-teklif:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,175,55,0.3); }

.sonuc-bos {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,0.4);
}
.sonuc-bos-ikon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.sonuc-bos p { font-size: 0.85rem; line-height: 1.6; }

/* ---- SEÇİLİ ÜRÜN ---- */
.secili-urun-bilgi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.secili-urun-resim {
  width: 3.5rem; height: 3.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 2px solid rgba(212,175,55,0.3);
}
.secili-urun-detay { display: flex; flex-direction: column; gap: 0.2rem; }
.secili-urun-detay strong { font-size: 0.75rem; color: white; font-weight: 700; }
.secili-urun-detay span { font-size: 0.65rem; color: rgba(255,255,255,0.5); }

/* ---- YAZDIRMA ---- */
@media print {
  .calc-header { background: #0c1b33 !important; -webkit-print-color-adjust: exact; }
  .teklif-form, .oda-ekle-btn, .oda-sil-btn { display: none !important; }
  .calc-body { display: block; }
  .sonuc-panel { color: black !important; background: #f8fafc !important; border: 2px solid #0c1b33 !important; }
  .sonuc-baslik, .sonuc-etiket { color: #0c1b33 !important; }
  .sonuc-deger { color: #0c1b33 !important; }
}

/* ---- TEKLİF FORMU ---- */
.teklif-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.teklif-baslik {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d4af37;
  margin-bottom: 0.5rem;
}
.teklif-aciklama {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.teklif-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}
@media (max-width: 480px) { .teklif-inputs { grid-template-columns: 1fr; } }

/* Teklif form inputları — koyu panel içinde beyaz zemin */
.teklif-form .calc-input {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 0.8rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.625rem;
}
.teklif-form .calc-input::placeholder { color: rgba(255,255,255,0.3); }
.teklif-form .calc-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.15);
  background: rgba(255,255,255,0.1);
}
.teklif-form .input-grup label {
  color: rgba(255,255,255,0.55);
  font-size: 0.65rem;
}
.teklif-textarea { resize: vertical; min-height: 3.5rem; }

/* Gönder butonu */
.btn-teklif-gonder {
  width: 100%;
  background: linear-gradient(135deg, #d4af37, #b8952e);
  border: none;
  color: #0c1b33;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.875rem;
}
.btn-teklif-gonder:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

/* Alt iletişim linkleri */
.teklif-iletisim {
  display: flex;
  gap: 0.625rem;
}
.teklif-iletisim a {
  flex: 1;
  display: block;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  transition: all 0.15s;
}
.teklif-iletisim a:hover {
  background: rgba(255,255,255,0.13);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

