/* HTF Puzzles v2 Styles (Word Search) */
/* Scoped panel look */
.htf-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(180, 120, 255, 0.35);
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.htf-title {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: #67d3ff;
}

.htf-subtitle {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.85;
}

/* Layout */
.htf-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 860px) {
  .htf-row {
    grid-template-columns: 1fr;
  }
}

/* Grid wrap */
.ws-grid-wrap {
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Word search grid */
.ws-grid {
  --ws-size: 18;
  display: grid;
  grid-template-columns: repeat(var(--ws-size), 1fr);
  gap: 5px;
  min-width: 520px; /* helps match your Image 1 look */
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* Cell buttons */
.ws-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16, 18, 22, 0.95);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.ws-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}

.ws-cell.is-temp {
  background: rgba(80, 255, 130, 0.22);
  border-color: rgba(80, 255, 130, 0.55);
}

.ws-cell.is-found {
  background: rgba(80, 255, 130, 0.35);
  border-color: rgba(80, 255, 130, 0.75);
}

.ws-cell.is-bad {
  background: rgba(255, 80, 80, 0.25);
  border-color: rgba(255, 80, 80, 0.65);
}

/* Clear button + feedback */
#htf-ws-clear {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

#htf-ws-clear:hover {
  background: rgba(255,255,255,0.12);
}

#htf-ws-feedback {
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

#htf-ws-feedback.is-info {
  color: #ffffff;
  opacity: 0.9;
}

#htf-ws-feedback.is-good {
  color: #7dffb0;
}

#htf-ws-feedback.is-bad {
  color: #ff8f8f;
}

/* Words list panel */
.ws-words {
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
}

.ws-words-title {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.9;
  margin-bottom: 10px;
}

.ws-words-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.ws-word {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 900;
  letter-spacing: 0.6px;
}

.ws-word-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
}

.ws-word.is-found {
  opacity: 0.75;
}

.ws-word.is-found .ws-word-text {
  text-decoration: line-through;
}

.ws-word.is-found .ws-word-check {
  background: rgba(80, 255, 130, 0.22);
  border-color: rgba(80, 255, 130, 0.6);
}
/* Ensure words list never clips */
.ws-words {
  overflow: visible !important;
}

#htf-ws-words .ws-words-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}
/* ================================
   WORD LIST VISIBILITY FIX
   (Brighten text + cards)
   ================================ */

/* Make the right panel brighter */
.ws-words{
  background: rgba(20, 22, 28, 0.88) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

/* Make "Words to find:" readable */
.ws-words-title{
  color: rgba(255,255,255,0.92) !important;
  opacity: 1 !important;
}

/* Make each word card brighter + readable */
.ws-word{
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* Brighten the actual word text */
.ws-word .ws-word-text{
  color: rgba(255,255,255,0.95) !important;
}

/* Make the checkbox box clearer */
.ws-word-check{
  background: rgba(0,0,0,0.45) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.9) !important;
}

/* Found words: still readable, but clearly completed */
.ws-word.is-found{
  opacity: 1 !important;
}

.ws-word.is-found .ws-word-text{
  color: rgba(190, 255, 215, 0.95) !important;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.ws-word.is-found .ws-word-check{
  background: rgba(80, 255, 130, 0.25) !important;
  border-color: rgba(80, 255, 130, 0.75) !important;
  color: rgba(190, 255, 215, 1) !important;
}

/* Scrollbar visibility (optional but helpful) */
#htf-ws-words .ws-words-list{
  max-height: 520px;
  overflow: auto;
  padding-right: 10px;
}

#htf-ws-words .ws-words-list::-webkit-scrollbar{
  width: 10px;
}

#htf-ws-words .ws-words-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
}

#htf-ws-words .ws-words-list::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}
/* =====================================================
   WORD LIST PANEL – HARD VISIBILITY OVERRIDE
   Fixes Elementor / theme opacity inheritance
   ===================================================== */

/* Kill inherited opacity on the right panel */
.ws-words,
#htf-ws-words,
#htf-ws-words * {
  opacity: 1 !important;
  filter: none !important;
}

/* Brighten the right panel container */
.ws-words {
  background: rgba(30, 32, 40, 0.98) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Title: "Words to find:" */
.ws-words-title {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* Each word row */
.ws-word {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}

/* Word text */
.ws-word-text {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Checkbox square */
.ws-word-check {
  background: rgba(0,0,0,0.6) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  color: #ffffff !important;
}

/* FOUND words — still readable */
.ws-word.is-found {
  background: rgba(60, 200, 120, 0.35) !important;
  border-color: rgba(60, 255, 160, 0.8) !important;
}

.ws-word.is-found .ws-word-text {
  color: #d7ffe8 !important;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* Scrollbar visibility */
#htf-ws-words .ws-words-list {
  max-height: 520px;
  overflow-y: auto;
}

#htf-ws-words .ws-words-list::-webkit-scrollbar {
  width: 10px;
}

#htf-ws-words .ws-words-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 8px;
}
