body {
  font-family: 'Mulish', sans-serif;
  margin: 0;
  background-color: #f5f5f5;
  padding-top: 60px;
}

/* Sabit Üst Header */
.fixed-header {
  background-color: #3b5998;
  color: white;
  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);
}

.fixed-header .logo {
  font-size: 1.5em;
  font-weight: bold;
  font-family: 'Mulish', sans-serif;
}

.home-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 1em;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Mulish', sans-serif;
  transition: background-color 0.3s ease;
}
.home-button:hover { background-color: #45a049; }

/* Sticky Top Alan */
#stickyTop {
  position: sticky;
  top: 60px;
  background-color: #f5f5f5;
  z-index: 999;
  padding: 10px 10px 20px;
  border-bottom: 1px solid #ddd;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
#stickyTop.collapsed { max-height: 0; padding: 0; overflow: hidden; }

/* Grup Butonları */
#topBar { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
#groupTabs { display: flex; gap: 8px; flex-wrap: wrap; }

.group-btn {
  padding: 8px 12px;
  background-color: #ddd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.group-btn.active { background-color: #1877f2; color: white; }

#toggleCaseBtn {
  padding: 8px 12px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* Harfler */
.letter-group {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.letter-group.active { display: flex; }

.letter {
  background-color: #1877f2;
  color: white;
  padding: 16px;
  font-size: 24px;
  border-radius: 10px;
  cursor: pointer; /* tap-select */
  user-select: none;
}
/* Seçili harf vurgusu */
.letter.selected { outline: 3px solid #34A853; outline-offset: 2px; }

/* Hece Satırı */
.hece-container { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hece-btn {
  padding: 6px 12px; font-size: 14px; font-weight: bold;
  background-color: #1877f2; color: white; border: none; border-radius: 6px; cursor: pointer;
}

/* Slot */
.slot-row { display: flex; gap: 1px; justify-content: center; margin-bottom: 15px; }
.slot {
  width: 90px; height: 110px;
  font-family: 'Mulish', sans-serif; font-weight: 700; font-size: 38px; color: #333;
  text-align: center; display: flex; align-items: flex-start; justify-content: center;
  position: relative; overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 12%,
    #999 12%, #999 13.5%,
    rgba(255,255,255,0.8) 13.5%, rgba(255,255,255,0.8) 50%,
    #999 50%, #999 51.5%,
    rgba(255,242,0,0.6) 51.5%, rgba(255,242,0,0.6) 83%,
    #999 83%, #999 84.5%,
    rgba(255,255,255,0.8) 84.5%, rgba(255,255,255,0.8) 100%
  );
}

/* Orta Alan */
.drop-container { display: flex; justify-content: center; margin-top: 10px; margin-bottom: 10px; }
.middle-zone { display: flex; flex-direction: column; gap: 6px; }

/* Kontroller */
.control-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.control-buttons button {
  font-size: 16px; padding: 6px 14px; background-color: #ff9800;
  color: white; border: none; border-radius: 8px; cursor: pointer;
}
.green-btn { background-color: #34A853 !important; color: white !important; font-weight: bold; font-size: 18px; padding: 6px 14px; border: none; border-radius: 8px; cursor: pointer; }

/* Sticky Butonlar */
.sticky-buttons { display: flex; justify-content: space-between; margin: 10px 20px 0; }
.sticky-buttons button {
  padding: 10px 16px; font-size: 15px; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-family: 'Mulish', sans-serif; display: flex; align-items: center; gap: 6px;
}
#clearBtn { background-color: #EA4335; }
#fullscreenBtn { background-color: #34A853; }

/* Daralt/Genişlet Butonu */
#stickyToggleBtnContainer { display: flex; justify-content: center; margin: 5px 0 15px; }
#toggleStickyBtn {
  padding: 6px 12px; font-size: 14px; font-weight: bold;
  background-color: #3b5998; color: white; border: none; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}

/* Uyarı Kutusu */
.warning-box {
  position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%);
  background-color: #ffc107; color: #333; padding: 12px 20px; border-radius: 8px;
  font-weight: bold; font-family: 'Mulish', sans-serif; font-size: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.warning-box.show { opacity: 1; pointer-events: auto; }

.footer-text {
  position: relative; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 600px; text-align: center; font-size: 0.9em; color: #666; z-index: 0; padding: 5px 10px; box-sizing: border-box;
}

/* --- MOBİL DESTEKLENMİYOR 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-color: #ffffff; 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; }
  .fixed-header, #stickyTop, #stickyToggleBtnContainer, .drop-container, .control-buttons, .warning-box { display: none !important; }
}
