/* Import Google Fonts for Japanese text */

/* Card hover effects */
.section-card {
  transition: box-shadow 0.3s;
}

.section-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Annotation cards */
.grammar-annotation,
.word-annotation {
  transition: all 0.2s;
}

.grammar-annotation:hover {
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.word-annotation:hover {
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

/* Responsive typography */
@media (max-width: 768px) {
  .japanese-text {
    font-size: 1.1rem;
  }

  .story-header {
    padding: 2rem 0;
  }
}

/* Story Cards Animation */
.story-card {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for cards */
.story-card:nth-child(1) {
  animation-delay: 0.05s;
}
.story-card:nth-child(2) {
  animation-delay: 0.1s;
}
.story-card:nth-child(3) {
  animation-delay: 0.15s;
}
.story-card:nth-child(4) {
  animation-delay: 0.2s;
}
.story-card:nth-child(5) {
  animation-delay: 0.25s;
}
.story-card:nth-child(6) {
  animation-delay: 0.3s;
}
.story-card:nth-child(7) {
  animation-delay: 0.35s;
}
.story-card:nth-child(8) {
  animation-delay: 0.4s;
}

/* Image loading effect */
.card-img-top {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-img-top.loaded {
  opacity: 1;
}

/* Filter buttons hover */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Premium badge pulse */
.premium-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .stats-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.tag-count {
  font-size: 0.8rem;
  color: #6c757d;
}

.no-results {
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  font-size: 0.9rem;
}

.highlight-match {
  background-color: #fff3cd;
  font-weight: 600;
  padding: 0 2px;
}
