@tailwind base;
@tailwind components;
@tailwind utilities;

@import "trix/dist/trix.css";
@import "actiontext.css";

@layer components {
    .btn-primary {
        @apply px-6 py-3 bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 transition;
    }

    .btn-secondary {
        @apply px-6 py-3 bg-gray-100 text-gray-900 font-semibold rounded-lg hover:bg-gray-200 transition;
    }

    .card {
        @apply bg-white rounded-lg shadow-md border border-gray-200;
    }

    .section-title {
        @apply text-4xl font-bold text-gray-900;
    }

    .section-subtitle {
        @apply text-lg text-gray-600;
    }
}

/* Custom styles for Faithsasha Academy */
.font-sans {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.font-serif {
    font-family: 'Merriweather', serif;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 60%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        transform: translateY(0);
    }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

.animate-progress {
    animation: progress 4s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Simli & 3D Avatar Container Styles */
.mascot-container.simli-active .fallback-2d,
.mascot-container.simli-active [data-language-buddy-target="avatar3dCanvas"] {
    display: none !important;
}

.mascot-container.3d-active .fallback-2d {
    display: none !important;
}
