/* ==========================================================================
   1. Font Import ve Root Değişkenleri
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Lora:wght@400;600&display=swap');

:root {
  --bg-color: #f4f8ff;
  /* Açık mavi-beyaz arka plan */
  --text-color: #1a1a1a;
  /* Siyah-koyu gri metin */
  --primary-color: #3399ff;
  /* Canlı mavi vurgu rengi */
  --accent-color: #66ccff;
  /* Açık mavi aksan rengi */
  --hover-color: #007bff;
  /* Koyu mavi etkileşim rengi */
  --header-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pop-text-color: rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   2. Genel ve Body Stilleri
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.popup-open {
  overflow: hidden;
}

/* ==========================================================================
   3. Ana Yapı ve Layout
   ========================================================================== */

main{
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}

.my_header {
  text-align: center;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 2rem;
}

.site-header {
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  width: auto;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
}

.site_ehhha {
  margin: 0;
  display: flex;
  align-items: center;
}

.heade_logo {
  max-height: 36px;
  margin-right: 8px;
}

footer {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid var(--primary-color);
  font-size: 0.9rem;
  color: var(--text-color);
}

/* ==========================================================================
   4. Tipografi
   ========================================================================== */

.my_header h1 {
  font-family: var(--header-font);
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.my_header p {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-style: italic;
}

h2 {
  font-family: var(--header-font);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
}

h3 {
  font-family: var(--header-font);
  font-size: 1.4rem;
  color: var(--text-color);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-family: var(--header-font);
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

strong {
  font-weight: 700;
  color: #000;
}

blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(0, 0, 0, 0.7);
}

.site_title_a {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.site_title_a:hover {
  color: var(--hover-color);
}

/* ==========================================================================
   5. Listeler
   ========================================================================== */

ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5em 0;
  font-family: var(--body-font);
}

li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-color);
  line-height: 1.7;
}

li::before {
  content: '»';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.4em;
  font-weight: bold;
  line-height: 1;
}

ul ul {
  margin-top: 12px;
  margin-bottom: 0;
  padding-left: 20px;
}

ul ul li::before {
  content: '›';
  font-size: 1.3em;
}

/* ==========================================================================
   6. Tablolar
   ========================================================================== */

table {
  width: 100%;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-collapse: collapse;
  font-family: var(--body-font);
  background-color: #ffffff;
  color: var(--text-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

thead tr {
  background-color: var(--primary-color);
}

th {
  padding: 16px;
  text-align: left;
  font-family: var(--header-font);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: medium;
  border-bottom: 1px solid var(--primary-color);
}

td {
  padding: 16px;
  font-size: medium;
  border-bottom: 1px solid var(--primary-color);
  font-weight: 500;
}

td strong {
  color: var(--text-color);
  font-weight: 600;
  font-size: medium;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.1);
  transition: background-color 0.2s ease-in-out;
}

/* ==========================================================================
   7. Popup (Açılır Pencere) Stilleri
   ========================================================================== */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(70, 70, 70, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.popup-content {
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 550px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #333;
  opacity: 0;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease-out;
  transition-delay: 0.05s;
}

.popup-overlay.active .popup-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  padding-top: 10px;
  border-bottom: 2px solid rgba(168, 168, 168, 0.08);
  margin-bottom: 10px;
}

.popup_header_h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.popup-close-btn {
  background: none;
  border: none;
  font-size: 30px;
  font-weight: normal;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.7);
}

.popup-close-btn:hover {
  color: var(--hover-color);
}

.popup-buttons-container {
  overflow-y: auto;
  max-height: calc(85vh - 150px);
  padding-right: 5px;
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  border-radius: 12px;
}

.popup-buttons-container::-webkit-scrollbar {
  width: 6px;
}

.popup-buttons-container::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 3px;
}

.popup-buttons-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.popup-buttons-container::-webkit-scrollbar-thumb:hover {
  background: #666;
}


/* ==========================================================================
   8. Butonlar ve Linkler
   ========================================================================== */

/* --- Menü Butonu --- */
.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-icon {
  width: 20px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu_icon_span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-icon:hover .menu_icon_span {
  background-color: var(--hover-color);
}

/* --- Popup Butonları --- */
.popup-div-button {
  width: auto;
  display: flex;
  margin-bottom: 10px;
}

.popup-button {
  margin: auto;
  display: block;
  width: 100%;
  padding: 12px 18px;
  background-color: transparent;
  border-radius: 5px;
  font-size: 0.95em;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.15s ease;
  box-sizing: border-box;
  color: var(--pop-text-color);
}


.popup-button:hover {
  color: var(--hover-color);

}

.popup-button-active {
  color: var(--hover-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.popup-button:active {
  color: var(--hover-color);
}

.popup-button:last-child {
  margin-bottom: 0;
}

.hidden {
  display: none;
}

.lang-switcher {
  display: flex;
  justify-content: center;
}

.lang-btn {
  padding: 6px 8px;
  font-size: small;
  font-weight: 400;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  cursor: pointer;
  background-color: transparent;
  color: var(--pop-text-color);
  transition: all 0.2s ease-in-out;
}

.lang-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

/* --- Genel Butonlar --- */
.btn_d {
  align-items: center;
  font-weight: 400;
  font-size: 14px;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  transition: 0.5s;
  letter-spacing: 1px;
  text-decoration: none;
  color: #ffffff;
  background: var(--primary-color);
}

.btn_d:hover {
  background: var(--hover-color);
  color: #ffffff;
}

/* --- Gradient Buton --- */
.fl_div {
  display: flex;
  align-items: center;
  text-align: center;
}

.fl_btn {
  margin: auto;
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fl_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #5c61e9, #a0a6ff);
}

.fl_btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* --- Diğer Linkler --- */
.prvcy_plcy {
  text-decoration: none;
  cursor: pointer;
  color: var(--text-color);
}

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

/* ==========================================================================
   9. Diğer Bileşenler
   ========================================================================== */

.math-container {
  background-color: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  text-align: center;
}

.cta-container {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: rgba(0, 191, 255, 0.05);
  border-radius: 10px;
}

#flux-animation-container {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   10. Media Sorguları (Responsive Tasarım)
   ========================================================================== */

@media (max-width: 768px) {

  main {
    padding: 1rem;
  }

  .my_header h1 {
    font-size: 2.0rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .popup-content {
    padding: 20px;
    max-width: 95%;
    transform: scale(0.95) translateY(-15px);
  }

  .popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
  }

  .popup_header_h2 {
    font-size: 14px;
  }

  .popup-button {
    font-size: 0.9em;
  }

  .popup-buttons-container {
    max-height: calc(85vh - 120px);
  }

}

@media (max-width: 600px) {
  th {
    padding: 6px;
    font-weight: 400;
    font-size: small;
  }

  td {
    padding: 6px;
    font-weight: 400;
    font-size: small;
  }

  td strong {
    font-weight: 600;
    font-size: small;
  }

  .popup_header_h2 {
    font-size: 12px;
  }

  .site_title_a {
    font-size: 15px;
    font-weight: 600;
  }
}

@media (max-width: 400px) {
  th {
    padding: 1px;
    font-weight: 300;
    font-size: x-small;
  }

  td {
    padding: 1px;
    font-weight: 300;
    font-size: x-small;
  }

  td strong {
    font-weight: 400;
    font-size: x-small;
  }

  .site_title_a {
    font-size: 14px;
    font-weight: 600;
  }
}