/*
 * Sınav Sonuçları Sayfasına Özel Stiller
 * Bu dosya, sadece sinavsonuclari.html sayfasını etkileyen
 * özel stil kurallarını içerir. Genel stiller (body, container, başlık)
 * diğer CSS dosyalarından alınmaktadır.
 */

/* === Sayfaya Özel Konteyner Genişliği === */
/* temel.css'deki 900px'i bu sayfa için ezip 1100px yapar */
.container {
  max-width: 1100px;
}

/* Mobil mavi vurguyu kaldırmak için */
* {
  -webkit-tap-highlight-color: transparent;
}

/* === Tablo Stilleri === */
.table-responsive {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  font-size: 15px;
  white-space: normal;
  word-break: break-word;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #000000;
  font-size: 14px;
  padding: 6px 4px;
}

/* === Yapışkan Sütun ve Satır Renklendirme === */
th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  /* GÜNCELLEME: İsim sütununu sabitlemek ve kaymayı önlemek için eklendi */
  min-width: 180px;
  width: 180px;
  white-space: nowrap;
}

th:first-child {
  background-color: #f0f0f0;
}

tr:nth-child(odd) td:first-child {
  background-color: #ffffff;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:nth-child(even) td:first-child {
  background-color: #f9f9f9;
}

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

tr:hover td:first-child {
  background-color: #e9e9e9;
}


/* === Öğrenci Link Stili === */
.student-link {
  color: #ac1818fd;
  text-decoration: none;
  font-weight: bold;
}

.student-link:hover {
  text-decoration: underline;
}

/* === Ders Hücre Stili === */
.ders-hucre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.4;
  height: 100%;
  box-sizing: border-box;
  gap: 2px;
}
.ders-hucre .dyb {
  font-weight: normal;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1;
}
.ders-hucre .net {
  font-weight: normal;
  font-size: 15px;
  color: #000;
  white-space: nowrap;
  margin-top: 0px;
  line-height: 1;
}

/* === Medya Sorguları (Mobil Uyum) === */
@media (max-width: 1024px) {
  th, td {
    padding: 6px 4px;
    font-size: 14px;
  }
  
  th {
    font-size: 14px;
  }
  
  .ders-hucre {
    font-size: 14px;
  }
  
  .ders-hucre .dyb {
    font-size: 14px;
  }
  
  .ders-hucre .net {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  th, td {
    padding: 5px 3px;
    font-size: 13px;
  }
  
  th {
    font-size: 13px;
    padding: 4px 3px;
  }
  
  .ders-hucre {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .ders-hucre .dyb {
    font-size: 13px;
  }
  
  .ders-hucre .net {
    font-size: 13px;
  }
  
  th:first-child,
  td:first-child {
    min-width: 120px;
    width: 120px;
  }
}

@media (max-width: 480px) {
  .table-responsive {
    overflow-x: auto;
  }
  
  table {
    min-width: 100%;
  }
  
  th, td {
    padding: 5px 3px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  th {
    font-size: 12px;
    padding: 3px 2px;
  }
  
  .ders-hucre {
    font-size: 12px;
    line-height: 1.3;
  }
  
  .ders-hucre .dyb {
    font-size: 12px;
  }
  
  .ders-hucre .net {
    font-size: 12px;
    margin-top: 0px;
  }
  
  th:first-child,
  td:first-child {
    min-width: 100px;
    width: 100px;
    font-size: 12px;
  }
}
