
/* ================= POLL – LIGHT ================= */

html[data-theme="light"] .tc-poll-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

html[data-theme="light"] .tc-pill {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  background: var(--pill-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

html[data-theme="light"] .tc-pill span:first-child {
  color: var(--text);
}

html[data-theme="light"] .tc-pill span:last-child {
  color: var(--accent-strong);
  font-size: 12px;
}

html[data-theme="light"] .tc-pill:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .tc-pill.active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
  background: rgba(234, 179, 8, 0.10);
  color: var(--accent-strong);
}

html[data-theme="light"] .tc-pill-result {
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .tc-pill-result::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  background: linear-gradient(
    to right,
    rgba(234, 179, 8, 0.25),
    rgba(234, 179, 8, 0.08)
  );
  pointer-events: none;
  z-index: 0;
  transition: width 0.35s var(--transition-fast);
}

html[data-theme="light"] .tc-pill-result span {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .tc-pill-result:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border-color: var(--accent-strong);
}

/* ================= TIER LIST – LIGHT ================= */

html[data-theme="light"] .tier-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme="light"] .tier-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

html[data-theme="light"] .tier-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

/* Havuz */

html[data-theme="light"] .tier-items-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 7px;
  border-radius: 13px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  min-height: 80px;
  background: #ffffff;
}

/* Item */

html[data-theme="light"] .tier-item {
  position: relative;
  max-width: 150px;
  width: auto;
  max-height: none;
  height: auto;
  border-radius: 11px;
  overflow: hidden;
  cursor: grab;
  border: 1px solid rgba(148, 163, 184, 0.85);
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

html[data-theme="light"] .tier-item img {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

html[data-theme="light"] .tier-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
  border-color: var(--accent-strong);
}

html[data-theme="light"] .tier-item.selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html[data-theme="light"] .tier-item-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  font-size: 13px;
  line-height: 20px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .tier-item-remove:hover {
  background: rgba(248, 113, 113, 0.85);
  color: #fff;
}

/* Satırlar */

html[data-theme="light"] .tier-row {
  display: flex;
  gap: 7px;
  align-items: stretch;
}

html[data-theme="light"] .tier-label {
  min-width: 64px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Tier renkleri aynen korunur */

html[data-theme="light"] .tier-label.S {
  background: linear-gradient(135deg, #ff521b, rgba(216, 68, 0, 0.9));
  color: #fff;
}
html[data-theme="light"] .tier-label.A {
  background: linear-gradient(135deg, #eab308, rgba(212, 156, 0, 0.9));
  color: #fff;
}
html[data-theme="light"] .tier-label.B {
  background: linear-gradient(135deg, #32936f, rgba(2, 156, 28, 0.9));
  color: #fff;
}
html[data-theme="light"] .tier-label.C {
  background: linear-gradient(135deg, #4d9de0, rgba(129, 141, 248, 0.9));
  color: #fff;
}
html[data-theme="light"] .tier-label.D {
  background: linear-gradient(135deg, #f397d6, rgba(136, 6, 129, 0.9));
  color: #fff;
}

html[data-theme="light"] .tier-drop {
  flex: 1;
  min-height: 80px;
  padding: 7px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  background: #ffffff;
}

/* Drag state */

html[data-theme="light"] .tier-drop.drag-over,
html[data-theme="light"] .tier-items-pool.drag-over {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
}

/* ================= RANDOM PICKER / ÇARK – LIGHT ================= */

html[data-theme="light"] .tc-rp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-top: 18px;
}

html[data-theme="light"] .tc-rp-input-card,
html[data-theme="light"] .tc-rp-wheel-card {
  align-items: stretch;
}

html[data-theme="light"] .tc-rp-help {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 8px;
}

html[data-theme="light"] .tc-rp-textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.5;
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

html[data-theme="light"] .tc-rp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

html[data-theme="light"] .tc-rp-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  gap: 6px;
  flex-wrap: wrap;
}

html[data-theme="light"] .tc-rp-warning {
  color: var(--error);
}

html[data-theme="light"] .tc-rp-wheel-card {
  align-items: center;
  text-align: center;
}

/* Wheel container */

html[data-theme="light"] .tc-rp-wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .tc-rp-wheel-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

/* Pointer */

html[data-theme="light"] .tc-rp-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 18px solid var(--accent-strong);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.30));
}

html[data-theme="light"] .tc-rp-spin-btn {
  width: 100%;
  max-width: 260px;
  margin-top: 2px;
}

html[data-theme="light"] .tc-rp-result {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

html[data-theme="light"] .tc-rp-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
}

html[data-theme="light"] .tc-rp-winner {
  margin-top: 3px;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-strong);
  text-align: center;
}

html[data-theme="light"] .tc-rp-footnote {
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted);
  text-align: left;
}

/* ================= GIPHY – LIGHT ================= */

html[data-theme="light"] .giphy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .giphy-modal-inner {
  width: min(720px, 96vw);
  max-height: 80vh;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
}

html[data-theme="light"] .giphy-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

html[data-theme="light"] .giphy-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: #f1f5f9;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .giphy-close-btn:hover {
  background: rgba(234, 179, 8, 0.2);
}

html[data-theme="light"] .giphy-search-input {
  flex: 1 1 auto;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}

html[data-theme="light"] .giphy-search-btn {
  white-space: nowrap;
}

html[data-theme="light"] .giphy-info {
  font-size: 11px;
  color: var(--muted);
}

/* INLINE panel */

html[data-theme="light"] #giphy-modal {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 10px 10px 8px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.03), transparent),
    #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] #giphy-modal .giphy-modal-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
}

html[data-theme="light"] #giphy-modal .giphy-info {
  font-size: 10px;
  color: var(--muted);
}

html[data-theme="light"] #giphy-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  padding-bottom: 4px;
  margin-top: 4px;
  box-sizing: border-box;
  align-items: flex-start;
}

html[data-theme="light"] #giphy-results::-webkit-scrollbar {
  width: 6px;
}
html[data-theme="light"] #giphy-results::-webkit-scrollbar-track {
  background: transparent;
}
html[data-theme="light"] #giphy-results::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

html[data-theme="light"] .giphy-thumb-wrap {
  box-sizing: border-box;
  flex: 0 0 calc(25% - 6px);
  margin: 0;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

html[data-theme="light"] .giphy-thumb-wrap:hover {
  transform: scale(1.03);
  border-color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .giphy-thumb-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

html[data-theme="light"] .giphy-thumb-label {
  position: absolute;
  left: 4px;
  bottom: 3px;
  font-size: 9px;
  color: #1e293b;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] #giphy-load-more {
  margin-top: 6px;
  align-self: center;
  display: none;
}

/* ===========================================
   WORD GAME – LIGHT OVERRIDES
   =========================================== */

html[data-theme="light"] .wg-game-panel {
  background: var(--card-bg, #ffffff);
  border-color: var(--card-border, rgba(209,213,219,0.9));
  color: var(--text, #020617);
}

html[data-theme="light"] .wg-team-column {
  background: var(--card-bg-soft, #F9FAFB);
  border-color: var(--card-border, rgba(209,213,219,0.9));
}

html[data-theme="light"] .wg-player {
  background: #ffffff;
  border-color: rgba(148,163,184,0.5);
}

html[data-theme="light"] .wg-player-me {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), #ffffff);
}

html[data-theme="light"] .wg-input {
  background: #ffffff;
  background-image: none;
  color: #020617;
  border-color: rgba(148,163,184,0.6);
}

html[data-theme="light"] .wg-input:focus {
  background: #fefce8;
}

html[data-theme="light"] .wg-active-player {
  color: var(--accent-strong, #b45309);
}

/* Light butonlar – odayı kapat vs siyah blok olmasın */

html[data-theme="light"] .wg-btn {
  background: #f9fafb;
  background-image: none;
  color: var(--text, #020617);
  border-color: var(--card-border, rgba(209,213,219,0.9));
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

html[data-theme="light"] .wg-btn:hover:not(:disabled) {
  background: #e5e7eb;
  box-shadow: 0 8px 18px rgba(15,23,42,0.12);
  transform: translateY(-1px);
}

html[data-theme="light"] .wg-btn-primary {
  background: var(--accent);
  background-image: none;
  border-color: var(--accent);
  color: #111827;
}

html[data-theme="light"] .wg-btn-outline {
  background: #ffffff;
  border-color: rgba(148,163,184,0.7);
}

/* ===========================
   Kelime Arenası • Hazır sistemi (LIGHT)
   =========================== */

   :root[data-theme="light"] .wg-ready-info {
    color: #6b7280; /* biraz daha koyu gri */
  }
  
  :root[data-theme="light"] .wg-ready-pill {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(22, 163, 74, 0.10);
    color: #166534;
  }
  
  :root[data-theme="light"] .wg-ready-pill.wg-ready-wait {
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(248, 113, 22, 0.08);
    color: #9a3412;
  }
  
  :root[data-theme="light"] .wg-ready-toggle {
    border-color: rgba(148, 163, 184, 0.7);
    color: #4b5563;
    background: #f9fafb;
  }
  
  :root[data-theme="light"] .wg-ready-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.15);
  }
  

/* ===========================================
   VAMPİR KÖYLÜ • TUR / GÜN SAYACI (LIGHT)
   =========================================== */

:root[data-theme="light"] .vk-round-bar {
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.06), transparent),
    var(--card-bg-soft, #F9FAFB);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.32);
  color: var(--muted);
}

:root[data-theme="light"] .vk-round-pill {
  background: #ffffff;
  border-color: rgba(148,163,184,0.6);
  color: #020617;
}

/* Gece / Gündüz renkleri light’a göre */

:root[data-theme="light"] .vk-phase-night {
  background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.14), #fef2f2);
  border-color: rgba(248, 113, 113, 0.9);
  color: #b91c1c;
}

:root[data-theme="light"] .vk-phase-day {
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.16), #ecfdf5);
  border-color: rgba(34, 197, 94, 0.9);
  color: #047857;
}

:root[data-theme="light"] .vk-round-turn {
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.16), transparent),
    #fffbeb;
  border-color: rgba(234, 179, 8, 0.95);
  color: #854d0e;
}

:root[data-theme="light"] .vk-round-meta {
  color: var(--muted);
}

/* Light’ta gölgeyi yumuşat */

@media (max-width: 640px) {
  :root[data-theme="light"] .vk-round-bar {
    box-shadow: 0 6px 16px rgba(148, 163, 184, 0.28);
  }
}

/* Vampir Köylü butonları – LIGHT */

html[data-theme="light"] .vk-player {
  background: #ffffff;
  border-color: rgba(209,213,219,0.9);
  box-shadow: 0 12px 26px rgba(15,23,42,0.06);
}

html[data-theme="light"] .vk-player-me {
  box-shadow: 0 0 0 2px rgba(34,197,94,0.18), 0 10px 26px rgba(15,23,42,0.08);
}

html[data-theme="light"] .vk-btn {
  background: #f9fafb;
  border-color: rgba(148,163,184,0.7);
  color: #020617;
}

html[data-theme="light"] .vk-btn:hover:not(:disabled) {
  background: #e5e7eb;
  color: #020617;
  box-shadow: 0 6px 14px rgba(15,23,42,0.12);
}

/* Öldür */
html[data-theme="light"] .vk-btn-danger {
  background: #fef2f2;
  border-color: #f97373;
  color: #b91c1c;
}

/* Kurtar */
html[data-theme="light"] .vk-btn-safe {
  background: #ecfdf5;
  border-color: #34d399;
  color: #047857;
}

/* Gündüz oyu */
html[data-theme="light"] .vk-btn-vote {
  background: #fffbeb;
  border-color: rgba(234,179,8,0.9);
  color: #92400e;
}

/* Seçilmiş state */
html[data-theme="light"] .vk-btn-selected {
  background: rgba(234,179,8,0.14);
  box-shadow: 0 0 0 1px rgba(234,179,8,0.4);
}
