/* Jifunze - Custom styles */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.6s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-bounce-gentle { animation: bounce-gentle 2s ease-in-out infinite; }

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Progress bar */
.progress-bar {
    height: 8px;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    transition: width 0.5s ease;
}

/* PIN pad button */
.pin-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pin-btn:hover {
    border-color: #8b5cf6;
    background: #f3f0ff;
    transform: scale(1.05);
}
.pin-btn:active {
    transform: scale(0.95);
    background: #ede9fe;
}

/* Tab component */
.tab-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #6b7280;
}
.tab-btn:hover { background: #f3f4f6; color: #374151; }
.tab-btn.active {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    color: white;
}

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Flash messages auto-hide */
.flash-msg {
    animation: fadeIn 0.3s ease-out;
}

/* Quiz option */
.quiz-option {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.quiz-option:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
}
.quiz-option.selected {
    border-color: #8b5cf6;
    background: #ede9fe;
}
.quiz-option input[type="radio"] {
    accent-color: #8b5cf6;
    width: 18px;
    height: 18px;
}

/* Sticker card */
.sticker-card {
    transition: all 0.3s ease;
}
.sticker-card:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile nav toggle */
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }
