/* Dictionary Home Plugin Styles */
.dictionary-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Color Variables */
:root {
  --primary-violet: #6f3ce6;
  --primary-green: #47bc57;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Search Section */
.search-section {
  background: linear-gradient(135deg, var(--primary-violet), var(--primary-green));
  border-radius: 16px;
  padding: 40px 20px;
  margin-bottom: 40px;
  text-align: center;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.toggle-btn.active,
.toggle-btn:hover {
  background: white;
  color: var(--primary-violet);
  border-color: white;
}

.search-bar {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 5px;
  box-shadow: var(--shadow);
  align-items: center;
}

#dictionary-search {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 45px;
  outline: none;
}

.mic-btn,
.search-btn {
  background: var(--primary-violet);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.mic-btn:hover,
.search-btn:hover {
  background: var(--primary-green);
  transform: scale(1.05);
}

/* Alphabet Section */
.alphabet-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.alphabet-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.alphabet-tab {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.alphabet-tab.active {
  color: var(--primary-violet);
  border-bottom-color: var(--primary-violet);
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.alphabet-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.alphabet-letter:hover {
  background: var(--primary-violet);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Word of the Day */
.word-of-day-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
}

.word-card {
  background: linear-gradient(135deg, var(--bg-light), white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.word-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-violet);
  margin-bottom: 10px;
}

.word-meaning {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.word-pronunciation {
  font-size: 16px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 15px;
}

.word-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.word-detail {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-green);
}

.detail-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.detail-value {
  color: var(--text-light);
}

.see-full-btn {
  background: var(--primary-violet);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.see-full-btn:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Quick Sections */
.quick-sections {
  margin-bottom: 40px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.quick-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-violet);
}

.quick-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.quick-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-violet);
}

.quick-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* Daily Quiz */
.daily-quiz-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.quiz-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 25px;
}

.quiz-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-option {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-option:hover {
  border-color: var(--primary-violet);
  background: rgba(111, 60, 230, 0.05);
}

.quiz-option.correct {
  border-color: var(--primary-green);
  background: rgba(71, 188, 87, 0.1);
}

.quiz-option.incorrect {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
}

.quiz-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.quiz-btn {
  background: var(--primary-violet);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quiz-btn:hover {
  background: var(--primary-green);
}

.quiz-btn.secondary {
  background: var(--text-light);
}

/* Tools Section */
.tools-section {
  margin-bottom: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.tool-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.15);
}

.tool-icon {
  font-size: 24px;
}

/* Blog Section */
.blog-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

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

.blog-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.blog-card:hover {
  border-color: var(--primary-violet);
  transform: translateY(-2px);
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-violet);
}

.blog-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.loading {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dictionary-home {
    padding: 15px;
  }

  .search-section {
    padding: 30px 15px;
  }

  .search-toggle {
    flex-direction: column;
    align-items: center;
  }

  .toggle-btn {
    width: 100%;
    max-width: 200px;
  }

  .alphabet-grid {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  }

  .alphabet-letter {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .word-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 20px;
  }

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

  .alphabet-section,
  .word-of-day-section,
  .daily-quiz-section,
  .blog-section {
    padding: 20px;
  }
}
