/* Alphabets Styles */
.alphabets {
  max-width: 1200px;
  margin: 20px auto;
  padding: 1.5rem;
}

.filter-controls {
  margin: 1.5rem 0;
  text-align: center;
}

.classification-filter {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.classification-filter label {
  font-weight: 600;
  color: #333;
}

#classification-select {
  padding: 0.5rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  background: white;
  font-size: 1rem;
  color: #333;
}

#classification-select:focus {
  outline: none;
  border-color: #0050ef;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.letter-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.letter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 80, 239, 0.15);
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.letter-chars {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.letter-uc {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0050ef;
  line-height: 1;
}

.letter-lc {
  font-size: 2rem;
  font-weight: 600;
  color: #666;
  line-height: 1;
}

.audio-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-btn:hover {
  background: rgba(0, 80, 239, 0.1);
  transform: scale(1.1);
}

.letter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.letter-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.letter-tag.pronunciation {
  background: rgba(0, 80, 239, 0.1);
  color: #0050ef;
}

.letter-tag.phonetic {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.letter-tag.classification {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.letter-example {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

.example-word {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.example-word strong {
  color: #333;
}

.word-text {
  color: #0050ef;
  font-weight: 600;
  flex: 1;
}

.no-example {
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
}

.letter-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.no-results {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Alphabet Loading Skeleton */
.alphabets-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-filter {
  height: 60px;
  background: #e9ecef;
  border-radius: 8px;
  animation: pulse 1.5s ease-in-out infinite;
  max-width: 400px;
  margin: 0 auto;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skeleton-letter {
  height: 180px;
  background: #e9ecef;
  border-radius: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Ad Containers */
.alphabets-top-ad {
  margin: 1rem 0 1.5rem 0;
}

.alphabets-bottom-ad {
  margin: 1.5rem 0 0.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .alphabets {
    margin: 10px;
    padding: 1rem;
  }
  
  .alphabet-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .letter-card {
    padding: 1.25rem;
  }
  
  .letter-uc {
    font-size: 2rem;
  }
  
  .letter-lc {
    font-size: 1.6rem;
  }
  
  .classification-filter {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .alphabets {
    padding: 0.75rem;
  }
  
  .alphabet-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .letter-card {
    padding: 1rem;
  }
  
  .letter-uc {
    font-size: 1.8rem;
  }
  
  .letter-lc {
    font-size: 1.4rem;
  }
  
  .letter-tags {
    gap: 0.3rem;
  }
  
  .letter-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}