/* Genel yapı ve font */
body {
  font-family: 'Mulish', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

/* 100'lük Tablo Uygulamasının Ana Kapsayıcısı */
#hundred-chart-app-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sabit üst menü */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 320px;
  background-color: #3b5998;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fixed-header .logo {
  font-size: 1.5em;
  font-weight: bold;
}

.fixed-header .header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.home-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  margin-left: 10px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.home-button i {
  margin-right: 6px;
}

/* Grid alanı */
#grid {
  width: 1200px;
  height: 550px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  z-index: 1;
}

/* Hücreler */
.cell {
  background-color: white;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.7em;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 50px;
  aspect-ratio: auto;
}

/* Hatalı tıklama efekti */
.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  75%  { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* Otomatik Doldur Paneli – sadece tam ekran modunda görünür */
#auto-fill-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  gap: 10px;
  align-items: center;
  z-index: 1001;
}

body.fullscreen-active #auto-fill-controls {
  display: flex;
}

/* Giriş alanları */
#auto-fill-controls input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 60px;
  font-size: 1em;
  text-align: center;
}

/* Otomatik doldur butonu */
#auto-fill-button {
  background-color: #34A853;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#auto-fill-button:hover {
  background-color: #2c8b46;
}

/* Yeniden Başla butonu – sol alt */
#reset-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #EA4335;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s ease;
}

#reset-button:hover {
  background-color: #d12c2c;
}

/* Tam Ekran butonu – sağ alt */
#fullscreen-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #34A853;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s ease;
}

#fullscreen-button:hover {
  background-color: #0f65d3;
}

/* --- YENİ EKLENEN ELEMANLAR İÇİN STİLLER BAŞLANGICI --- */
.info-text {
    position: fixed;
    /* top değeriyle oynayabiliriz veya daha esnek bir konumlandırma düşünebiliriz. */
    /* top: 60%; yerine daha küçük bir değer deneyin veya tamamen farklı bir yer. */
    top: auto; /* Otomatik konumlandırma */
    bottom: 10px; /* Sayfanın altına yakın konumlandırın */
    left: 50%;
    transform: translateX(-50%); /* Sadece yatayda ortala */
    width: 90%;
    max-width: 600px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    z-index: 0; /* Grid'in ve hücrelerin z-index'inden daha düşük yapın */
    padding: 5px 10px;
    box-sizing: border-box;
    /* padding-top: 500px; KESİNLİKLE KALDIRIN, bu çok fazla! */
}

body.fullscreen-active .info-text {
    bottom: 100px; /* Veya istediğiniz başka bir değer (örn: 150px, 200px) */
    /* top: auto; (isteğe bağlı, zaten bottom kullanıyorsak gereksiz olabilir) */
}

.info-text p {
    margin: 0;
}


.bottom-left-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}
/* --- YENİ EKLENEN ELEMANLAR İÇİN STİLLER BİTİŞİ --- */


/* --- MOBİL DESTEKLENMİYOR MESAJI STİLLERİ BAŞLANGICI --- */
.mobile-not-supported-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0f2f7;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.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;
    max-width: 500px;
    width: 90%;
    color: #333;
    font-family: 'Mulish', sans-serif;
}

.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;
}

/* Medya Sorgusu: Mobil Cihazlarda Ana İçeriği Gizle, Uyarıyı Göster */
@media (max-width: 768px) {
    body {
        overflow: hidden !important;
    }

    /* 100'lük Tablo Uygulamasının Ana Kapsayıcısını gizle */
    #hundred-chart-app-container {
        display: none !important;
    }
    
    /* Mobil uyarı mesajını göster */
    .mobile-not-supported-message {
        display: flex !important;
    }
}

/* Medya Sorgusu: Masaüstü ve Büyük Ekranlarda Uyarıyı Gizle */
@media (min-width: 769px) {
    /* Mobil uyarı mesajını gizle */
    .mobile-not-supported-message {
        display: none !important;
    }

    /* 100'lük Tablo Uygulamasının Ana Kapsayıcısını göster */
    #hundred-chart-app-container {
        display: block !important;
    }

    /* Body için overflow'u geri alalım, böylece içerik taşarsa kaydırılabilir olsun */
    body {
        overflow: auto !important;
    }
}
/* --- MOBİL DESTEKLENMİYOR MESAJI STİLLERİ BİTİŞİ --- */