@charset "UTF-8";
/* ============================================================
   LEFT-DOCK.CSS — Unified bottom-left command deck
   Wraps action-feed, commentary, emote-bar in a single coherent
   glass panel; preserves their existing IDs and JS contracts.
   ============================================================ */

/* ── The dock wrapper (created by left-dock.js) ─────────────── */
#left-dock {
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: 280px;
  max-height: calc(100vh - 220px);
  z-index: 42;
  display: none;
  flex-direction: column;
  gap: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(var(--neon-1-rgb), 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(var(--neon-2-rgb), 0.18) 0%, transparent 60%),
    linear-gradient(160deg, rgba(8,4,18,0.92) 0%, rgba(8,4,18,0.72) 100%);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.7),
    0 0 0 1px rgba(var(--neon-1-rgb), 0.08),
    0 0 40px rgba(var(--neon-1-rgb), 0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  isolation: isolate;
}
#left-dock.dock-visible { display: flex; }

/* Top decorative rail */
#left-dock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--neon-1) 30%,
    var(--accent-warm) 50%,
    var(--neon-2) 70%,
    transparent 100%);
  z-index: 3;
  pointer-events: none;
}
/* Vertical neon spine on the left edge */
#left-dock::after {
  content: '';
  position: absolute;
  top: 14px; bottom: 14px; left: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(var(--neon-1-rgb), 0.7) 0%,
    rgba(var(--accent-warm-rgb), 0.5) 50%,
    rgba(var(--neon-2-rgb), 0.7) 100%);
  filter: blur(0.5px);
  z-index: 2;
  pointer-events: none;
}

/* Header bar (created by JS) */
#ld-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line-1);
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
}
.ld-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body-font);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(var(--neon-1-rgb), 0.6);
}
.ld-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon-1);
  box-shadow: 0 0 10px var(--neon-1), 0 0 20px rgba(var(--neon-1-rgb), 0.6);
  animation: ldLivePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
  text-indent: 0;
}
@keyframes ldLivePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.45; transform: scale(0.75); }
}
.ld-collapse {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.ld-collapse:hover { color: #fff; border-color: var(--neon-1); }

/* ── Commentary ticker (top zone) ─────────────────────────── */
#left-dock #commentary-bubble {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: none !important;
  border: none !important;
  border-bottom: 1px solid var(--line-1) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(var(--neon-1-rgb), 0.14) 0%, transparent 70%),
    linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1)) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  flex-shrink: 0;
  min-height: 56px;
  display: flex !important;
  transform: none !important;
  opacity: 1 !important;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}
#left-dock #commentary-bubble::before {
  content: '◆ CANLI YORUM' !important;
  font-size: 0.52rem !important;
  letter-spacing: 0.5em !important;
  color: var(--neon-1) !important;
  text-shadow: 0 0 8px currentColor;
}
#left-dock #commentary-bubble:not(.visible) .cm-text {
  color: var(--ink-4);
}
#left-dock #commentary-bubble:not(.visible) .cm-text::after {
  content: 'Yorumcu hazır...';
  font-style: italic;
}
#left-dock #commentary-bubble .cm-text {
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
  color: #fff;
}
#left-dock #commentary-bubble .cm-close {
  position: absolute;
  top: 4px; right: 8px;
}
#left-dock #commentary-bubble.visible {
  animation: ldCmPulse 1.2s ease-out;
}
@keyframes ldCmPulse {
  0%   { background-color: rgba(var(--neon-1-rgb), 0.25); }
  100% { background-color: transparent; }
}

/* ── Action feed (middle zone) ──────────────────────────────── */
#left-dock #action-feed {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  z-index: auto !important;
  flex: 1;
  min-height: 0;
  max-height: 220px;
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  overflow-y: auto;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--neon-1-rgb), 0.3) transparent;
}
#left-dock #action-feed::-webkit-scrollbar { width: 4px; }
#left-dock #action-feed::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--neon-1-rgb), 0.3), rgba(var(--neon-2-rgb), 0.3));
  border-radius: 2px;
}
#left-dock #af-head {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(8,4,18,0.95) 0%, rgba(8,4,18,0.7) 100%);
  z-index: 1;
  font-size: 0.55rem !important;
  letter-spacing: 0.45em !important;
  text-indent: 0.45em !important;
  color: var(--ink-3) !important;
  padding: 6px 0 4px !important;
  margin-bottom: 4px !important;
  order: 0 !important;
}
#left-dock #action-feed.visible { display: flex !important; }

#left-dock .af-row {
  padding: 7px 10px !important;
  font-size: 0.78rem !important;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.25)) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

/* When empty, show ghost text */
#left-dock #action-feed:not(:has(.af-row))::after {
  content: 'Henüz hamle yok';
  font-family: var(--body-font);
  font-size: 0.72rem;
  color: var(--ink-4);
  font-style: italic;
  text-align: center;
  padding: 16px 0;
}

/* ── Emote rail (bottom zone) ──────────────────────────────── */
#left-dock #emote-bar {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  z-index: auto !important;
  width: auto !important;
  max-width: none !important;
  border: none !important;
  border-top: 1px solid var(--line-1) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 4px !important;
  justify-content: flex-start;
  display: flex !important;
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
}
#left-dock #emote-bar::before { display: none !important; }
#left-dock #emote-bar .emote-btn {
  width: 32px !important;
  height: 32px !important;
  font-size: 1.05rem !important;
  flex-shrink: 0;
}
#left-dock #emote-bar .emote-btn-text {
  width: auto !important;
  padding: 0 8px !important;
  font-size: 0.62rem !important;
}
#left-dock #emote-bar .emote-bar-sep {
  height: 22px !important;
  margin: 0 2px !important;
}

/* ── Collapsed state — small floating tab ───────────────────── */
#left-dock.dock-collapsed {
  max-height: none;
  width: 44px;
  cursor: pointer;
}
#left-dock.dock-collapsed > :not(#ld-header) { display: none; }
#left-dock.dock-collapsed #ld-header {
  border-bottom: none;
  padding: 8px;
  flex-direction: column;
  gap: 8px;
}
#left-dock.dock-collapsed .ld-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.3em;
  font-size: 0.55rem;
}
#left-dock.dock-collapsed .ld-collapse::before {
  content: '▸';
}
#left-dock:not(.dock-collapsed) .ld-collapse::before {
  content: '▾';
}

/* ── Suppress the originals' standalone positioning ─────────── */
/* (they're now children of #left-dock, but rules at body level
   would otherwise force fixed positioning — already overridden above) */

/* When dock is up, the side player's avatar lives in same x range.
   Let the dock's z-index push it under interactive elements, so cards
   stay tappable. Avatar at #pinfo-left gets a slight nudge to clear
   the dock visually when both visible (only on the bottom segment). */
#game-screen.active #area-left {
  position: relative;
  z-index: 5;
}

/* ── Mobile / narrow viewport ───────────────────────────────── */
@media (max-width: 760px) {
  #left-dock {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: 8px;
    /* Default: collapsed header-only so player hand stays visible */
    max-height: 52px;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  #left-dock > :not(#ld-header) { display: none; }
  #left-dock.dock-mobile-open {
    max-height: 50vh;
    overflow: auto;
  }
  #left-dock.dock-mobile-open > :not(#ld-header) { display: block; }
  #ld-header { cursor: pointer; }
}

/* Tablet portrait — auto-collapse to thin tab */
@media (max-width: 1100px) and (min-width: 761px) {
  #left-dock {
    width: 240px;
    bottom: 8px;
    left: 8px;
  }
  #left-dock #action-feed { max-height: 160px; }
}
