/* ==========================================================================
   Konya Su Arıtma - İnteraktif Araçlar & Hesaplayıcılar Stili (tools.css)
   ========================================================================== */

/* 1. Tasarruf Hesaplama Robotu */
.calc-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: clamp(18px, 4vw, 36px);
  margin: 20px auto 30px;
  max-width: 1000px;
  box-sizing: border-box;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
  }
}

.calc-input-box {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  box-sizing: border-box;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.calc-slider-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan-dark);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.calc-range-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #CBD5E1;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.4);
  transition: var(--transition);
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--cyan-dark);
}

/* Hesaplama Sonuç Panosu */
.calc-result-board {
  background: linear-gradient(145deg, #0A2540 0%, #103456 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.calc-saving-highlight {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.calc-saving-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.calc-saving-amount {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: var(--turquoise);
  line-height: 1.15;
  margin: 8px 0;
  word-break: break-word;
}

.calc-stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 480px) {
  .calc-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.calc-stat-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.calc-stat-title {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.calc-stat-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 4px;
  word-break: break-word;
}

/* 2. Seçim Sihirbazı (Wizard) */
.wizard-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: clamp(18px, 4vw, 36px);
  max-width: 860px;
  margin: 20px auto 30px;
  box-sizing: border-box;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2.5px;
  background: var(--border-color);
  z-index: 1;
}

.wizard-step-bullet {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bullet-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (min-width: 576px) {
  .bullet-num {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

.wizard-step-bullet.active .bullet-num {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.wizard-step-bullet.completed .bullet-num {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}

.bullet-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 576px) {
  .bullet-title {
    font-size: 0.82rem;
  }
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
  margin: 20px 0;
}

.wizard-option-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  min-width: 0;
}

.wizard-option-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.wizard-option-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-light);
}

.wizard-option-icon {
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.wizard-option-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.wizard-option-card p {
  font-size: 0.8rem;
  margin: 0;
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* 3. TDS & Su Sertliği Rehberi */
.tds-meter-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 4vw, 32px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  box-sizing: border-box;
}

.tds-scale-bar {
  height: 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #10B981 0%, #3B82F6 25%, #F59E0B 60%, #EF4444 100%);
  position: relative;
  margin: 30px 0 12px;
}

.tds-marker {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  text-align: center;
  transition: left 0.4s ease;
}

.tds-pin {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin: 0 auto;
}

.tds-val-tag {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 4px;
}

.district-selector-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.district-tab-btn {
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.district-tab-btn:hover, .district-tab-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #FFFFFF;
}
