/* =========================================================
   1) THEME / RESET
   ========================================================= */
:root {
  /* Ana renkler */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #3b82f6;
  --accent: #fbbf24;

  /* Arka plan / metin */
  --bg-body: #f1f5f9;
  --bg-white: #ffffff;
  --bg-light: #f3f4f6;

  --text-main: #1e293b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border: #e2e8f0;

  /* Puan türü renkleri (ilk bloktan korunuyor) */
  --color-say: #0ea5e9;
  --color-ea: #f97316;
  --color-soz: #ec4899;
  --color-dil: #10b981;

  /* Radius / shadow (son blok baz alındı) */
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
  --shadow-md: var(--shadow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f9fafb;
  color: var(--text-dark);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 80vh;
}

/* =========================================================
   2) HEADER (SON HAL)
   ========================================================= */
.main-header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 20px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.logo-text span {
  color: var(--primary);
}

/* Search */
.search-area {
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
  position: relative;
  display: none;
}

@media(min-width: 768px) {
  .search-area {
    display: block;
  }
}

.search-area input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  background: #f9fafb;
  transition: .3s;
}

.search-area input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-area .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.2s ease;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-content a i {
  color: #94a3b8;
  width: 20px;
  text-align: center;
}

.dropdown-content a:hover {
  background: #f8fafc;
  color: #2563eb;
  padding-left: 1.5rem;
}

.dropdown-content a:hover i {
  color: #2563eb;
}

.dropdown:hover>.nav-link {
  color: #2563eb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link i {
  font-size: .9rem;
  color: var(--text-light);
}

/* CTA */
.btn-robot-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-robot-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
  background: none;
  border: none;
}

/* Mobil nav */
@media (max-width: 992px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    display: none;
    border-top: 1px solid #f3f4f6;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-link {
    padding: 1rem 0.5rem;
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  .search-area {
    display: none;
  }

  .btn-robot-header span {
    display: none;
  }

  .btn-robot-header {
    padding: 10px;
    border-radius: 50%;
  }
}

/* =========================================================
   3) HERO (SON HAL)
   ========================================================= */
.hero-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: 0 15px 30px -8px rgba(79, 70, 229, 0.3);
}

.hero-content {
  flex: 1;
  max-width: 550px;
  z-index: 2;
}

.badge-new {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: .8rem;
}

.hero-content h1 span {
  color: #fbbf24;
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 7px;
  background: rgba(251, 191, 36, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.8rem;
  opacity: .95;
  color: #e0e7ff;
}

.hero-buttons {
  display: flex;
  gap: .8rem;
  margin-bottom: 2rem;
}

.btn-primary-hero {
  background: white;
  color: #4f46e5;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, .2);
}

.stats-row {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 1.2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
}

.stat-item i {
  color: #fbbf24;
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.floating-card {
  background: rgba(255, 255, 255, .95);
  padding: .8rem 1.2rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: .8rem;
  position: absolute;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
  animation: float 6s ease-in-out infinite;
  min-width: 180px;
}

.card-1 {
  top: 8%;
  right: 3%;
  z-index: 3;
}

.card-2 {
  bottom: 12%;
  right: 18%;
  animation-delay: 1s;
  z-index: 2;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: #e0e7ff;
  color: #4f46e5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-box.success {
  background: #dcfce7;
  color: #16a34a;
}

.text-box .label {
  font-size: .7rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
}

.text-box .value {
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 800;
}

.blob {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes float {
  0% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }

  100% {
    transform: translateY(0)
  }
}

@media (max-width: 768px) {
  .hero-banner {
    flex-direction: column;
    padding: 1.8rem 1.2rem;
    text-align: center;
    margin-top: .5rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }

  .stats-row {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}

/* =========================================================
   4) FILTER PANEL + SCORES (SON HAL + EKSİK RENKLER EKLENDİ)
   ========================================================= */
.filter-panel {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-options {
  display: flex;
  gap: 10px;
}

select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.score-card {
  background: #f9fafb;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  transition: .3s;
}

.score-card:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.card-label {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 5px;
}

.card-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-input input {
  width: 100%;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 1.1rem;
  outline: none;
}

.suffix {
  font-size: .8rem;
  color: #9ca3af;
}

/* ✅ İlk bloktan gelen kritik renk şeritleri */
.score-card.say {
  border-top: 4px solid var(--color-say);
}

.score-card.ea {
  border-top: 4px solid var(--color-ea);
}

.score-card.soz {
  border-top: 4px solid var(--color-soz);
}

.score-card.dil {
  border-top: 4px solid var(--color-dil);
}

.score-card.say .card-label {
  color: var(--color-say);
}

.score-card.ea .card-label {
  color: var(--color-ea);
}

.score-card.soz .card-label {
  color: var(--color-soz);
}

.score-card.dil .card-label {
  color: var(--color-dil);
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.checkbox-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* checkbox (son halinle aynı) */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-dark);
  position: relative;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.custom-checkbox input[type="checkbox"]:checked~.checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked~.checkmark:after {
  display: block;
}

.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .2s;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* =========================================================
   5) RESULTS TABLE (SON HAL)
   ========================================================= */
.results-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-print {
  background: #f3f4f6;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 500;
}

.btn-print:hover {
  background: #e5e7eb;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

th {
  text-align: left;
  padding: 12px;
  background: #f9fafb;
  color: var(--text-light);
  font-size: .85rem;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

td {
  padding: 14px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: .95rem;
  color: var(--text-dark);
}

tr:hover {
  background-color: #f9fafb;
}

.highlight {
  color: var(--primary);
  font-weight: 700;
}

.center {
  text-align: center;
}

/* Pagination (ilk bloktakiyle uyumlu) */
.pagination {
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 500;
  transition: .2s;
}

.pagination button:hover {
  background-color: #f1f5f9;
}

.pagination button.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =========================================================
   6) FOOTER
   ========================================================= */
footer {
  background: #111827;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: .9rem;
}

/* =========================================================
   7) MOBİL PATCH (SENİN SON İSTEDİĞİN HAL)
   ========================================================= */
@media (max-width: 768px) {

  /* Selectler alt alta */
  .panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .view-options {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .view-options select {
    width: 100%;
    height: 44px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  #viewSelect {
    order: 1;
  }

  #bolumFilter {
    order: 2;
  }

  /* Results kart hissi yok */
  .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .results-section {
    padding: 0.5rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin-left: -6px;
    margin-right: -6px;
  }

  .results-header {
    padding: 0.35rem 0.2rem !important;
    margin-bottom: 0.35rem !important;
    border-bottom: 1px solid #e5e7eb;
  }

  .results-header h3 {
    font-size: 1rem !important;
    margin: 0 !important;
  }

  .btn-print {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
  }

  .table-wrapper {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Tablo sıkışma ayarı */
  table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
  }

  th,
  td {
    padding: 3px 2px !important;
    font-size: 0.64rem !important;
    line-height: 1.0 !important;
    vertical-align: middle !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    border: 1.5px solid #d1d5db !important;
  }

  thead th {
    font-size: 0.58rem !important;
    text-align: center;
    hyphens: auto;
    padding: 4px 2px !important;
    line-height: 1.0 !important;
    border-bottom: 2px solid #cbd5e1 !important;
  }

  /* Zebra */
  tbody tr:nth-child(even) {
    background: #f9fafb !important;
  }

  /* Fakülte gizle */
  th:nth-child(2),
  td:nth-child(2) {
    display: none !important;
  }

  .uni-faculty {
    display: block;
    margin-top: 2px;
    font-size: 0.52rem;
    line-height: 1.05;
    color: #6b7280;
    font-weight: 600;
  }

  /* Kolon genişlikleri */
  th:nth-child(1),
  td:nth-child(1) {
    width: 22% !important;
    text-align: center !important;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 18% !important;
    text-align: center !important;
  }

  th:nth-child(4),
  td:nth-child(4) {
    width: 5% !important;
  }

  th:nth-child(5),
  td:nth-child(5) {
    width: 5% !important;
  }

  th:nth-child(6),
  td:nth-child(6) {
    width: 5% !important;
  }

  th:nth-child(7),
  td:nth-child(7) {
    width: 12% !important;
  }

  th:nth-child(8),
  td:nth-child(8) {
    width: 9% !important;
  }

  th:nth-child(9),
  td:nth-child(9) {
    width: 6% !important;
    white-space: nowrap !important;
    font-size: 0.56rem !important;
    padding: 2px 1px !important;
    color: #6b7280;
  }
}

@media (max-width: 480px) {
  .scores-grid {
    grid-template-columns: 1fr;
  }

  .card-input input {
    font-size: 1.75rem;
  }
}

@media (max-width: 420px) {

  th,
  td {
    font-size: 0.60rem !important;
    padding: 2px 1px !important;
  }

  thead th {
    font-size: 0.54rem !important;
  }

  th:nth-child(9),
  td:nth-child(9) {
    width: 7% !important;
    font-size: 0.52rem !important;
  }
}

.bolum-search {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  width: 220px;
  /* istersen 100% yap */
  outline: none;
}

.bolum-search:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

/* =========================
   VIEW-OPTIONS (input + select uyum)
   ========================= */
.view-options {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  /* ✅ 3 eleman taşınca düzgün sarsın */
}

/* arama inputu sadece burada */
.view-options .bolum-search {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 200px;
  /* desktop genişlik */
  height: 38px;
  /* select ile aynı yükseklik */
  outline: none;
}

.view-options .bolum-search:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

/* =========================
   MOBİLDE view-options sıralama + full width
   ========================= */
@media (max-width: 768px) {
  .view-options {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .view-options select,
  .view-options .bolum-search {
    width: 100%;
    height: 44px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  /* sırayı düzgün yap */
  #viewSelect {
    order: 1;
  }

  #bolumSearch {
    order: 2;
  }

  #bolumFilter {
    order: 3;
  }
}

/* =========================
   SCORES GRID FIX (desktop kompakt, tablet 2 kolon, mobil 1 kolon)
   ========================= */

/* Desktop: her zaman 4 kompakt kart */
.scores-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* Kart yüksekliği ve iç düzeni sabitle */
.score-card {
  padding: 1rem !important;
  border-radius: var(--radius) !important;
}

/* input yazısı / suffix hizası bozulmasın */
.score-card .card-input {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.score-card .card-input input {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  outline: none !important;
}

.score-card .suffix {
  white-space: nowrap !important;
  font-size: .8rem !important;
  color: #9ca3af !important;
}

/* Tablet: 2 kolon */
@media (max-width: 768px) {
  .scores-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Telefon: 1 kolon */
@media (max-width: 480px) {
  .scores-grid {
    grid-template-columns: 1fr !important;
  }

  .card-input input {
    font-size: 1.75rem !important;
    /* senin eski mobil büyüklüğün */
  }
}

/* Mobilde hero üst kısmını Robotu Başlat'a kadar gizle */
@media (max-width: 768px) {

  .hero-banner .badge-new,
  .hero-banner .hero-content h1,
  .hero-banner .hero-content p {
    display: none !important;
  }

  /* Butonlar yukarı yapışsın */
  .hero-banner .hero-buttons {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
  }
}

/* =========================================================
   8) SEO SAYFALARİ İÇİN STİLLER
   ========================================================= */

/* Breadcrumb (SEO için kritik) */
.breadcrumb {
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb li a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb li a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: #ccc;
}

/* Bölüm Article */
.bolum-article {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.bolum-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 1.5rem;
}

.bolum-header h1 {
  font-size: 1.75rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bolum-header h1 i {
  color: var(--primary);
}

.bolum-description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bolum-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.bolum-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.bolum-stats .stat-item i {
  color: var(--primary);
}

/* İlgili Bölümler */
.related-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
}

.related-section h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-section h3 i {
  color: var(--primary);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-link {
  background: #f9fafb;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-dark);
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.related-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* SSS Bölümü */
.faq-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
}

.faq-section h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-section h3 i {
  color: #f59e0b;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.faq-item h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Tür Badge'leri */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-say {
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-say);
}

.badge-ea {
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-ea);
}

.badge-soz {
  background: rgba(236, 72, 153, 0.1);
  color: var(--color-soz);
}

.badge-dil {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-dil);
}

/* Info Section */
.info-section article h3 {
  font-size: 1.1rem;
}

.info-section article p {
  margin-bottom: 1rem;
}

/* Print Styles */
@media print {

  .main-header,
  .hero-banner,
  .filter-panel,
  .breadcrumb,
  .related-section,
  .faq-section,
  footer,
  .btn-print {
    display: none !important;
  }

  .bolum-article,
  .results-section {
    box-shadow: none !important;
    padding: 0 !important;
  }

  table {
    width: 100% !important;
    font-size: 10pt !important;
  }

  th,
  td {
    padding: 4px !important;
    border: 1px solid #ddd !important;
  }
}

/* Mobil SEO Sayfaları */
@media (max-width: 768px) {
  .bolum-article {
    padding: 1rem;
    border-radius: 0;
    margin: 0 -6px;
  }

  .bolum-header h1 {
    font-size: 1.3rem;
  }

  .bolum-stats {
    gap: 1rem;
  }

  .related-links {
    gap: 0.5rem;
  }

  .related-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* =========================================================
   Üniversite Türü Badge
   ========================================================= */
.uni-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.uni-badge.devlet {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.uni-badge.vakif {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

/* Pagination Info */
.pagination-info {
  display: inline-block;
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 1rem;
}

/* Tablo Hücre Stilleri - Ana Sayfa */
.uni-cell {
  font-weight: 500;
}

/* =========================================================
   Mobil Tablo Optimizasyonu (Bölüm Sayfaları)
   ========================================================= */
@media (max-width: 768px) {

  /* Tablo genel ayarları */
  #mainTable {
    font-size: 0.75rem;
    width: 100%;
    /* table-layout: fixed; KALDIRILDI */
  }

  /* Hücre paddinglerini biraz azalt ama sıkıştırma */
  #mainTable th,
  #mainTable td {
    padding: 8px 6px;
    white-space: nowrap;
    /* Satır kırılmasın, yatay scroll olsun */
  }

  /* Üniversite ve Bölüm adları kırılabilir */
  #mainTable .uni-cell,
  #mainTable .bolum-cell {
    white-space: normal;
    min-width: 140px;
  }

  /* Yıl hücresi */
  #mainTable .center:last-child {
    font-weight: 600;
  }

  /* Wrapper scroll */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: -1rem;
    /* Sağa yasla */
    padding-right: 1rem;
  }
}

.uni-faculty {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* Masaüstü ve Mobil ortak stiller */
.highlight {
  color: #2563eb;
  /* Mavi renk */
  font-weight: 700;
}

.bolum-cell {
  font-size: 0.85rem;
  color: #374151;
}

/* =========================================================
   Küçük Badge Stilleri (Bölüm Sayfaları)
   ========================================================= */
.type-badge-sm {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 3px;
  text-transform: uppercase;
}

.type-badge-sm.devlet {
  background: #10b981;
  color: white;
}

.type-badge-sm.vakif {
  background: #f59e0b;
  color: white;
}

.type-badge-sm.kktc {
  background: #6366f1;
  color: white;
}

.burs-badge-sm {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 2px;
}

.burs-badge-sm.burslu {
  background: #22c55e;
  color: white;
}

.burs-badge-sm.indirim {
  background: #3b82f6;
  color: white;
}

/* Uni badges container */
.uni-badges {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

/* Hidden class */
.hidden {
  display: none !important;
}

/* Yıl sütunları */
.year-col {
  background: #f8fafc;
  font-size: 0.85rem;
  color: #64748b;
}

/* Gizli yıl satırları */
.year-extra-row {
  background: #f8fafc;
}

.hidden-cell {
  background: transparent;
}

/* Filter checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
  cursor: pointer;
}

.filter-checkbox label {
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
  font-weight: 500;
}

/* Yıl alt alta gösterim */
.puan-cell {
  min-width: 100px;
}

.year-item {
  padding: 2px 0;
  font-size: 0.85rem;
}

.year-label {
  color: #64748b;
  font-size: 0.75rem;
}

.year-item strong {
  color: #667eea;
  font-weight: 600;
}

/* =========================================================
   MOBIL TABLO AYARLARI - INDEX.HTML (Phase 14)
   ========================================================= */
@media (max-width: 768px) {

  /* Stacked Type Column */
  .stacked-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .type-sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.3px;
    line-height: 1;
  }

  /* Type column sizing */
  .col-tur {
    width: 40px !important;
    max-width: 45px !important;
    padding: 4px 2px !important;
    white-space: normal !important;
    vertical-align: middle;
  }

  /* Faculty name smaller */
  .uni-faculty {
    font-size: 0.65rem !important;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
  }

  /* University cell */
  .uni-cell {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  /* Badge styling for stacked cell */
  .stacked-cell .badge {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
    border-radius: 3px;
  }
}