/* ===================== GENEL TASARIM ===================== */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f8fa;
  color: #222;
  margin: 0;
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===================== ÜST KISIM (HEADER) ===================== */
header {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 20px 15px;
  text-align: center;
  position: relative;
}
header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

/* ===================== İKİNCİL BUTON ===================== */
.secondary-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #facc15;
  color: #1f2937;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  transition: all 0.25s;
}
.secondary-btn:hover {
  background: #fde047;
  transform: translateY(-50%) scale(1.05);
}

/* ===================== ANA İÇERİK ===================== */
main {
  max-width: 1100px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
h2 {
  margin-top: 0;
  color: #4f46e5;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 5px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
label {
  font-weight: 500;
  font-size: 0.9rem;
}
input[type="number"], select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
input:focus, select:focus {
  border-color: #6366f1;
  outline: none;
}

/* ===================== BÖLÜM KARTLARI ===================== */
.section-card {
  background: #fafafa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}
.field-pair label {
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
}
.field-pair input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.field-pair input:focus {
  border-color: #6366f1;
  outline: none;
}

/* ===================== HESAPLAMA BUTONU ===================== */
#hesaplaBtn {
  display: block;
  margin: 25px auto;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}
#hesaplaBtn:hover {
  background: #059669;
}

/* ===================== AYT GÖSTERGESİ ===================== */
#ayt {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
#ayt.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===================== ALT KISIM (FOOTER) ===================== */
footer {
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
  color: #6b7280;
  background: #f1f1f1;
}

/* ===================== PUAN KART TASARIMI ===================== */
.puan-kart {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-top: 20px;
}
.puan-baslik {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}
.puan-icerik {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 15px;
}
.puan-kolon h3 {
  color: #374151;
  margin: 0 0 10px 0;
  font-size: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
}
.puan-tablo {
  width: 100%;
  border-collapse: collapse;
}
.puan-tablo td {
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fafafa;
}
.puan-tablo td:first-child {
  color: #6b7280;
  text-align: left;
}
.puan-tablo td:last-child {
  text-align: right;
  font-weight: 600;
  color: #111827;
}
.puan-tablo .toplam td {
  border-top: 2px solid #e5e7eb;
  font-weight: 700;
  color: #4f46e5;
}

/* ===================== HAMBURGER MENÜ ===================== */
.menu-container {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 200;
}
.menu-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease-in-out;
}
.menu-btn:hover {
  background: rgba(255,255,255,0.2);
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 38px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 300;
  overflow: hidden;
  animation: fadeIn 0.2s ease-in-out;
}
.menu-dropdown a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.menu-dropdown a:hover {
  background: #f7f7f7;
  color: #4f46e5;
}
.menu-dropdown.open {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== TEMA GEÇİŞ BUTONU ===================== */
.theme-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}
.theme-btn:hover {
  background: #6366f1;
  transform: scale(1.05);
}

/* ===================== MOBİL UYUMLULUK ===================== */
@media (max-width: 768px) {
  header h1 { font-size: 20px; }
  main { padding: 1.2rem; }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .field-pair label { text-align: left; }
}
@media (max-width: 480px) {
  header { padding: 14px 6px; }
  main { padding: 1rem; }
  footer { font-size: 12px; }
}
