/* ========= SABİT ÜST HEADER ========= */
.fixed-header {
  background-color: #3b5998;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0; left: 0; width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-family: 'Mulish', sans-serif;
}
.fixed-header .logo {
  font-size: 1.5em;
  font-weight: bold;
  display: flex; align-items: center;
}

/* ========= ANASAYFA BUTONU ========= */
.home-button {
  background-color: #34A853;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color .3s ease, transform .15s ease;
}
.home-button:hover { background-color: #2c8c45; transform: translateY(-1px); }

/* ========= GENEL ========= */
html, body { height: 100%; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }

:root{
  --header-h: 60px;
  --footer-h: 44px;
  --design-w: 1400px;
  --design-h: 640px; /* biraz artırıldı */
  --row-gap: 36px;
  --grp-gap: 36px;
}

body{
  font-family: 'Mulish', sans-serif;
  background: #f4f6f9;
  color: #333;
  overflow: hidden;
}

/* ========= MOBİL UYARI ========= */
/* --- MOBİL UYARISI --- */
.mobile-not-supported-message{
  display:none;
  justify-content:center; align-items:center;
  position:fixed; inset:0;
  z-index:9999;
  background-color:#e0f2f7;
}
.mobile-not-supported-message .message-content{
  background:#fff;
  border-radius:10px;
  box-shadow:0 4px 15px rgba(0,0,0,0.2);
  padding:40px 24px;
  max-width:500px;
  width:calc(100% - 40px);
  margin:0 20px;
  color:#333;
  font-family:'Mulish', sans-serif;
  text-align:center;
}
.mobile-not-supported-message h2{ font-size:2em; color:#3b5998; margin-bottom:20px; }
.mobile-not-supported-message p{ font-size:1.2em; line-height:1.6; margin-bottom:10px; }
@media (max-width:768px){
  html,body{ overflow:hidden!important; height:100%; margin:0; padding:0; }
  .mobile-not-supported-message{ display:flex!important; }
}

/* ========= ANA İÇERİK ========= */
.main-content{
  --avail-w: calc(100vw - 24px);
  --avail-h: calc(100vh - var(--header-h) - var(--footer-h) - 12px);
  --sx: calc(var(--avail-w) / var(--design-w));
  --sy: calc(var(--avail-h) / var(--design-h));
  --k: min(var(--sx), var(--sy));
  height: calc(100vh - var(--header-h) - var(--footer-h));
  padding-top: var(--header-h);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* ========= ÖLÇEK ========= */
.stage-scale{
  width: var(--design-w);
  height: var(--design-h);
  transform: scale(var(--k));
  transform-origin: top center;
  margin-top: 90px;
}

/* ========= GRUPLAR ========= */
.groups-stage{
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  row-gap: var(--row-gap);
  padding-bottom: 20px; /* altta biraz ekstra boşluk */
}
.groups-row{
  display: flex; justify-content: center;
  column-gap: var(--grp-gap);
  flex-wrap: nowrap;
}
.groups-row.bottom-row{
  margin-bottom: 24px; /* sadece alt satır için ekstra boşluk */
}

/* ========= GRUP KUTUSU ========= */
.letter-group{
  background: #fff;
  padding: 20px 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  min-width: 300px; max-width: 340px;
}
.letter-group h2{
  margin: 0 0 14px 0;
  font-size: 24px; font-weight: 800; color: #3b5998;
}

/* ========= HARF GRID ========= */
.letters-grid{
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 16px;
  justify-content: center;
}
.letter-btn{
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: #3b5998; color:#fff;
  font-size: 28px; font-weight: 800;
  text-decoration: none; border-radius: 10px;
  transition: transform .18s ease, background .28s ease;
}
.letter-btn:hover{ background:#2d4373; transform: translateY(-3px) }

/* ========= ALT BİLGİ ========= */
.info-text{
  position: fixed; left:0; bottom:0; width:100%;
  height: var(--footer-h);
  display:flex; align-items:center; justify-content:center;
  padding: 0 12px;
  background:#f1f1f1; font-size:14px; color:#555;
  border-top:1px solid #ddd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* === Tam ekran butonu: Google yeşili === */
/* ========= TAM EKRAN BUTONU (sol alt) ========= */
.fs-button{
  position: fixed;
  left: 16px;
  bottom: calc(var(--footer-h, 0px) + 16px); /* footer varsa üstünde; yoksa 16px */
  z-index: 4000;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  background: #34A853;     /* Google Green */
  color: #fff;
  border: none;
  border-radius: 10px;

  font-weight: 800;
  font-size: 14px;
  cursor: pointer;

  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}

.fs-button:hover{
  background: #2c8c45;     /* koyu hover */
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.fs-button:active{ transform: translateY(0) }

.fs-button.is-active{
  background: #2c8c45;     /* tam ekrandayken farklı ton */
}
.fs-button.is-active:hover{
  background: #25763a;
}

/* ikon görünürlüğü: aktifken compress göster, değilken expand */
.fs-button .fa-expand{ display: inline-block }
.fs-button .fa-compress{ display: none }
.fs-button.is-active .fa-expand{ display: none !important }
.fs-button.is-active .fa-compress{ display: inline-block !important }

/* etiket (metin) – istersen gizleyip yalnız ikon da kullanabilirsin */
.fs-button .fs-label{ display: inline-block }

/* erişilebilir odak halkası */
.fs-button:focus-visible{
  outline: 3px solid rgba(52,168,83,0.5);
  outline-offset: 2px;
}

/* daha küçük ekran yüksekliğinde hafif sıkıştırma */
@media (max-height: 700px){
  .fs-button{ padding: 8px 12px; font-size: 13px }
}
