/* Import Google Fonts for Children's Style */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&family=Fredoka+One&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Modern Navbar Styles */

/* Global Font Settings */
* {
    font-family: 'Comic Neue', 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Comic Neue', 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF0F5 50%, #E5F3FF 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', 'Comic Neue', cursive;
    font-weight: 400;
}

.navbar-brand, .brand-text {
    font-family: 'Fredoka One', 'Comic Neue', cursive;
    color: #2c3e50;
}

/* Navbar Container - Combined Modern and Children's Theme */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-image: url(../photo/bg-nav.png) !important;
    background-repeat: repeat-x !important;
    background-color: #89C542 !important;
    height: 250px !important;
    background-size: auto 250px !important;
    background-position: center top !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-modern.scrolled {
    background: rgba(137, 197, 66, 0.98) !important;
    padding: 0.5rem 0;
    height: auto !important;
}

/* Logo/Brand - Enhanced with Modern Effects */
.logo-container {
    position: relative;
    display: inline-block;
}

.navbar-logo {
    height: 250px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-container:hover .navbar-logo {
    transform: scale(1.05);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container:hover .logo-glow {
    opacity: 1;
}

.brand-text {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: 'Fredoka One', 'Comic Neue', cursive;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navigation Links - Combined Modern and Children's Theme */
.navbar-nav {
    gap: 0.5rem;
}

.nav-link-modern {
    position: relative;
    color: #000000 !important;
    font-weight: 500;
    padding: 0.75rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    border: 2px solid transparent;
}

.nav-link-modern:hover {
    color: #FF6B6B !important;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
    border-color: #FF6B6B;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.nav-link-modern.active {
    color: #FF6B6B !important;
    background: rgba(255, 107, 107, 0.15);
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B6B, #FF8E8E);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
    width: 80%;
}

.nav-icon {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.nav-link-modern:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Dropdown Styling - Combined Modern and Children's Theme */
.dropdown-toggle::after {
    display: none;
}

.modern-dropdown {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s ease;
    min-width: 200px;
}

.modern-dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #000000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    border-radius: 15px;
    margin: 2px 0;
}

.modern-dropdown-item:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    transform: translateX(5px) scale(1.02);
}

.dropdown-icon {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.modern-dropdown-item:hover .dropdown-icon {
    opacity: 1;
    transform: translateX(3px) rotate(10deg);
}

/* Search Form - Combined Modern and Children's Theme */
.search-form-modern {
    margin-left: 1rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-modern {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    width: 250px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.1);
}

.search-input-modern:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    outline: none;
    width: 280px;
    transform: scale(1.02);
}

.search-btn-modern {
    position: absolute;
    right: 5px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.search-btn-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Mobile Toggle - Combined Modern and Children's Theme */
.modern-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.modern-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #FF6B6B;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animations */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Combined */
@media (max-width: 991.98px) {
    .navbar-modern {
        padding: 0.5rem 0;
    }
    
    /* Keep logo fixed position on mobile */
    .navbar-brand {
        position: relative;
        z-index: 1030;
        flex-shrink: 0;
    }
    
    .logo-container {
        position: relative;
        z-index: 1030;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        gap: 0.25rem;
    }
    
    .nav-link-modern {
        padding: 1rem !important;
        margin: 0.2rem 0;
        border-radius: 20px;
        margin-bottom: 0.25rem;
    }
    
    .search-container {
        margin-top: 1rem;
        width: 100%;
    }
    
    .search-form-modern {
        margin: 1rem 0 0 0;
    }
    
    .search-input-modern {
        width: 100%;
    }
    
    .search-input-modern:focus {
        width: 100%;
    }
    
    .modern-dropdown {
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: 0;
        border: 2px solid rgba(255, 107, 107, 0.3);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.1);
    }
    
    .modern-dropdown-item {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .search-input-modern {
        font-size: 0.85rem;
    }
}

/* Animation Classes */
.navbar-fade-in {
    animation: navbarFadeIn 0.5s ease-out;
}

.navbar-modern.loaded {
    animation: navbarLoaded 0.3s ease-out;
}

@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navbarLoaded {
    from {
        transform: scale(0.98);
    }
    to {
        transform: scale(1);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .navbar-modern {
        background: rgba(44, 62, 80, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-modern.scrolled {
        background: rgba(44, 62, 80, 0.98);
    }
    
    .nav-link-modern {
        color: #000000 !important;
    }
    
    .nav-link-modern:hover,
    .nav-link-modern.active {
        color: #FF6B6B !important;
        background: rgba(255, 107, 107, 0.2);
    }
    
    .search-input-modern {
        background: rgba(44, 62, 80, 0.8);
        border-color: rgba(255, 107, 107, 0.3);
        color: #000000;
    }
    
    .search-input-modern:focus {
        background: rgba(44, 62, 80, 0.95);
    }
    
    .modern-dropdown {
        background: #2c3e50;
        border-color: rgba(255, 107, 107, 0.3);
    }
    
    .modern-dropdown-item {
        color: #000000;
    }
    
    .modern-dropdown-item:hover {
        background: rgba(255, 107, 107, 0.2);
    }
    
    .hamburger span {
        background: #FF6B6B;
    }
}

/* Children's Style Typography Enhancements */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Fredoka One', 'Comic Neue', cursive;
    font-weight: 400;
}

.lead {
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    font-weight: 400;
}

.btn {
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.form-control {
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.card-title, .card-subtitle {
    font-family: 'Fredoka One', 'Comic Neue', cursive;
}

.card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.text-primary {
    color: #FF6B6B !important;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E) !important;
    border-color: #FF6B6B !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8E8E, #FF6B6B) !important;
    border-color: #FF8E8E !important;
    color: white !important;
}

.btn-outline-primary {
    color: #FF6B6B !important;
    border-color: #FF6B6B !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E) !important;
    border-color: #FF6B6B !important;
    color: white !important;
}

/* Fun decorative elements */
.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E, #FFB3B3, #FF6B6B);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

/* Playful animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.btn:hover {
    animation: bounce 0.6s ease;
}

/* Enhanced search results styling */
.search-result-card {
    border-left: 4px solid #FF6B6B;
    transition: all 0.3s ease;
}

.search-result-card:hover {
    border-left-width: 8px;
    transform: translateX(5px);
}

.search-result-title a {
    color: #FF6B6B;
    font-family: 'Fredoka One', 'Comic Neue', cursive;
}

.search-result-title a:hover {
    color: #FF8E8E;
    text-decoration: none;
}

/* Footer enhancements */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    border-top: 4px solid #FF6B6B;
}

footer h5 {
    font-family: 'Fredoka One', 'Comic Neue', cursive;
    color: #FF6B6B;
}

footer a {
    color: #FFB3B3 !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FF6B6B !important;
    text-decoration: none;
} 