/* Main Styles */
body {
  background-color: var(--color-background);
  color: var(--color-text);
}

/* Generic Section Styling */
section {
  padding: var(--space-7) 0;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

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

/* Animations */
.cherry-blossom {
  position: relative;
  overflow: hidden;
}

.cherry-blossom::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23ffffff20" d="M50 0 C55 25, 75 25, 100 50 C75 75, 55 75, 50 100 C45 75, 25 75, 0 50 C25 25, 45 25, 50 0"/></svg>');
  background-size: 2rem 2rem;
  pointer-events: none;
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.3s ease;
}

.cherry-blossom:hover::after {
  opacity: 0.8;
  animation: blossomFall 7s linear infinite;
}

@keyframes blossomFall {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Chinese Characters */
.chinese-character {
  font-family: var(--font-secondary);
  font-weight: 400;
  margin-left: var(--space-1);
  color: var(--color-primary);
}

/* Generic Grid Layouts */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.four-column-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

/* Success Modal Styles */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.modal-content {
  background-color: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 40rem;
  width: 90%;
}

.modal-content h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.modal-content p {
  margin-bottom: var(--space-3);
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
  .four-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .three-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:.576px) {
  .four-column-grid,
  .three-column-grid {
    grid-template-columns: 1fr;
  }
}