/* ================== ROOT ================== */
.spelling-wrapper,
.spelling-dictionary-wrapper {
  --purple: #a855f7;
  --pink: #f72585;
  --blue: #2563eb;
  --yellow: #facc15;
  --green: #16a34a;
  --red: #dc2626;
  --primary-blue: #3b82f6;
  --light-blue: #60a5fa;
  --dark-blue: #1e40af;
  font-family: var(--body-font);
  color: #111827;
}

.spelling-dictionary-wrapper .spelling-wrapper {
  width: 100%;
}

/* ================== PAGE BACKGROUND ================== */
.spelling-wrapper .container,
.spelling-dictionary-wrapper .container {
  min-height: 100vh;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 25%, #1d4ed8 50%, #3b82f6 75%, #2563eb 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ================== HEADER ================== */
.spelling-wrapper .header,
.spelling-dictionary-wrapper .header {
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 4px solid #3b82f6;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.spelling-wrapper .header h1,
.spelling-dictionary-wrapper .header h1 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spelling-wrapper .back-button,
.spelling-dictionary-wrapper .back-button {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border: 3px solid #2563eb;
  transition: all 0.3s ease;
}

.spelling-wrapper .back-button:hover,
.spelling-dictionary-wrapper .back-button:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

/* ================== MAIN CONTENT ================== */
.spelling-wrapper .main-content,
.spelling-dictionary-wrapper .main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
  width: 100%;
}

/* ================== TABS CARD ================== */
.spelling-wrapper .tabs,
.spelling-dictionary-wrapper .tabs {
  background: white;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  display: flex;
  border-bottom: 4px solid #60a5fa;
  box-shadow: 0 -4px 20px rgba(59, 130, 246, 0.2);
}

.spelling-wrapper .tab,
.spelling-dictionary-wrapper .tab {
  flex: 1;
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  background: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.spelling-wrapper .tab:hover,
.spelling-dictionary-wrapper .tab:hover {
  background: linear-gradient(135deg, #93c5fd, #dbeafe);
  transform: translateY(-2px);
}

.spelling-wrapper .tab.active,
.spelling-dictionary-wrapper .tab.active {
  color: white;
  background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

/* ================== TAB BODY CARD ================== */
.spelling-wrapper .tab-content,
.spelling-dictionary-wrapper .tab-content {
  background: white;
  border-radius: 0 0 32px 32px;
  padding: 32px;
  border: 4px solid #60a5fa;
  border-top: none;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

/* ================== PROGRESS ================== */
.spelling-wrapper .progress,
.spelling-dictionary-wrapper .progress {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 4px solid #60a5fa;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

/* ================== PROGRESS BAR ================== */
.spelling-dictionary-wrapper .progress-bar-container,
.spelling-practice .progress-bar {
  position: relative;
  width: 100%;
  height: 48px;
  background: #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 4px solid #60a5fa;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spelling-dictionary-wrapper .progress-bar-fill,
.spelling-practice .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
  transition: width 0.5s ease;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.spelling-dictionary-wrapper .progress-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  z-index: 1;
}

/* ================== WORD COUNTER ================== */
.spelling-practice .word-counter {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 16px;
  border: 3px solid #60a5fa;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* ================== PRACTICE CARD ================== */
.spelling-practice .practice-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 32px;
  padding: 40px;
  border: 5px solid #60a5fa;
  box-shadow: 0 10px 35px rgba(96, 165, 250, 0.35);
  text-align: center;
}

/* ================== SPELLING PRACTICE COMPONENT ================== */
.spelling-practice {
  width: 100%;
}

/* ================== DICTIONARY TOOLS COMPONENT ================== */
.dictionary-tools {
  width: 100%;
}

/* ================== SPELLING CHALLENGE ================== */
.spelling-wrapper .spelling-challenge,
.spelling-dictionary-wrapper .spelling-challenge {
  margin-top: 24px;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 50%, #60a5fa 100%);
  border: 4px solid #3b82f6;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* ================== LISTEN TO WORD & PLAY AUDIO BUTTON ================== */
.spelling-wrapper .play-button,
.spelling-dictionary-wrapper .play-button,
.spelling-practice .play-audio-button,
.dictionary-tools .play-audio-button,
.word-of-day-card .play-audio-button,
.word-details .play-audio-button {
  margin: 24px auto;
  padding: 20px 40px;
  border-radius: 24px;
  border: 5px solid #1d4ed8;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 240px;
}

.spelling-wrapper .play-button:hover,
.spelling-dictionary-wrapper .play-button:hover,
.spelling-practice .play-audio-button:hover,
.dictionary-tools .play-audio-button:hover,
.word-of-day-card .play-audio-button:hover,
.word-details .play-audio-button:hover {
  transform: scale(1.15) rotate(-3deg);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.8);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #1e40af;
}

.spelling-wrapper .play-button:active,
.spelling-dictionary-wrapper .play-button:active,
.spelling-practice .play-audio-button:active,
.dictionary-tools .play-audio-button:active,
.word-of-day-card .play-audio-button:active,
.word-details .play-audio-button:active {
  transform: scale(1.05);
}

/* ================== SKIP WORD BUTTON ================== */
.spelling-wrapper .skip-button,
.spelling-dictionary-wrapper .skip-button,
.spelling-practice .skip-button {
  margin: 16px 8px;
  padding: 16px 36px;
  border-radius: 22px;
  border: 5px solid #7c3aed;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: white;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.spelling-wrapper .skip-button:hover,
.spelling-dictionary-wrapper .skip-button:hover,
.spelling-practice .skip-button:hover {
  transform: scale(1.12) rotate(2deg);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.7);
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border-color: #6d28d9;
}

.spelling-wrapper .skip-button:active,
.spelling-dictionary-wrapper .skip-button:active,
.spelling-practice .skip-button:active {
  transform: scale(1.02);
}

.spelling-wrapper input[type="text"],
.spelling-dictionary-wrapper input[type="text"],
.spelling-practice .spelling-input {
  width: 100%;
  max-width: 500px;
  padding: 22px;
  font-size: 26px;
  font-weight: 600;
  border-radius: 24px;
  text-align: center;
  border: 5px solid #3b82f6;
  margin: 24px auto;
  background: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  display: block;
}

.spelling-wrapper input[type="text"]:focus,
.spelling-dictionary-wrapper input[type="text"]:focus,
.spelling-practice .spelling-input:focus {
  outline: none;
  border-color: #1d4ed8;
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(29, 78, 216, 0.5);
}

.spelling-wrapper .check-button,
.spelling-wrapper .next-button,
.spelling-dictionary-wrapper .check-button,
.spelling-dictionary-wrapper .next-button,
.spelling-practice .check-button {
  padding: 18px 40px;
  margin: 8px;
  border-radius: 22px;
  border: 5px solid #059669;
  color: white;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #16a34a, #059669);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
  text-transform: uppercase;
  display: inline-block;
}

.spelling-wrapper .check-button:hover,
.spelling-wrapper .next-button:hover,
.spelling-dictionary-wrapper .check-button:hover,
.spelling-dictionary-wrapper .next-button:hover,
.spelling-practice .check-button:hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 8px 30px rgba(22, 163, 74, 0.7);
}

/* ================== BUTTON GROUP ================== */
.spelling-practice .button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ================== HINT AND CORRECT WORD SECTIONS ================== */
.spelling-practice .hint-section,
.spelling-practice .correct-word {
  padding: 20px;
  border-radius: 20px;
  margin: 20px auto;
  max-width: 500px;
  font-size: 18px;
  font-weight: 600;
  border: 4px solid;
}

.spelling-practice .hint-section {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #60a5fa;
  color: #1e3a8a;
}

.spelling-practice .correct-word {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
  color: #065f46;
  font-size: 22px;
}

.spelling-practice .correct-word.incorrect {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border-color: #dc2626;
  color: #7f1d1d;
}

/* ================== FEEDBACK ================== */
.spelling-wrapper .feedback,
.spelling-dictionary-wrapper .feedback,
.spelling-practice .feedback {
  margin-top: 24px;
  padding: 16px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 800;
  display: inline-block;
}

.spelling-wrapper .correct,
.spelling-wrapper .incorrect,
.spelling-dictionary-wrapper .correct,
.spelling-dictionary-wrapper .incorrect,
.spelling-practice .feedback.correct,
.spelling-practice .feedback.incorrect {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 16px 32px;
  border-radius: 24px;
  border: 4px solid;
}

.spelling-wrapper .correct,
.spelling-dictionary-wrapper .correct,
.spelling-practice .feedback.correct {
  color: #16a34a;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
  animation: bounce 0.5s ease;
}

.spelling-wrapper .incorrect,
.spelling-dictionary-wrapper .incorrect,
.spelling-practice .feedback.incorrect {
  color: #dc2626;
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border-color: #dc2626;
  animation: shake 0.5s ease;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.spelling-wrapper .definition,
.spelling-dictionary-wrapper .definition {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  padding: 20px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  text-align: center;
  margin: 16px 0;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

/* ================== SCORE DISPLAY ================== */
.spelling-practice .score-display {
  margin-top: 24px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 20px;
  border: 4px solid #2563eb;
  font-size: 20px;
  font-weight: 800;
  color: white;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

/* ================== STATS ================== */
.spelling-wrapper .stats,
.spelling-dictionary-wrapper .stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spelling-wrapper .stats>div,
.spelling-dictionary-wrapper .stats>div {
  background: white;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border: 4px solid #60a5fa;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.25);
  transition: all 0.3s ease;
}

.spelling-wrapper .stats>div:hover,
.spelling-dictionary-wrapper .stats>div:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

/* ================== WORD OF THE DAY CARD ================== */
.dictionary-tools .word-of-day-card {
  background: linear-gradient(135deg, #dbeafe, #93c5fd, #60a5fa);
  border: 5px solid #3b82f6;
  border-radius: 28px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.dictionary-tools .word-of-day-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dictionary-tools .wod-content h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1e40af;
  margin: 16px 0;
  text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.2);
}

.dictionary-tools .wod-content p {
  font-size: 18px;
  color: #1e3a8a;
  margin: 12px 0;
  font-weight: 600;
}

/* ================== DICTIONARY SEARCH ================== */
.dictionary-tools .dictionary-search {
  margin-bottom: 32px;
}

.dictionary-tools .dictionary-search h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dictionary-tools .search-input {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 24px;
  border: 5px solid #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.dictionary-tools .search-input:focus {
  outline: none;
  border-color: #1d4ed8;
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(29, 78, 216, 0.5);
}

/* ================== WORDS LIST CONTAINER ================== */
.dictionary-tools .words-list-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* ================== AVAILABLE WORDS LIST (IMPROVED FOR KIDS) ================== */
.dictionary-tools .words-list {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 28px;
  padding: 24px;
  border: 5px solid #60a5fa;
  box-shadow: 0 8px 30px rgba(96, 165, 250, 0.4);
}

.dictionary-tools .words-list h4 {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px;
  background: white;
  border-radius: 16px;
  border: 3px solid #60a5fa;
}

.dictionary-tools .word-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
}

.dictionary-tools .word-item {
  padding: 14px 24px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  color: #1e40af;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  text-transform: capitalize;
}

.dictionary-tools .word-item:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  border-color: #2563eb;
  transform: translateY(-4px) scale(1.1) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.dictionary-tools .word-item.selected {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-color: #1d4ed8;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.dictionary-tools .no-results {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
}

/* ================== WORD DETAILS (DICTIONARY) ================== */
.dictionary-tools .word-details {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 28px;
  padding: 32px;
  border: 5px solid #60a5fa;
  box-shadow: 0 10px 35px rgba(96, 165, 250, 0.35);
}

.dictionary-tools .word-details h3 {
  font-size: 42px;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.2);
  letter-spacing: 2px;
}

.dictionary-tools .detail-section {
  background: white;
  padding: 20px;
  border-radius: 20px;
  margin: 16px 0;
  border: 4px solid #60a5fa;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

.dictionary-tools .detail-section strong {
  font-size: 16px;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.dictionary-tools .detail-section p {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.6;
}

/* ================== DEFINE TAB ================== */
.spelling-wrapper .search-box,
.spelling-dictionary-wrapper .search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.spelling-wrapper .search-box input,
.spelling-dictionary-wrapper .search-box input {
  flex: 1;
  padding: 16px;
  border-radius: 20px;
  border: 4px solid #3b82f6;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.spelling-wrapper .search-box input:focus,
.spelling-dictionary-wrapper .search-box input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.4);
}

.spelling-wrapper .search-box button,
.spelling-dictionary-wrapper .search-box button {
  padding: 16px 24px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.spelling-wrapper .search-box button:hover,
.spelling-dictionary-wrapper .search-box button:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.7);
}

/* ================== DEFINITION RESULT (DICTIONARY PAGE WORDS) ================== */
.spelling-wrapper .definition-result,
.spelling-dictionary-wrapper .definition-result {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 32px;
  padding: 40px;
  border: 5px solid #60a5fa;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(96, 165, 250, 0.35);
}

.spelling-dictionary-wrapper .definition-result h2 {
  font-size: 48px;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.2);
  letter-spacing: 2px;
}

.spelling-dictionary-wrapper .definition-result .word-type {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
  border-radius: 20px;
  display: inline-block;
  border: 3px solid #3b82f6;
}

.spelling-dictionary-wrapper .definition-result .word-definition {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.8;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

.spelling-dictionary-wrapper .definition-result .word-example {
  font-size: 18px;
  font-style: italic;
  color: #1e3a8a;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 16px;
  border: 3px solid #60a5fa;
}

/* ================== PLACEHOLDER ================== */
.spelling-wrapper .definition-placeholder,
.spelling-dictionary-wrapper .definition-placeholder {
  padding: 60px;
  text-align: center;
  border-radius: 32px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe, #93c5fd);
  box-shadow: 0 8px 30px rgba(96, 165, 250, 0.25);
  font-size: 18px;
  color: #4b5563;
}

/* ================== SYNONYMS ================== */
.spelling-wrapper .synonyms button {
  padding: 12px 24px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  color: #1e40af;
  margin: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.spelling-wrapper .synonyms button:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  border-color: #2563eb;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 768px) {
  .spelling-dictionary-wrapper .main-content {
    padding: 16px 12px;
  }

  .spelling-dictionary-wrapper .spelling-challenge,
  .spelling-dictionary-wrapper .definition-result {
    padding: 24px;
  }

  .spelling-dictionary-wrapper .word-of-the-day-word {
    font-size: 24px;
  }

  .spelling-dictionary-wrapper .tabs {
    flex-direction: column;
  }

  .spelling-dictionary-wrapper .tab {
    border-radius: 0;
  }

  .spelling-dictionary-wrapper .tab-content {
    border-radius: 0 0 32px 32px;
  }

  .spelling-dictionary-wrapper input[type="text"] {
    max-width: 100%;
  }

  .spelling-dictionary-wrapper .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spelling-wrapper .header,
  .spelling-dictionary-wrapper .header {
    height: 70px;
    padding: 0 16px;
  }

  .spelling-wrapper .header h1,
  .spelling-dictionary-wrapper .header h1 {
    font-size: 20px;
  }

  .spelling-dictionary-wrapper .definition-result h2 {
    font-size: 36px;
  }

  .spelling-dictionary-wrapper .definition-result .word-definition {
    font-size: 18px;
  }

  .dictionary-tools .words-list-container {
    grid-template-columns: 1fr;
  }

  .dictionary-tools .word-items {
    max-height: 300px;
  }

  .spelling-practice .play-audio-button {
    font-size: 18px;
    padding: 16px 32px;
    min-width: 200px;
  }
}

/* ================== RECENT SEARCHES ================== */
.spelling-wrapper .recent-searches,
.spelling-dictionary-wrapper .recent-searches {
  border-top: 4px solid #60a5fa;
  margin-top: 24px;
  padding-top: 24px;
  font-size: 14px;
  text-align: center;
}

.spelling-wrapper .recent-searches button,
.spelling-dictionary-wrapper .recent-search-button {
  padding: 12px 20px;
  border-radius: 16px;
  border: 3px solid #60a5fa;
  background: white;
  margin: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.spelling-wrapper .recent-searches button:hover,
.spelling-dictionary-wrapper .recent-search-button:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* ================== STAR BURST ANIMATION ================== */
.spelling-dictionary-wrapper .star-burst-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1000;
  width: 200px;
  height: 200px;
}

.spelling-dictionary-wrapper .star-burst-star {
  position: absolute;
  font-size: 32px;
  top: 50%;
  left: 50%;
  animation: starBurst 1s ease-out forwards;
  transform-origin: center;
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(1) {
  animation-delay: 0s;
  transform: translate(-50%, -50%) rotate(0deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(2) {
  animation-delay: 0.05s;
  transform: translate(-50%, -50%) rotate(30deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(3) {
  animation-delay: 0.1s;
  transform: translate(-50%, -50%) rotate(60deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(4) {
  animation-delay: 0.15s;
  transform: translate(-50%, -50%) rotate(90deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(5) {
  animation-delay: 0.2s;
  transform: translate(-50%, -50%) rotate(120deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(6) {
  animation-delay: 0.25s;
  transform: translate(-50%, -50%) rotate(150deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(7) {
  animation-delay: 0.3s;
  transform: translate(-50%, -50%) rotate(180deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(8) {
  animation-delay: 0.35s;
  transform: translate(-50%, -50%) rotate(210deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(9) {
  animation-delay: 0.4s;
  transform: translate(-50%, -50%) rotate(240deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(10) {
  animation-delay: 0.45s;
  transform: translate(-50%, -50%) rotate(270deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(11) {
  animation-delay: 0.5s;
  transform: translate(-50%, -50%) rotate(300deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(12) {
  animation-delay: 0.55s;
  transform: translate(-50%, -50%) rotate(330deg);
}

@keyframes starBurst {
  0% {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(0) scale(0);
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ================== WORD OF THE DAY BANNER ================== */
.spelling-dictionary-wrapper .word-of-the-day-banner {
  background: linear-gradient(135deg, #dbeafe, #93c5fd, #60a5fa);
  border: 4px solid #3b82f6;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.spelling-dictionary-wrapper .word-of-the-day-banner:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 35px rgba(59, 130, 246, 0.6);
}

.spelling-dictionary-wrapper .word-of-the-day-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e40af;
  margin-bottom: 8px;
}

.spelling-dictionary-wrapper .word-of-the-day-word {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.spelling-dictionary-wrapper .word-of-the-day-hint {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

/* ================== SYNONYM WEB ================== */
.spelling-dictionary-wrapper .synonym-web {
  margin-top: 20px;
}

.spelling-dictionary-wrapper .synonym-bubble {
  padding: 12px 24px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  color: #1e40af;
  margin: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.spelling-dictionary-wrapper .synonym-bubble:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  border-color: #2563eb;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ================== LEARNING TIPS ================== */
.spelling-wrapper .learning-tips,
.spelling-dictionary-wrapper .learning-tips {
  max-width: 900px;
  margin: 32px auto 0 auto;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, #dbeafe, #93c5fd, #60a5fa);
  border: 4px solid #3b82f6;
  text-align: center;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.spelling-wrapper .learning-tips-title,
.spelling-dictionary-wrapper .learning-tips-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e40af;
  margin-bottom: 16px;
}

.spelling-wrapper .learning-tips ul,
.spelling-dictionary-wrapper .learning-tips ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  display: inline-block;
  text-align: left;
}