/* Custom CSS for Kids Word Learning App */

:root {
    --primary-color: #4C6FFF;
    --secondary-color: #FF6F91;
    --tertiary-color: #7AE582;
    --accent-color: #FFD166;
    --dark-color: #344055;
    --light-color: #F8F9FA;
    --success-color: #5CDB95;
    --warning-color: #FFB347;
    --error-color: #FF6B6B;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* App Header Styles */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), #6A5AFF);
    border-radius: 0 0 25px 25px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

/* Card Styles */
.word-card {
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.word-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3A5BFF;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #FF5A82;
    transform: scale(1.05);
}

/* Bottom Navigation */
.bottom-nav {
    background-color: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: #A0A0A0;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Achievement Badge */
.achievement-badge {
    position: relative;
    display: inline-block;
}

.achievement-badge::after {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animation Classes */
.pop-in {
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fade-in 0.5s ease forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 10px;
    background-color: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Stars rating */
.stars-container {
    display: flex;
}

.star {
    color: #D4D4D4;
    margin-right: 2px;
}

.star.filled {
    color: var(--accent-color);
} 