/* ==============================
   5 Letter Words - Main Styles
   ============================== */

:root {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --primary-dark: #3730A3;
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --green: #22C55E;
  --green-light: #BBF7D0;
  --yellow: #EAB308;
  --yellow-light: #FEF08A;
  --red: #EF4444;
  --gray: #94A3B8;
  --gray-light: #F1F5F9;
  --gray-dark: #64748B;
  --text: #1E293B;
  --text-light: #64748B;
  --bg: #FAFBFF;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(79,70,229,0.08);
  --shadow-lg: 0 12px 48px rgba(79,70,229,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Fredoka One', cursive;
  --font-heading: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
code { background: var(--gray-light); padding: 2px 8px; border-radius: 4px; font-size: .9em; color: var(--primary); }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  transition: all .25s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; box-shadow: 0 4px 20px rgba(79,70,229,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,70,229,.45); }
.btn-secondary {
  background: white; color: var(--primary);
  border: 2.5px solid var(--primary-light);
}
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-ghost { background: var(--gray-light); color: var(--text-light); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 8px 18px; font-size: .88rem; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { color: var(--text); margin-bottom: 12px; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-tag {
  display: inline-block; background: linear-gradient(135deg,#EEF2FF,#E0E7FF);
  color: var(--primary); padding: 6px 18px; border-radius: 50px;
  font-size: .85rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px;
}

/* ============================
   HEADER
   ============================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 16px rgba(79,70,229,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: white; font-size: 1.3rem; font-weight: 900;
}
.logo-text { font-family: var(--font-display); font-size: 1.35rem; color: var(--primary); }
.logo-text span { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .9rem;
  color: var(--text-light); transition: all .2s;
}
.nav-link:hover, .nav-link.active { background: var(--gray-light); color: var(--primary); }

.nav-cta {
  background: var(--primary); color: white; padding: 8px 20px;
  border-radius: 50px; font-weight: 700; font-size: .9rem; transition: all .2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border: none; background: none;
}
.hamburger span {
  display: block; width: 22px; height: 2.5px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: white; border-bottom: 1.5px solid var(--border);
  padding: 16px 20px; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 12px 16px; }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #EEF2FF 0%, #FFF7ED 50%, #F0FDF4 100%);
  padding: 80px 0 90px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%; opacity: .15;
  animation: floatShape 8s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -150px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 250px; height: 250px; background: var(--accent); bottom: -80px; left: -60px; animation-delay: 2s; }
.shape-3 { width: 180px; height: 180px; background: var(--green); top: 50%; left: 5%; animation-delay: 4s; }
.shape-4 { width: 120px; height: 120px; background: var(--red); bottom: 20%; right: 10%; animation-delay: 6s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

.floating-letters { position: absolute; inset: 0; }
.float-letter {
  position: absolute; font-family: var(--font-display);
  color: var(--primary); opacity: .06; font-size: 4rem;
  animation: floatLetter 10s ease-in-out infinite;
  user-select: none;
}
@keyframes floatLetter {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content { position: relative; text-align: center; }
.hero-badge {
  display: inline-block; background: white; border: 2px solid var(--primary-light);
  color: var(--primary); padding: 7px 20px; border-radius: 50px;
  font-size: .9rem; font-weight: 700; margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(79,70,229,.12);
}
.hero-title { color: var(--text); margin-bottom: 20px; }
.hero-title .highlight {
  color: var(--primary); position: relative;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-light); max-width: 560px;
  margin: 0 auto 32px; line-height: 1.7;
}
.hero-subtitle strong { color: var(--text); }

.hero-tiles {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 36px;
}
.tile {
  width: 58px; height: 58px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 1.8rem; color: white; font-weight: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  animation: tileIn .6s ease backwards;
}
.tile-green { background: var(--green); animation-delay: .1s; }
.tile-yellow { background: var(--yellow); animation-delay: .2s; }
.tile-gray { background: var(--gray); animation-delay: .3s; }
@keyframes tileIn {
  from { transform: translateY(20px) scale(.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  background: white; border-radius: var(--radius); padding: 20px 36px;
  box-shadow: var(--shadow); display: inline-flex;
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--primary); }
.stat-label { font-size: .8rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1.5px; height: 40px; background: var(--border); }

/* Animation classes */
.animate-in { opacity: 0; transform: translateY(24px); animation: slideIn .7s ease forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
@keyframes slideIn { to { opacity: 1; transform: translateY(0); } }

/* ============================
   FINDER
   ============================ */
.finder-section { padding: 80px 0; background: white; }

.finder-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1.5px solid var(--border);
  overflow: hidden;
}
.finder-tabs {
  display: flex; background: var(--gray-light); padding: 8px;
  gap: 4px; border-bottom: 1.5px solid var(--border);
}
.tab-btn {
  flex: 1; padding: 10px 20px; border: none; background: none;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  cursor: pointer; border-radius: 8px; color: var(--text-light); transition: all .2s;
}
.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tab-btn:hover:not(.active) { background: rgba(255,255,255,.6); color: var(--text); }

.tab-content { display: none; padding: 32px; }
.tab-content.active { display: block; }

.finder-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 24px;
}
.finder-field label {
  display: block; font-weight: 700; font-size: .85rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.finder-field input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem;
  color: var(--text); transition: all .2s; background: var(--gray-light);
}
.finder-field input:focus {
  outline: none; border-color: var(--primary-light);
  background: white; box-shadow: 0 0 0 4px rgba(79,70,229,.08);
}

.pattern-hint { color: var(--text-light); font-size: .9rem; margin-bottom: 20px; }
.pattern-boxes { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.pattern-box {
  width: 72px; height: 72px; border: 2.5px solid var(--border); border-radius: 12px;
  text-align: center; font-family: var(--font-display); font-size: 2rem;
  font-weight: 900; color: var(--primary); text-transform: uppercase;
  transition: all .2s; background: var(--gray-light);
}
.pattern-box:focus {
  outline: none; border-color: var(--primary); background: white;
  box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

/* Wordle Helper */
.wordle-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; align-items: center; }
.wordle-row { display: flex; gap: 8px; }
.wordle-cell {
  width: 52px; height: 52px; border: 2.5px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; color: white;
  cursor: pointer; transition: all .2s; font-weight: 900; text-transform: uppercase;
  background: var(--gray-light); color: var(--text);
}
.wordle-cell.state-green { background: var(--green); border-color: var(--green); color: white; }
.wordle-cell.state-yellow { background: var(--yellow); border-color: var(--yellow); color: white; }
.wordle-cell.state-gray { background: var(--gray); border-color: var(--gray); color: white; }
.wordle-cell input {
  width: 100%; height: 100%; border: none; background: none; text-align: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  text-transform: uppercase; cursor: pointer; color: inherit;
}
.wordle-cell input:focus { outline: none; }

.wl-green { color: var(--green); font-weight: 700; }
.wl-yellow { color: var(--yellow); font-weight: 700; }
.wl-gray { color: var(--gray); font-weight: 700; }

.finder-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Results */
.results-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-top: 1.5px solid var(--border);
  background: var(--gray-light); gap: 16px; flex-wrap: wrap;
}
.results-info { font-weight: 700; color: var(--text); }
.results-info span { color: var(--primary); }
.sort-controls { display: flex; align-items: center; gap: 10px; }
.sort-controls label { font-weight: 600; color: var(--text-light); font-size: .9rem; }
.sort-controls select {
  padding: 6px 12px; border: 2px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: .9rem; background: white; cursor: pointer;
}

.results-container { padding: 24px 32px; min-height: 160px; }
.results-placeholder { text-align: center; padding: 40px 20px; color: var(--text-light); }
.placeholder-icon { font-size: 3rem; margin-bottom: 12px; }
.placeholder-sub { font-size: .9rem; margin-top: 8px; }

.words-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.word-chip {
  background: var(--gray-light); border: 2px solid var(--border);
  border-radius: 10px; padding: 8px 12px; text-align: center;
  font-weight: 700; font-size: .95rem; color: var(--text);
  text-transform: uppercase; cursor: pointer; transition: all .2s;
  letter-spacing: .5px;
}
.word-chip:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.word-chip .score { display: block; font-size: .7rem; color: var(--text-light); font-weight: 600; margin-top: 3px; }
.word-chip:hover .score { color: rgba(255,255,255,.7); }

/* ============================
   WORD LISTS
   ============================ */
.word-lists-section { padding: 80px 0; background: linear-gradient(180deg, var(--bg) 0%, white 100%); }

.alpha-grid {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 40px;
}
.alpha-btn {
  width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--border);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 900;
  cursor: pointer; transition: all .2s; background: white; color: var(--text);
  text-transform: uppercase;
}
.alpha-btn:hover, .alpha-btn.active {
  background: var(--primary); color: white; border-color: var(--primary);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.letter-words-display {
  background: white; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1.5px solid var(--border); min-height: 100px;
}
.letter-display-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.letter-display-badge {
  width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2rem; color: white;
}
.letter-display-info h3 { margin-bottom: 4px; }
.letter-display-info p { color: var(--text-light); font-size: .9rem; }

/* ============================
   COMMON WORDS
   ============================ */
.common-words-section { padding: 80px 0; background: white; }

.word-category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.cat-btn {
  padding: 9px 22px; border: 2px solid var(--border); border-radius: 50px;
  font-family: var(--font-body); font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: all .2s; background: white; color: var(--text-light);
}
.cat-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.cat-btn:hover:not(.active) { border-color: var(--primary-light); color: var(--primary); }

.word-chips-container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============================
   SCRABBLE SECTION
   ============================ */
.scrabble-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%);
}
.scrabble-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  margin-bottom: 48px;
}
.scrabble-text { }
.scrabble-text h2 { margin-bottom: 16px; }
.scrabble-text p { color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }

.feature-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.feature-list li { font-weight: 600; color: var(--text); font-size: .95rem; }

.scrabble-filter {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: white; padding: 16px 20px; border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}
.scrabble-filter label { font-weight: 700; font-size: .9rem; color: var(--text-light); }
.scrabble-filter input[type=range] { flex: 1; min-width: 100px; accent-color: var(--accent); }
#minScoreVal { font-weight: 800; color: var(--accent); font-size: 1rem; min-width: 32px; }

.scrabble-board {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.scrabble-tile {
  background: #F59E0B; border-radius: 10px; padding: 12px;
  text-align: center; box-shadow: 0 4px 12px rgba(245,158,11,.25);
  border-bottom: 4px solid #D97706; position: relative; animation: tileIn .5s ease backwards;
}
.scrabble-tile-letter { font-family: var(--font-display); font-size: 1.6rem; color: white; }
.scrabble-tile-pts { position: absolute; bottom: 6px; right: 8px; font-size: .65rem; font-weight: 800; color: rgba(255,255,255,.8); }

.scrabble-results { }

/* ============================
   BY LENGTH
   ============================ */
.by-length-section { padding: 80px 0; background: white; }

.length-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.length-card {
  background: var(--gray-light); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
}
.length-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.length-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); background: white; }
.length-card.featured { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); border-color: var(--primary-light); }
.length-num { font-family: var(--font-display); font-size: 3rem; color: var(--primary); line-height: 1; }
.length-label { font-weight: 700; color: var(--text); margin: 8px 0 4px; }
.length-count { font-size: .85rem; color: var(--text-light); }
.length-badge {
  display: inline-block; background: var(--primary); color: white;
  font-size: .7rem; padding: 2px 10px; border-radius: 50px; margin-top: 8px;
  font-weight: 700;
}

/* ============================
   EDUCATIONAL
   ============================ */
.edu-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #F0FDF4 0%, white 100%);
}
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.edu-card {
  background: white; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1.5px solid var(--border); transition: all .25s;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.edu-icon { font-size: 2.5rem; margin-bottom: 16px; }
.edu-card h3 { margin-bottom: 12px; color: var(--text); }
.edu-card p { color: var(--text-light); font-size: .95rem; margin-bottom: 12px; line-height: 1.7; }
.edu-card ul { display: flex; flex-direction: column; gap: 6px; }
.edu-card ul li { color: var(--text-light); font-size: .92rem; }

/* ============================
   WORD OF THE DAY
   ============================ */
.wotd-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.wotd-card {
  max-width: 600px; margin: 0 auto; text-align: center;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,.2); border-radius: var(--radius);
  padding: 48px 40px;
}
.wotd-label { color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.wotd-word { font-family: var(--font-display); font-size: 4rem; color: white; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 8px; }
.wotd-phonetic { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 8px; }
.wotd-pos {
  display: inline-block; background: var(--accent); color: white;
  padding: 3px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700;
  margin-bottom: 20px; text-transform: uppercase;
}
.wotd-def { color: rgba(255,255,255,.9); font-size: 1.05rem; margin-bottom: 12px; line-height: 1.7; }
.wotd-example { color: rgba(255,255,255,.6); font-style: italic; font-size: .95rem; margin-bottom: 28px; }
.wotd-tiles { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.wotd-tile {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-display); font-size: 1.5rem;
  color: white; text-transform: uppercase; font-weight: 900;
}

/* ============================
   SEO ACCORDION
   ============================ */
.seo-content-section { padding: 80px 0; background: var(--bg); }
.seo-accordion { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.accordion-item {
  background: white; border-radius: var(--radius-sm); border: 2px solid var(--border);
  overflow: hidden; transition: box-shadow .2s;
}
.accordion-item:hover { box-shadow: var(--shadow); }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; user-select: none;
}
.accordion-header h3 { font-size: 1rem; color: var(--text); }
.accordion-icon { font-size: 1.2rem; transition: transform .3s; color: var(--primary); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 24px 24px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body p { color: var(--text-light); line-height: 1.8; margin-bottom: 12px; font-size: .95rem; }
.accordion-body strong { color: var(--text); }
.accordion-body ul { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; list-style: disc; }
.accordion-body ul li { color: var(--text-light); font-size: .93rem; }

/* ============================
   QUICK REFERENCE
   ============================ */
.quick-ref-section { padding: 80px 0; background: white; }
.quick-ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quick-ref-card {
  background: var(--gray-light); border-radius: var(--radius); padding: 28px;
  border: 2px solid var(--border);
}
.quick-ref-card h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.quick-ref-words { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-word {
  background: white; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 5px 12px; font-size: .85rem; font-weight: 700; text-transform: uppercase;
  color: var(--text); transition: all .2s; cursor: pointer; letter-spacing: .5px;
}
.quick-word:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================
   FAQ
   ============================ */
.faq-section { padding: 80px 0; background: var(--bg); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border-radius: var(--radius-sm); border: 2px solid var(--border); overflow: hidden; }
.faq-q {
  padding: 20px 24px; cursor: pointer; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  user-select: none; transition: background .2s;
}
.faq-q:hover { background: var(--gray-light); }
.faq-q span { flex: 1; }
.faq-icon { color: var(--primary); font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 20px; color: var(--text-light); line-height: 1.8; font-size: .95rem; }
.faq-item.open .faq-a { display: block; }

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: linear-gradient(145deg, #1E293B, #0F172A);
  color: rgba(255,255,255,.7); padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-text { color: white; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: white; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: .85rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: white; }
.footer-letter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.footer-letter {
  padding: 4px 10px; background: rgba(255,255,255,.06); border-radius: 6px;
  font-size: .78rem; font-weight: 600; transition: all .2s;
}
.footer-letter:hover { background: var(--primary); color: white; }

/* ============================
   TOAST
   ============================ */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--text); color: white; padding: 14px 22px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.2); z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: all .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .scrabble-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .stat-divider { width: 40px; height: 1.5px; }
  .pattern-boxes { gap: 8px; }
  .pattern-box { width: 54px; height: 54px; font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .finder-grid { grid-template-columns: 1fr; }
  .length-cards { grid-template-columns: repeat(3, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .quick-ref-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero-tiles .tile { width: 44px; height: 44px; font-size: 1.3rem; }
  .tab-btn { font-size: .8rem; padding: 8px 10px; }
  .length-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.no-results { text-align: center; padding: 32px; color: var(--text-light); }
.no-results .no-results-icon { font-size: 2.5rem; margin-bottom: 12px; }
