/* Added comprehensive styling for new sections */
/* Word Generator Theme Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Language Header */
.language-header {
  background: #2c3e50;
  color: white;
  padding: 10px 0;
}

.language-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background: white;
  color: #333;
}

/* Header */
.header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Generator Box */
.generator-box {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.generated-word {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#word-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #0056b3;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.control-group {
  flex: 1;
  min-width: 200px;
}

.control-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
}

.control-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s;
}

.control-group select:focus {
  outline: none;
  border-color: #007bff;
}

.generate-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Recent Words Section */
.recent-words-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.recent-words-section h3 {
  color: #495057;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.recent-words-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recent-word {
  background: #e9ecef;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s;
}

.recent-word:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

/* Quick Categories */
.quick-categories {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.quick-categories h3 {
  color: #495057;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.category-btn {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.category-btn:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.cat-icon {
  font-size: 2rem;
}

.cat-name {
  font-weight: 600;
  color: #495057;
}

/* Content Sections */
.description-section,
.educational-section,
.language-learning-section,
.games-section,
.faq-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.description-section h2,
.educational-section h2,
.language-learning-section h2,
.games-section h2,
.faq-section h2 {
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 2rem;
  text-align: center;
}

.description-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Educational Grid */
.educational-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.educational-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.educational-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.educational-card p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.educational-card ul {
  list-style: none;
  padding-left: 0;
}

.educational-card li {
  padding: 5px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.educational-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* Language Learning Section */
.learning-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.learning-method {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-top: 4px solid #28a745;
}

.learning-method h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.learning-method p {
  color: #555;
  line-height: 1.6;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.game-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid #dc3545;
  transition: transform 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.game-card p {
  color: #555;
  line-height: 1.6;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.faq-item {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #6f42c1;
}

.faq-item h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.faq-item p {
  color: #555;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .control-row {
    flex-direction: column;
  }

  .control-group {
    min-width: auto;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .educational-grid,
  .games-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .learning-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .generator-box,
  .quick-categories,
  .description-section,
  .educational-section,
  .language-learning-section,
  .games-section,
  .faq-section {
    padding: 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}
