:root {
  --primary: #2a7ba4;
  --secondary: #00A699;
  --accent: #be470e;
  --background: #FFFFFF;
  --text: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
}

/* ===== Splash & Loader ===== */
#splash {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: var(--primary);
  z-index: 1000;
}
#splash-icon {
  width: 100px; height: 100px;
  margin-bottom: 16px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
#loader {
  width: 80%; max-width: 280px;
  text-align: center;
}
#progress-bar {
  width: 100%; background: rgba(255,255,255,0.3);
  height: 12px; border-radius: 6px; overflow: hidden;
  margin-bottom: 6px;
}
#progress {
  width: 0%; height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}
#progress-text {
  color: #fff; font-size: 0.9rem;
}

/* ===== FirebaseUI Login ===== */
#firebaseui-auth-container {
  padding: 24px;
  max-width: 360px;
  margin: 60px auto;
  background: var(--background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.firebaseui-idp-button,
.firebaseui-textfield-input,
.firebaseui-button {
  border-radius: 4px !important;
}
.firebaseui-idp-button {
  background: var(--secondary) !important;
  color: #fff !important;
}
.firebaseui-textfield-input {
  border: 1px solid var(--accent) !important;
}
.firebaseui-submit-button {
  background: var(--accent) !important;
  color: #fff !important;
}
:root {
  --accent: #be470e;
  --secondary: #00A699;
}

/* ================= Splash & Loader ================= */
#splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--secondary);
  z-index: 1000;
}
#splash-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
#loader {
  width: 80%;
  max-width: 280px;
  text-align: center;
}
#progress-bar {
  width: 100%;
  background: rgba(255,255,255,0.3);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
#progress {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}
#progress-text {
  color: #fff;
  font-size: 0.9rem;
}

/* ================= Global Reset & Body ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
}

/* Full‑page background */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ================= Container & Pane ================= */
.container {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;       /* Dikey ortalama */
  justify-content: flex-start; 
  padding-left: 10%;
}

.pane {
  flex: 1;
  position: relative;
}

/* ================= Login Pane ================= */
.login-pane {
  display: flex;
  flex-direction: column;
  align-items: center;       /* Yatay ortalama */
  justify-content: center;   /* Dikey ortalama */
  background: rgba(255,255,255,0.95);
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-width: 360px;
  width: 100%;
}

/* Logo */
.logo {
  width: 50%;
  max-width: 200px;
  margin-bottom: 32px;
}

/* Input Grupları */
.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}
.input-group .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
}
.input-group input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.input-group input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(0,166,153,0.2);
  outline: none;
}

/* ================= Buttons ================= */
.btn-enter {
  width: 100%;
  padding: 12px 0;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-enter:hover {
  background: #a03d0c;
}
.btn-enter:active {
  transform: scale(0.98);
}

/* Register & Social */
.register-text {
  font-size: 0.9rem;
  color: #333;
  margin: 12px 0;
}
.register-text a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
}
.social-login {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-btn img {
  width: 24px;
  height: 24px;

}

/* LOGIN PANE İÇİ KONTEYNER GÖRÜNÜMÜ */
.login-pane {
  background: none;       /* Beyaz kutuyu kaldır */
  box-shadow: none;       /* Gölgeyi kaldır */
  border-radius: 0;       /* Köşe yuvarlamayı kaldır */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}



/* Panel wrapper: PNG konteyner ve içeriği */
.panel-img-wrapper {
  height: 900px;      /* Ne kadar uzunluk istiyorsan burayı değiştir */
  width: auto;        /* Genişlik orantılı kalsın */
}
.panel-img {
  height: 100%;       /* Wrapper yüksekliğini kaplasın */
  width: auto;        /* En-boy oranı bozulmasın */
}

.panel-content {
  position: absolute;
  top: 40%;
  left: 60%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;         /* Formun genişliğini ayarla */
  max-width: 400px;   /* Masaüstü sınırı */
  padding: 20px;      /* PNG iç boşluk varsa buradan azalt-arttır */
  pointer-events: none;
}

.panel-content * {
  pointer-events: all;
}

:root {
  --primary:   #2a7ba4;
  --secondary: #00A699;
  --accent:    #be470e;
  --text:      #fff;
  --panel-bg:  rgba(0, 0, 0, 0.6);
}

/* Tam ekran arka plan */
html, body {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  font-family: sans-serif;
  margin: 0; padding: 0;
  color: var(--text);
  overflow: hidden;
  position: relative;
}

/* Ana container: dikey boşluk ayarı */
#menu-container {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
}

/* Kullanıcı Paneli */
.user-panel {
  width: 100%; max-width: 500px;
  background: var(--panel-bg);
  border-radius: 12px;
  display: flex; align-items: center;
  padding: 12px;
  gap: 12px;
}
.user-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.user-info h2 {
  font-size: 1.4rem; margin: 0;
}
.user-stats {
  margin-left: auto;
  display: flex; gap: 16px;
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 1.2rem; font-weight: bold; }
.stat-label { font-size: 0.75rem; color: #ccc; }

/* Oyun Butonları – Dikey Liste */
.game-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%; max-width: 300px;
  margin-top: 24px;
}
.game-btn {
  padding: 18px;
  border: none;
  border-radius: 32px;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text);
  background: linear-gradient(145deg, var(--secondary), var(--primary));
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.4),
    -6px -6px 12px rgba(255, 255, 255, 0.1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.2);
  transition: transform .1s, box-shadow .2s;
}
.game-btn:active {
  transform: scale(0.95);
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Alt ikon çubuğu */
.bottom-icons {
  display: flex; gap: 32px;
  margin-bottom: 16px;
}
.bottom-icons button {
  background: var(--panel-bg);
  border: none; padding: 12px;
  border-radius: 16px;
  transition: background .2s, transform .1s;
}
.bottom-icons button:hover {
  background: var(--accent);
  transform: scale(1.1);
}
.bottom-icons img {
  width: 32px; height: 32px;
}

/* Arka plan müziği gizle */
#audio#bg-music { display: none; }

/* Odalar Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  backdrop-filter: none;
}
.hidden { display: none; }
.modal-content {
  background: #222; color: #fff;
  padding: 20px; border-radius: 8px;
  width: 90%; max-width: 400px; position: relative;
}
.close-modal {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; color: #fff;
  font-size: 1.2rem; cursor: pointer;
}
.create-room {
  display: flex; gap: 8px; margin-bottom: 16px;
}
#create-room-btn {
  flex-shrink: 0;
}
#rooms-list {
  list-style: none; max-height: 300px;
  overflow-y: auto; padding: 0;
}
#rooms-list li {
  display: flex; justify-content: space-between;
  align-items: center; padding: 8px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 8px; border-radius: 4px;
}
#rooms-list button {
  background: var(--secondary); color: #fff;
  border: none; border-radius: 4px; padding: 4px 8px;
  cursor: pointer;
}
#rooms-list button:disabled {
  background: gray; cursor: not-allowed;
}

/* -------- Temel Panel ve Menü Stili (önceki kodunuz) -------- */
:root {
  --primary:   #2a7ba4;
  --secondary: #00A699;
  --accent:    #be470e;
  --background: #FFFFFF;
  --text:      #333333;
  --panel-bg:  rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width:100%; height:100%;
  font-family: sans-serif;
  overflow: hidden;
}

/* Menü arka planı */
.menu-bg {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  z-index: -1;
}

/* Container & Pane */
.container {
  display: flex; width:100%; height:100%;
  align-items:center; justify-content:flex-start;
  padding-left:10%;
}
.pane { flex:1; position:relative; }

/* Panel wrapper */
.panel-img-wrapper {
  position: relative;
  height: 90vh; width: auto;
}
.panel-img { height:100%; width:auto; }

/* Panel içerik */
.panel-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(255,255,255,0.95);
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  width: 80%; max-width: 360px;
  color: var(--text);
}
.panel-content .logo {
  width: 50%; max-width: 150px;
  margin: 0 auto 16px; display:block;
}
.panel-content h2 {
  text-align: center; margin-bottom: 16px;
}
.menu-buttons {
  display: flex; flex-direction: column; gap:16px;
}
.btn-enter {
  padding:12px;
  background: var(--accent); color:#fff;
  border:none; border-radius:6px;
  font-size:1rem; cursor:pointer;
  transition: transform .1s, background .2s;
}
.btn-enter:hover { background: #a03d0c; }
.btn-enter:active { transform: scale(0.98); }
.logout-btn { background: #888 !important; }

/* -------- Odalar Tam Ekran Paneli -------- */
.fullscreen {
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 90%; max-width: 600px;
  max-height: 90vh;
  overflow: auto;
}
.close-fullscreen {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
}

/* Oda Oluşturma */
.create-room {
  display: flex; flex-wrap: wrap; gap:8px;
  margin-bottom:16px;
}
.create-room input {
  flex:1; min-width:120px;
  padding:8px; border:1px solid var(--primary);
  border-radius:4px;
}
.create-room .btn-enter {
  flex-shrink:0;
}

/* Oda Listesi */
#rooms-list {
  list-style: none; padding:0;
}
#rooms-list li {
  display:flex; justify-content: space-between;
  align-items:center;
  background: var(--panel-bg);
  padding: 12px; margin-bottom:8px;
  border-radius:6px;
  color: #fff;
}
#rooms-list li .btn-enter {
  padding:6px 12px;
  font-size:.9rem;
}
#rooms-list li .btn-enter:disabled {
  background: gray; cursor:not-allowed;
}

/* Gizleme */
.hidden { display: none; }

/* --- tahta genel ayarları --- */
#game-board {
  position: relative;
  width: 90vmin;
  height: 90vmin;
  margin: 2rem auto;
}

/* --- dış halka: segmentler için conic-gradient --- */
#game-board {
  background:
    /* dış halka */
    conic-gradient(
      /* her bir segment açısını eşit bölüyoruz; toplam 360° */
      /* renkleri sırasıyla resimdeki gibi buraya yaz */
      #a33 0deg 15deg,
      #4a3 15deg 30deg,
      /* ... tüm segment renkleri ... */
      #c13 345deg 360deg
    ),
    /* iç halka */
    conic-gradient(
      /* iç segmentler; 360° / N */
      #f5a 0deg 20deg,
      #aff 20deg 40deg,
      /* ... */
      #ffa 340deg 360deg
    );
  border-radius: 50%;
  background-size: cover;
  /* halkalar arasındaki boşluk için arka plan rengi beyaz */
  background-repeat: no-repeat;
}

/* --- ortadaki boşluk ve logo --- */
#board-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#board-center img {
  max-width: 80%;
  height: auto;
}

/* Google'dan oyun temasına uygun bir font import edelim */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/* CSS Değişkenleri - Renkleri buradan kolayca değiştirebilirsiniz */
:root {
    --primary-color: #ffc93c;   /* Ana Renk (Sarı) */
    --secondary-color: #ff7f50; /* İkincil Renk (Turuncu) */
    --dark-blue: #1a5f7a;       /* Koyu Mavi */
    --light-bg: #57a0d3;       /* Açık Arka Plan Rengi */
    --text-color: #ffffff;      /* Yazı Rengi */
    --panel-bg: rgba(0, 0, 0, 0.3); /* Panel Arka Planı */
    --danger-color: #e74c3c;    /* Tehlike/Çıkış Rengi */
    --danger-shadow: #c0392b;   /* Tehlike/Çıkış Gölgesi */
}

/* Temel Sayfa Ayarları */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden; /* Sayfanın kaydırılmasını engelle */
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--light-bg), var(--dark-blue));
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ana Menü Container */
#menu-container {
    width: 100%;
    max-width: 480px; /* Mobil cihazlar için ideal genişlik */
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Elementleri dikeyde yay */
    align-items: center;
}

/* Kullanıcı Paneli */
.user-panel {
    background: var(--panel-bg);
    width: 100%;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-right: 15px;
}

.user-info {
    flex-grow: 1;
}

#user-name {
    font-family: 'Luckiest Guy', cursive;
    font-size: 24px;
    letter-spacing: 1px;
}

.user-stats {
    display: flex;
    gap: 15px;
    text-align: center;
}

.stat {
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 10px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Oyun Butonları */
.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
}

.game-btn {
    font-family: 'Luckiest Guy', cursive;
    font-size: 28px;
    padding: 15px 20px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    text-shadow: 2px 2px 3px rgba(0,0,0,0.4);
    transition: all 0.1s ease-in-out;
}

/* Ana Oyna Butonu */
#play-btn {
    background-color: var(--secondary-color);
    border-bottom: 6px solid #c05c36;
    animation: pulse 1.5s infinite; /* Dikkat çekme animasyonu */
}

#play-btn:hover {
    background-color: #ff9a78;
}

#play-btn:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

/* Diğer Butonlar */
#rooms-btn {
    background-color: var(--primary-color);
    border-bottom: 6px solid #b38e28;
}

#rooms-btn:hover {
    background-color: #ffd460;
}

#rooms-btn:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

/* Çıkış Butonu */
.logout-btn {
    background-color: var(--danger-color);
    border-bottom: 6px solid var(--danger-shadow);
    font-size: 20px;
    padding: 10px 15px;
}

.logout-btn:hover {
    background-color: #f1c40f;
}

.logout-btn:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}


/* Alt İkon Çubuğu */
.bottom-icons {
    width: 100%;
    background: var(--panel-bg);
    padding: 10px;
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bottom-icons button {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.bottom-icons button:hover {
    transform: scale(1.1);
}

.bottom-icons img {
    width: 40px;
    height: 40px;
}

/* Animasyonlar */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 127, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0);
    }
}
