/* ===================== GENEL ===================== */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f8fa;
  color: #333;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

/* ===================== HEADER ===================== */
header {
  text-align: center;
  background: #007bff;
  color: white;
  padding: 15px 8px;
}
header h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

/* ===================== KONTROL ALANI ===================== */
#controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#searchInput {
  padding: 8px;
  width: 90%;
  max-width: 360px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}
select:hover {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* ===================== PUAN FORMU ===================== */
.puan-formu {
  max-width: 900px;
  margin: 1.8rem auto;
  text-align: center;
}

.puan-formu h2 {
  font-size: 20px;
  margin-bottom: 18px;
  color: #222;
}

.puanlar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.alan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.alan label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #0056b3;
  font-size: 14px;
}

.alan input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.alan input[type="text"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ===================== BUTONLAR ===================== */
.secondary-btn,
.btn-yazdir,
.btn-tutan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Tercih Robotu butonu */
.secondary-btn {
  background: #28a745;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
}
.secondary-btn:hover { background: #218838; }

/* Tutan bölümleri getir */
.btn-tutan {
  grid-column: 1 / -1;
  background: #6366f1;
  color: #fff;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 14px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}
.btn-tutan:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

/* Devlet ve dil filtreleri */
.devlet-filter-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 12px;
  align-items: center;
}
.devlet-filter-container label {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Yazdır butonu */
.btn-yazdir {
  background: #10b981;
  color: #fff;
  padding: 8px 14px;
  margin-top: 12px;
  margin-right: 4%;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(16,185,129,0.3);
  display: block;
  font-size: 14px;
}
.btn-yazdir:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ===================== TABLO ===================== */
table {
  width: 95%;
  margin: 15px auto;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-size: 14px;
}
th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background: #007bff;
  color: #fff;
  cursor: pointer;
}
th:hover {
  background: #4f46e5;
}
tr:hover {
  background: #eef2ff;
}
.uni-baslik td {
  background: #e8f0fe;
  font-weight: 600;
  color: #0056b3;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  background: #f1f1f1;
  color: #555;
}

/* ===================== HAMBURGER MENÜ ===================== */
.menu-container {
  position: absolute;
  top: 12px;
  right: 12px;
}
.menu-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
}
.menu-btn:hover { background: rgba(255,255,255,0.2); }

.menu-dropdown {
  display: none;
  position: absolute;
  top: 38px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
}
.menu-dropdown a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
}
.menu-dropdown a:hover { background: #f7f7f7; }

/* ===================== MOBİL OPTİMİZASYON ===================== */
@media (max-width: 768px) {
  header h1 { font-size: 20px; }
  #searchInput, select { width: 95%; font-size: 13px; padding: 7px; }
  .puanlar-grid { gap: 0.8rem; padding: 0.8rem; }
  .alan input[type="text"] { font-size: 13px; padding: 0.4rem; }
  .btn-tutan { width: 100%; }
  .btn-yazdir { width: 100%; margin-right: 0; }
  table { font-size: 12px; width: 100%; }
  th, td { padding: 6px; }
}

@media (max-width: 480px) {
  header { padding: 12px 6px; }
  th:nth-child(1), td:nth-child(1),
  th:nth-child(6), td:nth-child(6),
  th:nth-child(7), td:nth-child(7) { display: none; }
  th, td { font-size: 11px; padding: 4px; }
  .secondary-btn, .btn-tutan, .btn-yazdir {
    width: 100%;
    font-size: 13px;
    padding: 10px;
  }
}
/* ====== INPUT SIRASINI DÜZELT (masaüstü) ====== */
@media (min-width: 769px) {
  .puanlar-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr)); /* 4 sütun sabit */
    column-gap: 14px;   /* aralıklar net */
    row-gap: 10px;
    padding: 16px 24px; /* kart içi nefes */
  }

  .alan {
    align-items: stretch;            /* inputları aynı genişlikte yap */
    gap: 6px;                        /* label-input arası boşluk */
  }

  .alan label {
    font-size: 13px;                 /* başlıklar hafif küçülsün */
    letter-spacing: .2px;
  }

  .alan input[type="text"] {
    height: 38px;                    /* tek satır, tutarlı yükseklik */
    line-height: 38px;
  }
}

/* ====== INPUT ODAK (outline) NORMALİZASYON ====== */
.alan input[type="text"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  outline: none;                     /* siyah outline’ı kaldır */
  border: 1px solid #d7dbe3;         /* nötr kenar */
  border-radius: 8px;                /* hepsi aynı radius */
  transition: border-color .15s ease, box-shadow .15s ease;
}

.alan input[type="text"]::placeholder {
  color: #9aa3b2;
}

.alan input[type="text"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);  /* yumuşak mor odak */
}

/* ====== BUTON ve ALTLARI HİZALAMA ====== */
.btn-tutan {
  grid-column: 1 / -1;     /* satırı kapla */
  max-width: 520px;        /* çok genişlemesin */
  width: 100%;
  margin: 12px auto 6px;   /* üst/alt boşluk dengeli */
  padding: 10px 14px;      /* kompakt */
  border-radius: 10px;
}

.devlet-filter-container {
  margin-top: 10px;
  gap: 20px;               /* checkboxlar arası net boşluk */
}

/* ====== MOBİL DENGE ====== */
@media (max-width: 768px) {
  .puanlar-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 sütun */
    gap: 10px;
    padding: 12px;
  }
  .btn-tutan {
    max-width: none;
    margin: 10px 0 6px;
  }
}

@media (max-width: 480px) {
  .puanlar-grid {
    grid-template-columns: 1fr;     /* 1 sütun */
    gap: 8px;
    padding: 10px;
  }
}
