/* Kids-specific CSS for AI Tools Website */

:root {
    --kids-primary: #2c5282;
    --kids-secondary: #4299e1;
    --kids-accent: #3182ce;
    --kids-beige: #f7fafc;
    --kids-light-beige: #edf2f7;
    --kids-cream: #ffffff;
    --kids-blue-dark: #1a365d;
    --kids-blue-light: #bee3f8;
    --kids-gray: #718096;
    --kids-gray-light: #e2e8f0;
}

/* Kids Body Background */
.kids-body {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 25%, #4299e1 50%, #edf2f7 75%, #f7fafc 100%);
    min-height: 100vh;
}

/* Kids Hero Section - Fun & Cartoonish with Kids Background */
.kids-hero {
    position: relative;
    background:
        /* Light beige overlay to let funky image show through */
        linear-gradient(135deg, rgba(245, 245, 220, 0.5) 0%, rgba(255, 228, 181, 0.5) 25%, rgba(255, 239, 213, 0.5) 50%, rgba(255, 248, 220, 0.5) 75%, rgba(245, 245, 220, 0.5) 100%),
        /* Kids-friendly background image */
        url('https://as2.ftcdn.net/jpg/07/50/16/49/1000_F_750164994_CHYEOo3AAFkKOdqXDUDNOhXuDLP4jViJ.jpg') center/cover;
    background-size:
        100% 100%,
        cover;
    background-position:
        0 0,
        center center;
    padding: 4rem 0;
    overflow: hidden;
    min-height: 70vh;
}

.kids-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.kids-hero .container-fluid {
    position: relative;
    z-index: 3;
}

/* Remove floating icons */
.kids-hero::before {
    display: none;
}

/* Removed floatCartoonElements animation - no longer needed */

/* Removed .kids-background - using simplified cartoon image background */

@keyframes kidsGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.kids-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow:
        2px 2px 0px #FF6B6B,
        4px 4px 0px #4ECDC4,
        3px 3px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Fun cartoon text effect */
.kids-title::before {
    content: "AI Adventures for Kids! 🚀";
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: -1;
    color: #4ECDC4;
    text-shadow: none;
}

.kids-stat {
    color: #2c5aa0;
    font-weight: 800;
    font-size: 2rem;
    text-shadow:
        2px 2px 0px #FF6B6B,
        3px 3px 10px rgba(0,0,0,0.3);
    display: block;
    line-height: 1;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

/* Enhanced text readability for hero section */
.kids-hero .hero-content {
    z-index: 3;
    position: relative;
}

.kids-hero .hero-subtitle {
    color: #FFFFFF;
    text-shadow:
        1px 1px 0px #4A90E2,
        2px 2px 8px rgba(0,0,0,0.5);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(3px);
}

.kids-hero .stat-label {
    color: #2c5aa0;
    text-shadow:
        1px 1px 0px #4A90E2,
        2px 2px 6px rgba(0,0,0,0.3);
    font-weight: 600;
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.kids-hero .hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    z-index: 3;
    position: relative;
}

.kids-hero .stat-item {
    text-align: center;
    background: rgba(245, 245, 220, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    border: 3px solid #FF6B6B;
    transform: none;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.kids-hero .stat-item::before {
    content: '✨';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.kids-hero .stat-item:nth-child(2) {
    border-color: #4ECDC4;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.kids-hero .stat-item:nth-child(2)::before {
    content: '🌟';
}

.kids-hero .stat-item:nth-child(3) {
    border-color: #45B7D1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.kids-hero .stat-item:nth-child(3)::before {
    content: '🎈';
}

/* Kids Cards */
.kids-card {
    border: 2px solid var(--kids-light-beige);
    background: var(--kids-cream);
    box-shadow: 0 2px 8px rgba(247, 250, 252, 0.6);
}

.kids-card:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(237, 242, 247, 0.8);
}

/* Kids Tool Cards - Beige Style */
.kids-tool-card {
    background: #F5F5DC;
    border: 1px solid #E6E6C7;
    border-radius: 12px;
    box-shadow: none;
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #2c5aa0;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

/* Remove shimmer effect for cleaner look */
.kids-tool-card::before {
    display: none;
}

.kids-tool-card:hover::before {
    display: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.kids-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: #FFF8DC;
    border-color: #2c5aa0;
}

.kids-tool-card:hover .card-title {
    color: var(--kids-primary);
}

/* Kids Tool Card Text Styling */
.kids-tool-card .card-title {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.kids-tool-card .card-text {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.kids-tool-card .card-body {
    color: #1a202c;
}

/* Additional text elements in cards */
.kids-tool-card h5,
.kids-tool-card h6,
.kids-tool-card p,
.kids-tool-card span:not(.kids-category):not(.age-badge):not(.difficulty-badge) {
    color: var(--kids-blue-dark);
}

.kids-tool-card .text-muted {
    color: var(--kids-gray) !important;
}

/* Ensure all card text is visible */
.kids-tool-card * {
    color: inherit;
}

/* Specific styling for template elements */
.kids-tool-card .tool-category {
    color: white !important;
}

.kids-tool-card .card-title {
    color: #1a202c !important;
    font-weight: 700 !important;
}

.kids-tool-card .card-text {
    color: #4a5568 !important;
}

.kids-tool-card .age-info,
.kids-tool-card .difficulty-info {
    color: #4a5568 !important;
}

/* Override any inherited dark colors */
.kids-body .tool-card,
.kids-body .kids-tool-card {
    color: #1a202c !important;
}

.kids-body .tool-card .card-body,
.kids-body .kids-tool-card .card-body {
    color: #1a202c !important;
}

.kids-body .tool-card h1,
.kids-body .tool-card h2,
.kids-body .tool-card h3,
.kids-body .tool-card h4,
.kids-body .tool-card h5,
.kids-body .tool-card h6,
.kids-body .kids-tool-card h1,
.kids-body .kids-tool-card h2,
.kids-body .kids-tool-card h3,
.kids-body .kids-tool-card h4,
.kids-body .kids-tool-card h5,
.kids-body .kids-tool-card h6 {
    color: #1a202c !important;
    font-weight: 700 !important;
}

.kids-body .tool-card p,
.kids-body .kids-tool-card p {
    color: #4a5568 !important;
}

/* Kids Tools Grid Background */
.kids-body .tools-grid {
    background: #F5F5DC;
    padding: 1rem;
    border-radius: 12px;
}

.kids-body .container-fluid {
    background: transparent;
}

/* Remove all shadows from grid items */
.kids-body .tool-card,
.kids-body .kids-tool-card,
.kids-body .tool-card:hover,
.kids-body .kids-tool-card:hover {
    box-shadow: none !important;
}

/* Kids Category Badge - Professional Style */
.kids-category {
    background: var(--kids-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Age and Difficulty Badges - Professional Style */
.age-badge, .difficulty-badge {
    position: absolute;
    top: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    z-index: 2;
    background: var(--kids-primary);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px rgba(237, 242, 247, 0.4);
}

.age-badge {
    right: 10px;
}

.difficulty-badge {
    left: 10px;
}

/* Kids Info Section - Clean Style */
.kids-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.age-info, .difficulty-info {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

/* Responsive adjustments for kids */
@media (max-width: 768px) {
    .kids-title {
        font-size: 2.5rem;
    }

    .kids-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .age-info, .difficulty-info {
        text-align: center;
    }

    /* Adjust monkey decorations for mobile */
    .monkey-emoji {
        font-size: 2rem;
    }

    .monkey-5 {
        font-size: 2.5rem;
    }

    .floating-card.card-4,
    .floating-card.card-5 {
        display: none; /* Hide extra cards on mobile for better layout */
    }

    /* Removed floating decorations */
}

@media (max-width: 576px) {
    .monkey-emoji {
        font-size: 1.5rem;
    }

    .monkey-5 {
        font-size: 2rem;
    }

    /* Removed floating decorations mobile styles */
}

/* Netflix-style animations */
.kids-tool-card {
    animation: fadeInUp 0.6s ease-out;
    will-change: transform;
}

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

/* Stagger animation for kids cards - Netflix style */
.kids-tool-card:nth-child(1) { animation-delay: 0.1s; }
.kids-tool-card:nth-child(2) { animation-delay: 0.15s; }
.kids-tool-card:nth-child(3) { animation-delay: 0.2s; }
.kids-tool-card:nth-child(4) { animation-delay: 0.25s; }
.kids-tool-card:nth-child(5) { animation-delay: 0.3s; }
.kids-tool-card:nth-child(6) { animation-delay: 0.35s; }
.kids-tool-card:nth-child(7) { animation-delay: 0.4s; }
.kids-tool-card:nth-child(8) { animation-delay: 0.45s; }
.kids-tool-card:nth-child(9) { animation-delay: 0.5s; }

/* Removed top and bottom floating decorations */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Add playful hover effects to floating cards */
.kids-cards .floating-card {
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0px #FF6B6B;
    border: 3px solid #4ECDC4;
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(-2deg);
}

.kids-cards .floating-card:nth-child(2) {
    border-color: #FFE4B5;
    box-shadow: 5px 5px 0px #4ECDC4;
    transform: rotate(1deg);
}

.kids-cards .floating-card:nth-child(3) {
    border-color: #FF6B6B;
    box-shadow: 5px 5px 0px #45B7D1;
    transform: rotate(-1deg);
}

.kids-cards .floating-card:hover {
    transform: translateY(-50%) scale(1.1) rotate(0deg);
    filter: brightness(1.1);
    box-shadow: 8px 8px 0px #FF6B6B;
}

.kids-cards .floating-card img {
    border-radius: 12px;
}

.kids-cards .floating-card span {
    color: #FF6B6B;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-shadow: 1px 1px 0px #FFE4B5;
}

/* Removed enhanced background pattern - using simplified cartoon image */

/* Add cartoon background patterns */
.kids-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Fun cartoon shapes */
        radial-gradient(circle at 15% 25%, rgba(255, 107, 107, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 85% 15%, rgba(78, 205, 196, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 25% 75%, rgba(69, 183, 209, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 75% 85%, rgba(255, 217, 61, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(168, 230, 207, 0.2) 0%, transparent 20%),
        /* Cartoon cloud shapes */
        radial-gradient(ellipse 120px 60px at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 100px 50px at 80% 70%, rgba(255, 255, 255, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 80px 40px at 60% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: cartoonShapes 15s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes cartoonShapes {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Removed text and card animations for better readability */

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Removed cartoonBackground animation - using simplified background */

/* Kids Sections Background */
.kids-body .filter-section {
    background: #F5F5DC;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E6E6C7;
}

.kids-body .filter-section h5 {
    color: #2c5aa0;
    font-weight: 600;
}

.kids-body .tools-section {
    background: #F5F5DC;
    padding: 2rem 0;
}

.kids-body .navbar {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
}

.kids-body footer {
    background: var(--kids-light-beige) !important;
    border-top: 1px solid var(--kids-gray-light);
}

.kids-body footer .text-muted {
    color: var(--kids-gray) !important;
}

/* Kids Text Styling */
.kids-loading-text {
    color: var(--kids-blue-dark);
    font-weight: 500;
}

.kids-no-results-title {
    color: var(--kids-blue-dark);
}

.kids-no-results-text {
    color: var(--kids-blue-dark);
    opacity: 0.7;
}

.kids-body .spinner-border {
    color: var(--kids-primary);
}

/* Kids Loading and No Results Sections */
.kids-body #loadingSpinner {
    background: #F5F5DC;
    border-radius: 12px;
    margin: 1rem;
    padding: 2rem;
}

.kids-body #noResults {
    background: #F5F5DC;
    border-radius: 12px;
    margin: 1rem;
    padding: 2rem;
}

.kids-body #errorMessage {
    background: #FFF8DC !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    color: #2c5aa0 !important;
    margin: 1rem;
    border-radius: 12px;
}

/* Kids Modal Styling */
.kids-body .modal-content {
    background: var(--kids-cream);
    color: var(--kids-blue-dark);
    border: 2px solid var(--kids-primary);
}

.kids-body .modal-header {
    border-bottom-color: rgba(74, 144, 226, 0.2);
}

.kids-body .modal-footer {
    border-top-color: rgba(74, 144, 226, 0.2);
}

.kids-body .modal-title {
    color: var(--kids-primary);
}

.kids-body .text-primary {
    color: var(--kids-primary) !important;
}

/* Kids Form Controls */
.kids-body .form-select {
    background-color: var(--kids-cream);
    border-color: var(--kids-gray-light);
    color: var(--kids-blue-dark);
    font-weight: 500;
}

.kids-body .form-select:focus {
    border-color: var(--kids-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.15);
}

.kids-body .btn-primary {
    background-color: var(--kids-primary);
    border-color: var(--kids-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.kids-body .btn-primary:hover {
    background-color: var(--kids-blue-dark);
    border-color: var(--kids-blue-dark);
    transform: translateY(-1px);
}

.kids-body .alert-danger {
    background-color: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.15);
    color: #721c24;
}
