/* Genel Ayarlar */
body {
  margin: 0;
  overflow: hidden;
  background-color: #1a1a1a;
  font-family: "Segoe UI", sans-serif;
}

#ui-layer {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: none;
  pointer-events: none;
}

#hud-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 20px;
  white-space: nowrap;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#status {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 1px 1px 3px black;
  text-align: center;
}

button {
  background: #8b4513;
  color: white;
  border: none;
  padding: 9px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: background 0.15s;
  white-space: nowrap;
}

button:hover {
  background: #a05217;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: white;
  text-align: center;
}

.menu-box {
  background: #2a2a2a;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #444;
  width: 320px;
}

.menu-box button {
  width: 100%;
  margin-top: 10px;
}

input {
  width: 90%;
  padding: 8px;
  margin-bottom: 10px;
  text-align: center;
  background: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
}

/* ============================================================ */
/* Hamle Geçmişi Paneli ve Piyon Terfisi Stilleri */
/* ============================================================ */

#move-log-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: stretch;
    z-index: 999;
    font-family: 'Segoe UI', sans-serif;
}
#move-log-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 28px;
    padding: 12px 4px;
    background: rgba(30,30,60,0.92);
    border: none;
    border-right: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    color: #adf;
    border-radius: 8px 0 0 8px;
    transition: background 0.2s;
}
#move-log-toggle:hover { background: rgba(60,60,120,0.95); }
#toggle-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #adf;
    transform: rotate(180deg);
}
#toggle-icon { font-size: 10px; color: #adf; transition: transform 0.3s; }
#move-log-panel.open #toggle-icon { transform: rotate(180deg); }
#move-log-content {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    background: rgba(14,14,40,0.96);
    backdrop-filter: blur(8px);
    border-left: 1px solid rgba(100,100,200,0.3);
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}
#move-log-panel.open #move-log-content { width: 190px; }
#move-log-header {
    padding: 10px 12px 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #adf;
    border-bottom: 1px solid rgba(100,100,200,0.25);
    flex-shrink: 0;
}
#move-log-list {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}
#move-log-list::-webkit-scrollbar { width: 4px; }
#move-log-list::-webkit-scrollbar-track { background: transparent; }
#move-log-list::-webkit-scrollbar-thumb { background: rgba(170,190,255,0.3); border-radius: 2px; }
.log-empty { display: block; padding: 10px 12px; font-size: 11px; color: rgba(255,255,255,0.35); font-style: italic; }
.log-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.log-entry:hover { background: rgba(255,255,255,0.05); }
.log-entry:last-child { border-bottom: none; }
.log-num { color: rgba(255,255,255,0.3); font-size: 10px; min-width: 18px; text-align: right; }
.log-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.log-dot.white { background: #e8e8e8; border: 1px solid #aaa; }
.log-dot.black { background: #444; border: 1px solid #888; }
.log-move { color: #fff; font-weight: 600; letter-spacing: 0.3px; }
.log-extra { color: #f0a; font-size: 10px; }
.log-capture .log-move { color: #ff8a8a; }

/* Piyon Terfisi özel buton stili */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 4px 0 8px;
}
.promo-btn {
    background: rgba(40,40,80,0.9);
    border: 2px solid rgba(100,100,200,0.4);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.15s;
}
.promo-btn:hover { background: rgba(80,80,160,0.9); border-color: #adf; transform: scale(1.04); }
.promo-btn.selected { background: rgba(100,100,200,0.8); border-color: #adf; box-shadow: 0 0 12px rgba(170,190,255,0.4); }
.promo-icon { font-size: 28px; line-height: 1; }
.promo-label { font-size: 12px; color: #adf; font-weight: 600; }
