/* Shared styles across all pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.6); }
}

.feature-card {
    animation: float 6s ease-in-out infinite;
}

.feature-card:nth-child(2) {
    animation-delay: 2s;
}

.feature-card:nth-child(3) {
    animation-delay: 4s;
}

/* Interactive elements */
.interactive-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-card:hover {
    transform: scale(1.05);
    animation: pulse-glow 2s infinite;
}

/* Kanji stroke animation */
.kanji-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s ease-in-out infinite;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Loading animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); }
    40% { color: rgba(0,0,0,1); }
    60% { color: rgba(0,0,0,1); }
    80%, 100% { color: rgba(0,0,0,0); }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Progress bar animation */
.progress-fill {
    transition: width 1s ease-in-out;
}

/* Particle animation for correct answers */
@keyframes celebrate {
    0% { transform: scale(0); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ec4899;
    border-radius: 50%;
    animation: celebrate 1s ease-out forwards;
}