/* =========================================
   HESAPLAMA ARAÇLARI & SONUÇ EKRANLARI
   ========================================= */

/* --- 1. BUTONLAR --- */
.hesap-buton-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.hesap-buton-container button {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  /* Fontu globalden çekmesi için inherit yapıyoruz, hız artar */
  font-family: inherit; 
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

/* Hesapla Butonu (Mor Tema) */
.btn-mor {
  background-color: #6a1b9a;
  color: white;
  box-shadow: 0 4px 15px rgba(106, 27, 154, 0.2);
}

.btn-mor:hover {
  background-color: #8e24aa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 27, 154, 0.3);
}

/* Temizle Butonu (Gri) */
.btn-gri {
  background-color: #e2e8f0;
  color: #475569;
}

.btn-gri:hover {
  background-color: #cbd5e1;
}

/* --- 2. SONUÇ KARTLARI (GRID) --- */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.result-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* İkon Alanı */
.result-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-icon .material-symbols-outlined {
  font-size: 32px;
  color: white;
}

/* Renkler (Gradyanlar) */
.orange-grad { background: linear-gradient(135deg, #e65100, #ff9800); }
.blue-grad { background: linear-gradient(135deg, #0d47a1, #2196f3); }
.green-grad { background: linear-gradient(135deg, #1b5e20, #4caf50); }
.purple-grad { background: linear-gradient(135deg, #4a148c, #9c27b0); }
.red-grad { background: linear-gradient(135deg, #b71c1c, #f44336); }

/* Kart İçeriği */
.result-content { flex: 1; }

.result-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 5px;
}

.value-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.val-ham, .val-yer {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.val-ham b, .val-yer b {
  color: #1e293b;
  font-size: 1.1rem;
  font-family: inherit; /* Global fontu kullan */
}

.val-yer b { color: #e65100; }

/* --- 3. SIRALAMA TABLOSU --- */
.siralama-tablo {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  border-collapse: collapse;
}

.siralama-tablo th {
  padding: 15px;
  font-weight: 700;
  background-color: #f1f5f9;
  text-align: left;
}

.siralama-tablo td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.siralama-tablo tr:hover {
  background-color: #f8fafc;
}

/* --- 4. MOBİL UYUMLULUK (MEDIA QUERIES) --- */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .hesaplayici-container {
    max-width: 95% !important;
    padding: 15px;
  }
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobil (max-width: 768px) */
@media screen and (max-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
  .result-card {
    padding: 15px;
    gap: 12px;
  }
  .result-icon {
    width: 50px;
    height: 50px;
  }
  .result-icon .material-symbols-outlined {
    font-size: 26px;
  }
}

/* Küçük Mobil (max-width: 480px) */
@media screen and (max-width: 480px) {
  .baslik-mavi, .baslik-turuncu, .baslik-mor {
    font-size: 1.5rem !important;
    margin-bottom: 20px;
  }
  .val-ham, .val-yer {
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.8rem;
  }
  .val-ham b, .val-yer b {
    font-size: 1rem;
  }
  .siralama-tablo-konteyner {
    margin: 0 -10px;
    padding: 0 5px;
    overflow-x: auto; /* Tablo taşarsa kaydırma ekle */
  }
}