<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Word UI Enhancements - Modern and Realistic Design
   This file contains enhanced styles for the Word UI components
   including Examples tab, Related Phrases, Related Quotes, and pronunciation features
*/

/* Word Actions Bar */
.word-actions-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.bookmark-button {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bookmark-button:hover {
  color: #f59e0b;
}

.bookmark-button.active {
  color: #f59e0b;
}

.bookmark-button .bookmark-count {
  font-size: 0.8rem;
  background-color: #e2e8f0;
  color: #475569;
  border-radius: 10px;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
}

.print-word-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.print-word-button:hover {
  color: #334155;
  background-color: #f1f5f9;
}

.report-word-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.report-word-button:hover {
  color: #ef4444;
  background-color: #f1f5f9;
}

/* ===== Enhanced Audio Buttons ===== */
.audio-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.audio-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -3px -3px 6px rgba(255, 255, 255, 0.8);
  position: relative;
  transition: all 0.3s ease;
}

.dark-mode .audio-icon {
  background: linear-gradient(145deg, #2d3748, #1a202c);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), -3px -3px 6px rgba(255, 255, 255, 0.05);
}

.audio-icon:hover {
  transform: scale(1.05);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15), -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.dark-mode .audio-icon:hover {
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.07);
}

.audio-icon:active {
  transform: scale(0.95);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
}

.dark-mode .audio-icon:active {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}

.audio-icon i {
  font-size: 16px;
  color: #4a5568;
  transition: color 0.3s ease;
}

.dark-mode .audio-icon i {
  color: #e2e8f0;
}

.audio-icon:hover i {
  color: #3182ce;
}

.dark-mode .audio-icon:hover i {
  color: #63b3ed;
}

.accent-label {
  position: absolute;
  bottom: -18px;
  font-size: 10px;
  font-weight: 600;
  color: #718096;
  letter-spacing: 0.5px;
}

.dark-mode .accent-label {
  color: #a0aec0;
}

/* ===== Enhanced Etymology Section ===== */
.word-etymology {
  position: relative;
  background: linear-gradient(135deg, #ffffff, #f7fafc);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dark-mode .word-etymology {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border: 1px solid #4a5568;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.word-etymology .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.word-etymology .section-title i {
  color: #3182ce;
  font-size: 18px;
}

.dark-mode .word-etymology .section-title i {
  color: #63b3ed;
}

.word-etymology .section-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

.dark-mode .word-etymology .section-title h3 {
  color: #e2e8f0;
}

.info-icon {
  margin-left: auto;
  background: none;
  border: none;
  color: #4a5568;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: #f7fafc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .info-icon {
  background-color: #2d3748;
  color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.info-icon:hover {
  background-color: #ebf8ff;
  color: #3182ce;
  transform: scale(1.1);
}

.dark-mode .info-icon:hover {
  background-color: #2c5282;
  color: #63b3ed;
}

.etymology-short {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
}

.dark-mode .etymology-short {
  color: #a0aec0;
}

.etymology-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 0;
  opacity: 0;
}

.word-etymology.expanded .etymology-expanded {
  max-height: 500px;
  margin-top: 20px;
  opacity: 1;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.dark-mode .word-etymology.expanded .etymology-expanded {
  border-top: 1px solid #4a5568;
}

.etymology-expanded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.etymology-expanded-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
}

.dark-mode .etymology-expanded-header h4 {
  color: #e2e8f0;
}

.etymology-tabs {
  display: flex;
  gap: 10px;
}

.etymology-tab {
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-mode .etymology-tab {
  color: #a0aec0;
}

.etymology-tab.active {
  background-color: #ebf8ff;
  color: #3182ce;
  font-weight: 600;
}

.dark-mode .etymology-tab.active {
  background-color: #2c5282;
  color: #63b3ed;
}

.etymology-tab-content {
  display: none;
  padding: 15px;
  background-color: #f7fafc;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  border-left: 3px solid #3182ce;
  animation: fadeIn 0.3s ease;
}

.dark-mode .etymology-tab-content {
  background-color: #2d3748;
  color: #a0aec0;
  border-left: 3px solid #63b3ed;
}

.etymology-tab-content.active {
  display: block;
}

.etymology-tab-content p {
  margin: 0;
}

/* Audio Wave Animation */
.audio-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.audio-wave.playing {
  opacity: 1;
}

.audio-wave span {
  display: inline-block;
  width: 3px;
  height: 10px;
  margin: 0 1px;
  background-color: #3182ce;
  border-radius: 1px;
  animation: wave 1s ease-in-out infinite;
}

.dark-mode .audio-wave span {
  background-color: #63b3ed;
}

.audio-wave span:nth-child(1) {
  animation-delay: 0s;
}

.audio-wave span:nth-child(2) {
  animation-delay: 0.2s;
  height: 15px;
}

.audio-wave span:nth-child(3) {
  animation-delay: 0.4s;
  height: 12px;
}

.audio-wave span:nth-child(4) {
  animation-delay: 0.6s;
  height: 8px;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1);
  }
}

/* US, UK, BN accent specific styles */
.us-accent {
  background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
}

.uk-accent {
  background: linear-gradient(145deg, #f0f8ff, #e6f0f8);
}

.bn-accent {
  background: linear-gradient(145deg, #f8f0ff, #f0e6f8);
}

.dark-mode .us-accent {
  background: linear-gradient(145deg, #2d3748, #1a202c);
}

.dark-mode .uk-accent {
  background: linear-gradient(145deg, #2c3a4f, #1a2234);
}

.dark-mode .bn-accent {
  background: linear-gradient(145deg, #362f4a, #221c34);
}

/* ===== Enhanced Pronunciation Section ===== */
.pronunciation-section {
  position: relative;
  overflow: hidden;
}

.pronunciation-section .section-toggle {
  background: linear-gradient(135deg, #3182ce, #4299e1);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(66, 153, 225, 0.3);
  transition: all 0.3s ease;
}

.dark-mode .pronunciation-section .section-toggle {
  background: linear-gradient(135deg, #2c5282, #2b6cb0);
  box-shadow: 0 4px 10px rgba(43, 108, 176, 0.3);
}

.pronunciation-section .section-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(66, 153, 225, 0.4);
}

.dark-mode .pronunciation-section .section-toggle:hover {
  box-shadow: 0 6px 15px rgba(43, 108, 176, 0.4);
}

.pronunciation-section .section-toggle i {
  transition: transform 0.3s ease;
}

.pronunciation-section.active .section-toggle i {
  transform: rotate(180deg);
}

.pronunciation-container {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border-radius: 15px;
  padding: 25px;
  margin-top: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.dark-mode .pronunciation-container {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border: 1px solid #4a5568;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pronunciation-container::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.dark-mode .pronunciation-container::before {
  background: radial-gradient(circle, rgba(43, 108, 176, 0.1) 0%, rgba(43, 108, 176, 0) 70%);
}

.pronunciation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.pronunciation-header span {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  position: relative;
}

.dark-mode .pronunciation-header span {
  color: #e2e8f0;
}

.pronunciation-header span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3182ce, #4299e1);
  border-radius: 3px;
}

.dark-mode .pronunciation-header span::after {
  background: linear-gradient(90deg, #2c5282, #2b6cb0);
}

.pronunciation-selector {
  position: relative;
}

.accent-selector {
  appearance: none;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 35px 10px 15px;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dark-mode .accent-selector {
  background: #2d3748;
  border: 1px solid #4a5568;
  color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.accent-selector:hover {
  border-color: #3182ce;
}

.dark-mode .accent-selector:hover {
  border-color: #2b6cb0;
}

.accent-selector:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.dark-mode .accent-selector:focus {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.pronunciation-selector::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #4a5568;
  pointer-events: none;
}

.dark-mode .pronunciation-selector::after {
  color: #e2e8f0;
}

.pronunciation-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.sounds-like {
  flex: 1;
  min-width: 250px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.dark-mode .sounds-like {
  background: #2d3748;
  border: 1px solid #4a5568;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sounds-like span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 10px;
}

.dark-mode .sounds-like span {
  color: #a0aec0;
}

.phonetic-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  color: #2d3748;
  background: #f7fafc;
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 3px solid #3182ce;
}

.dark-mode .phonetic-text {
  color: #e2e8f0;
  background: #1a202c;
  border-left: 3px solid #2b6cb0;
}

.play-sound {
  background: none;
  border: none;
  color: #3182ce;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: #ebf8ff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .play-sound {
  background-color: #2c5282;
  color: #63b3ed;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.play-sound:hover {
  transform: scale(1.1);
  background-color: #bee3f8;
}

.dark-mode .play-sound:hover {
  background-color: #2b6cb0;
}

.play-sound:active {
  transform: scale(0.95);
}

.play-sound.active {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(66, 153, 225, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 153, 225, 0);
  }
}

.dark-mode .play-sound.active {
  animation: pulseDark 1s infinite;
}

@keyframes pulseDark {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 108, 176, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(43, 108, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(43, 108, 176, 0);
  }
}

/* Enhanced Face Animation */
.pronunciation-animation {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.face-container {
  width: 180px;
  height: 180px;
  position: relative;
  margin-bottom: 20px;
}

.face {
  width: 100%;
  height: 100%;
  background: #ffdbac;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.dark-mode .face {
  background: #ddbea9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.eyes {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  display: flex;
  justify-content: space-between;
}

.eye {
  width: 30px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .eye {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pupil {
  width: 12px;
  height: 12px;
  background: #2d3748;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dark-mode .pupil {
  background: #1a202c;
}

.nose {
  width: 15px;
  height: 20px;
  background: #f0b27a;
  border-radius: 50%;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dark-mode .nose {
  background: #cd9777;
}

.mouth-container {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  overflow: hidden;
}

.mouth {
  width: 100%;
  height: 100%;
}

.mouth path {
  fill: none;
  stroke: #c0392b;
  stroke-width: 3;
  stroke-linecap: round;
}

.dark-mode .mouth path {
  stroke: #a83232;
}

.mouth-closed {
  opacity: 1;
}

.mouth-mid {
  opacity: 0;
}

.mouth-open {
  opacity: 0;
}

.speaking .mouth-closed {
  animation: mouthClosed 0.6s infinite;
}

.speaking .mouth-mid {
  animation: mouthMid 0.6s infinite;
}

.speaking .mouth-open {
  animation: mouthOpen 0.6s infinite;
}

@keyframes mouthClosed {
  0%,
  100% {
    opacity: 1;
  }
  33.33%,
  66.66% {
    opacity: 0;
  }
}

@keyframes mouthMid {
  0%,
  100% {
    opacity: 0;
  }
  33.33% {
    opacity: 1;
  }
  66.66% {
    opacity: 0;
  }
}

@keyframes mouthOpen {
  0%,
  33.33% {
    opacity: 0;
  }
  66.66%,
  100% {
    opacity: 1;
  }
}

.sound-wave-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.sound-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.sound-wave span {
  display: inline-block;
  width: 4px;
  height: 25px;
  margin: 0 2px;
  background: linear-gradient(to bottom, #3182ce, #4299e1);
  border-radius: 2px;
  animation: soundWave 1.2s ease-in-out infinite;
  transform-origin: bottom;
  opacity: 0;
}

.dark-mode .sound-wave span {
  background: linear-gradient(to bottom, #2c5282, #2b6cb0);
}

.speaking .sound-wave span {
  opacity: 1;
}

.sound-wave span:nth-child(1) {
  animation-delay: 0s;
}

.sound-wave span:nth-child(2) {
  animation-delay: 0.1s;
}

.sound-wave span:nth-child(3) {
  animation-delay: 0.2s;
}

.sound-wave span:nth-child(4) {
  animation-delay: 0.3s;
}

.sound-wave span:nth-child(5) {
  animation-delay: 0.4s;
}

.sound-wave span:nth-child(6) {
  animation-delay: 0.5s;
}

.sound-wave span:nth-child(7) {
  animation-delay: 0.6s;
}

.sound-wave span:nth-child(8) {
  animation-delay: 0.7s;
}

@keyframes soundWave {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

.pronunciation-options {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.dark-mode .pronunciation-options {
  background: #2d3748;
  border: 1px solid #4a5568;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.slow-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slow-option label {
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
}

.dark-mode .slow-option label {
  color: #a0aec0;
}

.slow-pronunciation {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-mode .slow-pronunciation {
  background: #4a5568;
}

.slow-pronunciation::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dark-mode .slow-pronunciation::after {
  background: #e2e8f0;
}

.slow-pronunciation:checked {
  background: #3182ce;
}

.dark-mode .slow-pronunciation:checked {
  background: #2b6cb0;
}

.slow-pronunciation:checked::after {
  left: 22px;
}

.slow-pronunciation:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.dark-mode .slow-pronunciation:focus {
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.repeat-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.repeat-option label {
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
}

.dark-mode .repeat-option label {
  color: #a0aec0;
}

.repeat-pronunciation {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-mode .repeat-pronunciation {
  background: #4a5568;
}

.repeat-pronunciation::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dark-mode .repeat-pronunciation::after {
  background: #e2e8f0;
}

.repeat-pronunciation:checked {
  background: #3182ce;
}

.dark-mode .repeat-pronunciation:checked {
  background: #2b6cb0;
}

.repeat-pronunciation:checked::after {
  left: 22px;
}

.repeat-pronunciation:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.dark-mode .repeat-pronunciation:focus {
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

/* ===== Enhanced Examples Tab ===== */
.examples-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.example-card {
  perspective: 1000px;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.example-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.example-card-inner.flipped {
  transform: rotateY(180deg);
}

.example-card-front,
.example-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.example-card-front {
  background: linear-gradient(135deg, #ffffff, #f7fafc);
  border: 1px solid #e2e8f0;
}

.example-card-back {
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border: 1px solid #e2e8f0;
  transform: rotateY(180deg);
}

.dark-mode .example-card-front {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border: 1px solid #4a5568;
}

.dark-mode .example-card-back {
  background: linear-gradient(135deg, #1a202c, #2d3748);
  border: 1px solid #4a5568;
}

.example-number {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  background-color: #3182ce;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.example-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.example-english,
.example-bangla {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1;
}

.dark-mode .example-english,
.dark-mode .example-bangla {
  color: #e2e8f0;
}

.example-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.example-audio {
  background: none;
  border: none;
  color: #4a5568;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: #f7fafc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .example-audio {
  background-color: #2d3748;
  color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.example-audio:hover {
  background-color: #ebf8ff;
  color: #3182ce;
  transform: scale(1.1);
}

.dark-mode .example-audio:hover {
  background-color: #2c5282;
  color: #63b3ed;
}

.example-flip {
  background: none;
  border: none;
  color: #4a5568;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  background-color: #f7fafc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .example-flip {
  background-color: #2d3748;
  color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.example-flip:hover {
  background-color: #ebf8ff;
  color: #3182ce;
}

.dark-mode .example-flip:hover {
  background-color: #2c5282;
  color: #63b3ed;
}

.example-flip i {
  font-size: 10px;
}

.no-examples {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: #a0aec0;
}

.no-examples i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* ===== Enhanced Common Mistakes Section ===== */
.common-mistakes-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.dark-mode .common-mistakes-section {
  border-top: 1px solid #4a5568;
}

.common-mistakes-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 20px;
  color: #2d3748;
}

.dark-mode .common-mistakes-section h4 {
  color: #e2e8f0;
}

.common-mistakes-section h4 i {
  color: #ed8936;
}

.mistakes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.mistake-card {
  background: linear-gradient(135deg, #ffffff, #f7fafc);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.dark-mode .mistake-card {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border: 1px solid #4a5568;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mistake-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dark-mode .mistake-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mistake-header {
  background-color: #f7fafc;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.dark-mode .mistake-header {
  background-color: #2d3748;
  border-bottom: 1px solid #4a5568;
}

.mistake-number {
  width: 24px;
  height: 24px;
  background-color: #ed8936;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.mistake-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #4a5568;
}

.dark-mode .mistake-header h5 {
  color: #e2e8f0;
}

.mistake-content {
  padding: 15px;
}

.mistake-wrong,
.mistake-correct {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
}

.mistake-wrong {
  background-color: #fff5f5;
  margin-bottom: 10px;
}

.dark-mode .mistake-wrong {
  background-color: #3b2a2a;
}

.mistake-correct {
  background-color: #f0fff4;
}

.dark-mode .mistake-correct {
  background-color: #2a3b2d;
}

.mistake-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mistake-wrong .mistake-icon i {
  color: #e53e3e;
  font-size: 18px;
}

.mistake-correct .mistake-icon i {
  color: #38a169;
  font-size: 18px;
}

.mistake-text {
  flex: 1;
}

.mistake-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2d3748;
}

.dark-mode .mistake-text p {
  color: #e2e8f0;
}

.mistake-arrow {
  display: flex;
  justify-content: center;
  margin: 5px 0;
}

.mistake-arrow i {
  color: #a0aec0;
  font-size: 16px;
}

.dark-mode .mistake-arrow i {
  color: #718096;
}

.mistake-translation {
  padding: 12px 15px;
  background-color: #ebf8ff;
  border-top: 1px solid #bee3f8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-mode .mistake-translation {
  background-color: #2c5282;
  border-top: 1px solid #2b6cb0;
}

.mistake-translation i {
  color: #3182ce;
  font-size: 16px;
}

.dark-mode .mistake-translation i {
  color: #63b3ed;
}

.mistake-translation p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2d3748;
  font-style: italic;
}

.dark-mode .mistake-translation p {
  color: #e2e8f0;
}

.no-mistakes {
  text-align: center;
  padding: 30px 0;
  color: #a0aec0;
}

.no-mistakes i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* ===== Enhanced Related Phrases ===== */
.phrases-container {
  position: relative;
  padding: 20px 0;
  overflow: hidden;
}

.phrases-carousel {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 40px;
}

.phrases-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.phrase-slide {
  min-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.phrase-card {
  background: linear-gradient(135deg, #ffffff, #f7fafc);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  height: 100%;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .phrase-card {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border: 1px solid #4a5568;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.phrase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dark-mode .phrase-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.phrase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.dark-mode .phrase-header {
  border-bottom: 1px solid #4a5568;
}

.phrase-header h5 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.dark-mode .phrase-header h5 {
  color: #e2e8f0;
}

.phrase-audio {
  background: none;
  border: none;
  color: #4a5568;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: #f7fafc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .phrase-audio {
  background-color: #2d3748;
  color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.phrase-audio:hover {
  background-color: #ebf8ff;
  color: #3182ce;
  transform: scale(1.1);
}

.dark-mode .phrase-audio:hover {
  background-color: #2c5282;
  color: #63b3ed;
}

.phrase-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.phrase-meaning,
.phrase-example {
  padding: 10px;
  border-radius: 8px;
  background-color: #f7fafc;
}

.dark-mode .phrase-meaning,
.dark-mode .phrase-example {
  background-color: #2d3748;
}

.phrase-meaning h6,
.phrase-example h6 {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dark-mode .phrase-meaning h6,
.dark-mode .phrase-example h6 {
  color: #a0aec0;
}

.phrase-meaning h6 i,
.phrase-example h6 i {
  font-size: 12px;
  color: #3182ce;
}

.dark-mode .phrase-meaning h6 i,
.dark-mode .phrase-example h6 i {
  color: #63b3ed;
}

.meaning-english,
.example-english {
  font-size: 15px;
  line-height: 1.5;
  color: #2d3748;
  margin-bottom: 5px;
}

.meaning-bangla,
.example-bangla {
  font-size: 15px;
  line-height: 1.5;
  color: #4a5568;
  font-style: italic;
}

.dark-mode .meaning-english,
.dark-mode .example-english {
  color: #e2e8f0;
}

.dark-mode .meaning-bangla,
.dark-mode .example-bangla {
  color: #a0aec0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .carousel-nav {
  background-color: #2d3748;
  border: 1px solid #4a5568;
  color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.prev-phrase {
  left: 0;
}

.next-phrase {
  right: 0;
}

.carousel-nav:hover {
  background-color: #ebf8ff;
  color: #3182ce;
  transform: translateY(-50%) scale(1.1);
}

.dark-mode .carousel-nav:hover {
  background-color: #2c5282;
  color: #63b3ed;
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.phrases-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.phrase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e2e8f0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-mode .phrase-dot {
  background-color: #4a5568;
}

.phrase-dot.active {
  background-color: #3182ce;
  transform: scale(1.2);
}

.dark-mode .phrase-dot.active {
  background-color: #63b3ed;
}

.no-phrases {
  text-align: center;
  padding: 40px 0;
  color: #a0aec0;
}

.no-phrases i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* ===== Enhanced Related Quotes ===== */
.quotes-container {
  padding: 20px 0;
}

.quotes-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.quote-item {
  break-inside: avoid;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.quote-item.quote-1 {
  grid-row: span 1;
}

.quote-item.quote-2 {
  grid-row: span 2;
}

.quote-item.quote-3 {
  grid-row: span 1;
}

.quote-inner {
  background: linear-gradient(135deg, #ffffff, #f7fafc);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .quote-inner {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border: 1px solid #4a5568;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quote-item:hover .quote-inner {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dark-mode .quote-item:hover .quote-inner {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.quote-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 24px;
  color: #e2e8f0;
  opacity: 0.5;
  z-index: 1;
}

.dark-mode .quote-icon {
  color: #4a5568;
}

.quote-text {
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  font-style: italic;
}

.dark-mode .quote-text {
  color: #e2e8f0;
}

.quote-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.quote-author {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin: 0;
}

.dark-mode .quote-author {
  color: #a0aec0;
}

.quote-translate-toggle {
  background: none;
  border: none;
  color: #4a5568;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  background-color: #f7fafc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .quote-translate-toggle {
  background-color: #2d3748;
  color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.quote-translate-toggle:hover {
  background-color: #ebf8ff;
  color: #3182ce;
}

.dark-mode .quote-translate-toggle:hover {
  background-color: #2c5282;
  color: #63b3ed;
}

.quote-translation {
  margin-top: 15px;
  padding: 10px;
  background-color: #f7fafc;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #4a5568;
  display: none;
  border-left: 3px solid #3182ce;
}

.dark-mode .quote-translation {
  background-color: #2d3748;
  color: #a0aec0;
  border-left: 3px solid #63b3ed;
}

.quote-item.show-translation .quote-translation {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-quotes {
  text-align: center;
  padding: 40px 0;
  color: #a0aec0;
}

.no-quotes i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .examples-container {
    grid-template-columns: 1fr;
  }

  .quotes-masonry {
    grid-template-columns: 1fr;
  }

  .quote-item.quote-1,
  .quote-item.quote-2,
  .quote-item.quote-3 {
    grid-row: auto;
  }

  .phrase-card {
    padding: 15px;
  }

  .phrase-header h5 {
    font-size: 16px;
  }

  .meaning-english,
  .example-english,
  .meaning-bangla,
  .example-bangla {
    font-size: 14px;
  }

  .audio-icon {
    width: 36px;
    height: 36px;
  }

  .audio-icon i {
    font-size: 14px;
  }

  .accent-label {
    font-size: 9px;
    bottom: -16px;
  }

  .mistakes-container {
    grid-template-columns: 1fr;
  }

  .pronunciation-content {
    flex-direction: column;
  }

  .face-container {
    width: 150px;
    height: 150px;
  }

  .dictionary-word-container {
    padding: 0 15px;
  }

  .word-glass-panel {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .example-card {
    height: 180px;
  }

  .example-english,
  .example-bangla {
    font-size: 14px;
  }

  .example-flip {
    font-size: 10px;
    padding: 6px 8px;
  }

  .phrase-body {
    gap: 10px;
  }

  .phrase-meaning,
  .phrase-example {
    padding: 8px;
  }

  .quote-inner {
    padding: 20px;
  }

  .quote-text {
    font-size: 14px;
  }

  .audio-icon {
    width: 32px;
    height: 32px;
  }

  .mistake-wrong,
  .mistake-correct {
    padding: 8px;
  }

  .mistake-text p {
    font-size: 13px;
  }

  .pronunciation-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .face-container {
    width: 120px;
    height: 120px;
  }

  .dictionary-word-container {
    padding: 0 12px;
  }
}

/* Report Modal */
#report-word-modal .modal-content {
  max-width: 500px;
}

#report-word-form .form-group {
  margin-bottom: 1rem;
}

#report-word-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #334155;
}

#report-word-form select,
#report-word-form input,
#report-word-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

#report-word-form select:focus,
#report-word-form input:focus,
#report-word-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#report-word-form textarea {
  min-height: 120px;
  resize: vertical;
}

#report-word-form button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#report-word-form button:hover {
  background-color: #2563eb;
}

#report-word-form button:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.report-coming-soon {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  color: #64748b;
}

/* Dark Mode Styles */
.dark-mode .bookmark-button {
  color: #94a3b8;
}

.dark-mode .bookmark-button:hover {
  color: #fbbf24;
}

.dark-mode .bookmark-button.active {
  color: #fbbf24;
}

.dark-mode .bookmark-button .bookmark-count {
  background-color: #334155;
  color: #e2e8f0;
}

.dark-mode .print-word-button,
.dark-mode .report-word-button {
  color: #94a3b8;
}

.dark-mode .print-word-button:hover {
  color: #e2e8f0;
  background-color: #334155;
}

.dark-mode .report-word-button:hover {
  color: #f87171;
  background-color: #334155;
}

.dark-mode #report-word-form label {
  color: #e2e8f0;
}

.dark-mode #report-word-form select,
.dark-mode #report-word-form input,
.dark-mode #report-word-form textarea {
  background-color: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

.dark-mode #report-word-form select:focus,
.dark-mode #report-word-form input:focus,
.dark-mode #report-word-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Responsive Styles */
@media (max-width: 640px) {
  .word-actions-bar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .print-word-button,
  .report-word-button {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

/* ===== Typography Enhancements ===== */
.dictionary-word-container {
  font-feature-settings: "kern", "liga", "clig", "calt";
  text-rendering: optimizeLegibility;
}

.word-title {
  letter-spacing: -0.02em;
  font-feature-settings: "ss01", "ss02";
}

.meaning-english,
.example-english,
.phrase-english {
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.meaning-bangla,
.example-bangla,
.phrase-bangla {
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.etymology-short {
  font-size: 16px;
  line-height: 1.8;
}

/* ===== Touch-Friendly Enhancements ===== */
@media (max-width: 768px) {
  /* Larger touch targets */
  .audio-btn,
  .example-audio,
  .phrase-audio,
  .play-sound,
  .example-flip,
  .quote-translate-toggle,
  .carousel-nav {
    min-width: 44px;
    min-height: 44px;
  }

  .tab-button {
    padding: 12px 16px;
    margin-bottom: 5px;
  }

  /* Improved spacing for touch */
  .word-actions-bar {
    gap: 15px;
    margin-bottom: 1.5rem;
  }

  .example-actions {
    gap: 12px;
  }

  /* Swipe indicator for examples */
  .examples-container::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background-color: #e2e8f0;
    border-radius: 5px;
    opacity: 0.7;
  }

  .dark-mode .examples-container::after {
    background-color: #4a5568;
  }

  /* Enhanced scrolling for tabs */
  .tab-buttons {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .tab-buttons::-webkit-scrollbar {
    display: none;
  }
}

/* ===== Dynamic Word Image Enhancements ===== */
.word-visualization {
  margin-bottom: 2rem;
}

.word-image-container {
  transition: transform 0.3s ease;
}

.word-image-card {
  aspect-ratio: 1.6 / 1;
  height: auto;
  min-height: 300px;
  max-height: 400px;
}

@media (max-width: 768px) {
  .word-image-card {
    min-height: 250px;
  }

  .english-word {
    font-size: 32px;
    margin-bottom: 8px;
  }

  #bangla-word {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .word-image-divider {
    margin-bottom: 15px;
  }

  .english-meaning {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .bangla-meaning {
    font-size: 14px;
  }

  .image-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .download-image-btn,
  .share-button {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    font-size: 14px;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .word-image-card {
    min-height: 220px;
  }

  .word-image-header {
    padding: 12px;
  }

  .word-image-content {
    padding: 15px 12px;
  }

  .english-word {
    font-size: 24px;
  }

  #bangla-word {
    font-size: 22px;
  }

  .english-meaning {
    font-size: 14px;
  }

  .bangla-meaning {
    font-size: 13px;
  }

  .word-image-footer {
    padding: 8px 12px;
  }

  .website-url {
    font-size: 12px;
  }
}

/* Add this to the existing CSS file, after the "Image Actions" section */

/* Fix for share button in Word Visualization */
.image-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  position: relative;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.download-image-btn,
.share-button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  min-width: 140px; /* Ensure minimum width */
  white-space: nowrap; /* Prevent text wrapping inside button */
}

.share-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  display: none;
  z-index: 100;
  width: 180px;
  animation: fadeIn 0.3s ease;
}

/* Fix for social share buttons consistency across devices */
.social-share-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}

.social-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 120px;
  flex: 1;
  max-width: 180px;
}

/* Ensure consistent display on all device sizes */
@media (max-width: 768px) {
  .social-share-container {
    justify-content: center;
    padding: 0 10px;
  }

  .social-share-button {
    min-width: 100px;
    padding: 10px;
    flex-basis: calc(50% - 10px);
    justify-content: center;
  }

  .social-share-button i {
    margin-right: 5px;
  }

  /* Fix for Word Visualization share button */
  .image-actions {
    flex-direction: row; /* Override the column layout for image actions */
    justify-content: center;
    width: 100%;
  }

  .download-image-btn,
  .share-button {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    justify-content: center;
  }

  .share-options {
    width: 180px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .social-share-button {
    flex-basis: 100%;
    max-width: none;
  }
}

/* ===== Accessibility Improvements ===== */
.audio-btn:focus,
.example-audio:focus,
.phrase-audio:focus,
.play-sound:focus,
.example-flip:focus,
.tab-button:focus,
.section-toggle:focus,
.carousel-nav:focus {
  outline: 2px solid #3182ce;
  outline-offset: 2px;
}

.dark-mode .audio-btn:focus,
.dark-mode .example-audio:focus,
.dark-mode .phrase-audio:focus,
.dark-mode .play-sound:focus,
.dark-mode .example-flip:focus,
.dark-mode .tab-button:focus,
.dark-mode .section-toggle:focus,
.dark-mode .carousel-nav:focus {
  outline-color: #63b3ed;
}

/* Keyboard navigation indicator */
.keyboard-user *:focus {
  outline: 2px solid #3182ce !important;
  outline-offset: 2px !important;
}

.dark-mode.keyboard-user *:focus {
  outline-color: #63b3ed !important;
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 15px 20px;
  background-color: #ffffff;
  color: #3182ce;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .skip-to-content:focus {
  background-color: #2d3748;
  color: #63b3ed;
}

/* ===== Performance Optimizations ===== */
.word-image-card,
.example-card,
.phrase-card,
.quote-inner,
.mistake-card {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .word-image-card:hover,
  .example-card:hover,
  .phrase-card:hover,
  .quote-inner:hover,
  .mistake-card:hover {
    transform: none !important;
  }
}

/* Add JavaScript to detect keyboard users */
/* 
document.body.addEventListener('keydown', function(e) {
  if (e.key === 'Tab') {
    document.body.classList.add('keyboard-user');
  }
});

document.body.addEventListener('mousedown', function() {
  document.body.classList.remove('keyboard-user');
});
*/
</pre></body></html>