/*
 * Bezpieczny Pomocnik - Child Safety Application
 * Copyright (c) 2025 Fundacja na rzecz Hospicjum Maryi Królowej Apostołów w Krakowie
 * All Rights Reserved. Proprietary and Confidential.
 * 
 * This software is the exclusive property of:
 * Fundacja na rzecz Hospicjum Maryi Królowej Apostołów w Krakowie
 * 30-404 Kraków, ul. Cegielniana 6B/45
 * Tel. +48 735 749 618 | Email: kontakt@fundacja-hospicjum.org
 * KRS: 0001063161 | NIP: 6793279476 | REGON: 526664276
 * 
 * Unauthorized copying, distribution, or use is strictly prohibited.
 * For licensing inquiries: kontakt@fundacja-hospicjum.org
 */

:root {
    --primary-blue: #4A90FF;
    --primary-green: #32D74B;
    --primary-orange: #FF9500;
    --primary-red: #FF3B30;
    --primary-purple: #AF52DE;
    --primary-yellow: #FFCC00;
    
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #2D3748;
    --text-light: #718096;
    
    --border-radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.kids-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.kids-header {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 48px;
}

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

.kids-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kids-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Navigation */
.kids-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: var(--primary-purple);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(175, 82, 222, 0.3);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 82, 222, 0.4);
}

.lang-btn.active {
    background: var(--primary-green);
    box-shadow: 0 4px 12px rgba(50, 215, 75, 0.3);
}

/* Main Content */
.kids-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Mascot Section */
.mascot-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.mascot {
    font-size: 64px;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.speech-bubble {
    background: var(--primary-blue);
    color: white;
    padding: 16px 20px;
    border-radius: 20px;
    position: relative;
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: var(--primary-blue);
}

/* Controls */
.kids-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.control-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.control-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--primary-blue);
    font-weight: 600;
}

.kids-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kids-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(50, 215, 75, 0.2);
}

.kids-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: var(--primary-green);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(50, 215, 75, 0.3);
}

.kids-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 215, 75, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Map Section */
.map-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.red { background: var(--primary-red); }
.legend-color.orange { background: var(--primary-orange); }
.legend-color.green { background: var(--primary-green); }

.kids-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Alerts Section */
.alerts-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.kids-alerts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3367D6;
}

.alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.alert-card.warning {
    border-left-color: var(--primary-red);
}

.alert-card.caution {
    border-left-color: var(--primary-orange);
}

.alert-card.info {
    border-left-color: var(--primary-green);
}

.alert-card h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.alert-content p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
}

.alert-tips {
    background: rgba(74, 144, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.alert-tips h4 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.alert-tips ul {
    list-style: none;
    padding: 0;
}

.alert-tips li {
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.alert-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 4px;
}

.alert-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 8px;
}

/* Safety Tips */
.tips-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.safety-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.tip-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tip-card::after {
    content: "🔊 Kliknij aby usłyszeć";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--primary-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tip-card:hover::after {
    opacity: 1;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.tip-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-blue);
    font-weight: 600;
}

.tip-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Emergency Section */
.emergency-section {
    background: linear-gradient(135deg, var(--primary-red), #FF6B6B);
    color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.emergency-section .section-title {
    color: white;
}

.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.emergency-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.emergency-card::after {
    content: "🔊 Kliknij aby usłyszeć";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--primary-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.emergency-card:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.emergency-card:hover::after {
    opacity: 1;
}

.emergency-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.emergency-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.emergency-number {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.emergency-number:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.kids-footer {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin-top: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.kids-footer p {
    margin: 4px 0;
    font-weight: 500;
}

.kids-footer p:first-child {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Location Action Menu */
.location-action-menu {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 15px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
}

.location-action-menu.menu-visible {
    opacity: 1;
    transform: translateY(0);
}

.action-menu-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.action-btn .btn-icon {
    font-size: 1.2rem;
}

.shelter-btn {
    border-color: var(--primary-orange);
}
.shelter-btn:hover {
    background: var(--primary-orange);
    color: white;
}

.emergency-btn {
    border-color: var(--primary-red);
}
.emergency-btn:hover {
    background: var(--primary-red);
    color: white;
}

.family-btn {
    border-color: var(--primary-purple);
}
.family-btn:hover {
    background: var(--primary-purple);
    color: white;
}

.safe-btn {
    border-color: var(--primary-blue);
}
.safe-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.close-btn {
    border-color: var(--text-light);
    grid-column: span 2;
    justify-self: center;
    max-width: 200px;
}
.close-btn:hover {
    background: var(--text-light);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kids-container {
        padding: 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .kids-title {
        font-size: 2rem;
    }
    
    .mascot-section {
        flex-direction: column;
        text-align: center;
    }
    
    .mascot {
        font-size: 48px;
    }
    
    .speech-bubble::before {
        display: none;
    }
    
    .kids-controls {
        grid-template-columns: 1fr;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .safety-tips {
        grid-template-columns: 1fr;
    }
    
    .emergency-contacts {
        grid-template-columns: 1fr;
    }
    
    .kids-map {
        height: 300px;
    }
    
    .hero-xp {
        width: 100%;
    }
}

/* Hero System Error */
.hero-system-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    animation: errorSlideIn 0.4s ease-out;
}

@keyframes errorSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.error-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.retry-btn, .close-error-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    padding: 8px 15px;
    margin: 5px 5px 0 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.retry-btn:hover, .close-error-btn:hover {
    background: white;
    color: #ff6b6b;
}

.close-error-btn {
    float: right;
    padding: 8px 12px;
}

/* Loading animations */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-blue);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.kids-button:focus,
.kids-select:focus,
.lang-btn:focus {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Speech functionality styles */
.speech-btn {
    background: var(--primary-green) !important;
    box-shadow: 0 4px 12px rgba(50, 215, 75, 0.3);
}

.speech-btn:hover {
    box-shadow: 0 6px 20px rgba(50, 215, 75, 0.4);
}

.speech-btn:disabled {
    background: var(--primary-orange) !important;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

/* Parental Consent Banner Styles - RODO Art. 8 */
.parental-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.parental-consent-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.consent-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.consent-header .subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 20px;
}

.child-protection-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.parent-confirmation h3 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
}

.confirmation-points {
    list-style: none;
    padding: 0;
}

.confirmation-points li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.confirmation-points li:before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

.legal-info {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
}

.contact-info {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

.consent-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.consent-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consent-btn.approve {
    background: #27ae60;
    color: white;
}

.consent-btn.approve:hover {
    background: #219a52;
}

.consent-btn.decline {
    background: #e74c3c;
    color: white;
}

.consent-btn.decline:hover {
    background: #c0392b;
}

.adult-verification {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.adult-verification input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 16px;
}

.location-btn:disabled {
    background: var(--primary-orange) !important;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    cursor: not-allowed;
}

/* User location marker styles */
.user-location-marker {
    animation: locationPulse 2s infinite;
}

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

/* Poland-focused map styles */
.kids-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary-blue);
}

.alert-card .speech-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.alert-card .speech-btn:hover {
    background: var(--primary-purple);
    transform: scale(1.05);
}

/* Speaking animation */
@keyframes speaking {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

.speaking {
    animation: speaking 1s ease-in-out infinite;
}

.mascot.speaking {
    animation: speaking 1s ease-in-out infinite;
}

/* Accessibility enhancements for speech */
.speech-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speech-indicator.active {
    opacity: 1;
}

/* Foundation Footer Styles */
.kids-footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.foundation-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.foundation-logo {
    font-size: 48px;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.foundation-text h4 {
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: #FFE55C;
}

.foundation-text .contact-icon {
    margin: 0 0 10px 0;
}

.foundation-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
}

.foundation-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.foundation-note {
    font-size: 1rem;
    line-height: 1.4;
    margin: 20px 0;
    color: #E0E0E0;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

.foundation-note strong {
    color: #FFE55C;
    font-weight: 700;
}

.donation-btn {
    display: inline-block;
    background: linear-gradient(45deg, #FFE55C, #FFA500);
    color: #333;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 229, 92, 0.3);
    margin-top: 10px;
}

.donation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 229, 92, 0.4);
    background: linear-gradient(45deg, #FFA500, #FF8C00);
}

/* Mobile responsiveness for footer */
@media (max-width: 768px) {
    .kids-footer {
        padding: 30px 15px;
        margin-top: 40px;
    }
    
    .foundation-logo {
        font-size: 40px;
    }
    
    .foundation-text h4 {
        font-size: 1.1rem;
    }
    
    .foundation-link {
        font-size: 1.3rem;
    }
    
    .foundation-note {
        font-size: 0.9rem;
    }
    
    .donation-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Call confirmation popup */
.call-popup {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 15px;
    color: white;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    max-width: 250px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.popup-icon {
    font-size: 2rem;
    animation: phone-ring 1s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.popup-text {
    font-size: 0.9rem;
    line-height: 1.3;
}

.popup-text strong {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
}

/* Copyright Notice */
.copyright-notice {
    text-align: center;
    padding: 20px 10px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', sans-serif;
}

.copyright-notice p {
    margin: 5px 0;
    line-height: 1.4;
}

.rights-reserved {
    font-style: italic;
    opacity: 0.8;
}

/* Location Coverage Info Popup */
.coverage-info-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #4A90FF;
    z-index: 25000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 500px;
    width: 90%;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

.coverage-info-popup.show {
    opacity: 1;
}

.coverage-info-popup h3 {
    color: #4A90FF;
    margin: 0 0 20px 0;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
    text-align: center;
    font-size: 1.3rem;
}

.coverage-stats {
    background: linear-gradient(135deg, #F0F8FF, #E8F5E8);
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    border: 2px solid #E3F2FD;
}

.stat-item {
    text-align: center;
    margin-bottom: 15px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4A90FF;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.stat-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.stat-mini {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

.stat-mini strong {
    color: #4A90FF;
    font-size: 1.2rem;
    display: block;
}

.covered-locations {
    margin: 20px 0;
}

.covered-locations h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.location-tag {
    background: linear-gradient(135deg, #4A90FF, #357AE8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.coverage-info-popup .btn-ok {
    background: #4A90FF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

.coverage-info-popup .btn-ok:hover {
    background: #357AE8;
}

/* Responsive coverage popup */
@media (max-width: 480px) {
    .language-selector select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Location action menu mobile styles */
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .action-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .close-btn {
        grid-column: span 1;
        max-width: none;
    }
    
    .coverage-info-popup {
        padding: 20px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-breakdown {
        grid-template-columns: 1fr;
    }
    
    .location-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

.copyright-notice .rights-reserved {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mobile responsive copyright */
@media (max-width: 768px) {
    .copyright-notice {
        font-size: 0.75rem;
        padding: 15px 5px 10px 5px;
    }
    
    .copyright-notice .rights-reserved {
        font-size: 0.7rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --card-bg: white;
        --text-dark: black;
        --text-light: #333;
    }
    
    .copyright-notice {
        color: white;
        border-top-color: white;
    }
    
    .copyright-notice .rights-reserved {
        color: #FFD700;
    }
}

/* 🎮 GAMIFICATION SYSTEM STYLING */

/* Heroes Section - Normal Card Flow */
.heroes-section {
    margin: 24px 0;
}

.hero-progress-card {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    animation: heroCardSlideIn 0.8s ease-out;
}

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

.hero-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-avatar-large {
    font-size: 4rem;
}

.hero-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.xp-section {
    flex-grow: 1;
}

.xp-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
    font-weight: 500;
}

.hero-name-level {
    display: flex;
    flex-direction: column;
}

.hero-name-level strong {
    font-size: 18px;
    color: #333;
    margin-bottom: 2px;
}

.hero-level {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.hero-xp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-xp span {
    font-size: 14px;
    color: #FF6B35;
    font-weight: bold;
    margin-bottom: 5px;
}

.xp-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.xp-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.8s ease;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-stats-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 2px solid white !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
}

.hero-stats-btn:hover {
    background: white !important;
    color: #FF6B35 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile responsive for hero card */
@media (max-width: 768px) {
    .hero-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero-progress-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-avatar-large {
        font-size: 3rem;
    }
    
    .hero-info h3 {
        font-size: 1.5rem;
    }
    
    .hero-stats-btn {
        width: 100% !important;
        padding: 15px !important;
    }
}

/* 🎮 HERO STATS MODAL */
.hero-stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease-out;
}

.hero-stats-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    text-align: center;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-stats-content h2 {
    color: white;
    margin: 0 0 25px 0;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-powers {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.hero-powers h3 {
    margin: 0 0 15px 0;
    color: #FFD700;
    font-size: 1.3rem;
}

.hero-powers ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-powers li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.hero-powers li:last-child {
    border-bottom: none;
}

.daily-quests {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.daily-quests h3 {
    margin: 0 0 15px 0;
    color: #FFD700;
    font-size: 1.3rem;
}

.quest-btn {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.quest-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.quest-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.close-stats-btn {
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.close-stats-btn:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Mobile responsive for stats modal */
@media (max-width: 768px) {
    .hero-stats-content {
        padding: 20px;
        margin: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats-content h2 {
        font-size: 1.5rem;
    }
}

/* 🎮 HEROES MODAL */

/* Hero Selection Modal - HIGHEST Z-INDEX */
.hero-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    animation: fadeIn 0.5s ease-out;
}

.hero-selection-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.hero-selection-content h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hero-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: currentColor;
}

.hero-card .hero-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
}

.hero-card h3 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: bold;
}

.hero-specialty {
    font-size: 16px;
    color: #666;
    margin: 8px 0;
    font-weight: 500;
}

.hero-age {
    font-size: 14px;
    color: #888;
    margin: 5px 0;
}

.hero-phrase {
    font-style: italic;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-selection-content {
        padding: 20px;
        margin: 10px;
    }
    
    .heroes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-card {
        padding: 20px;
    }
}

/* 🛡️ Safety Actions Section */
.safety-actions-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.safety-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.action-card.emergency {
    border: 2px solid #FF1744;
    background: linear-gradient(135deg, #fff1f1, #ffe6e6);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.action-card h4 {
    color: var(--primary-blue);
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.action-card.emergency h4 {
    color: #FF1744;
}

.action-card p {
    color: #666;
    margin: 10px 0 20px 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.action-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(64, 123, 255, 0.3);
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, cursive;
    min-width: 200px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 123, 255, 0.4);
}

.action-button.orange {
    background: #FF6B35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.action-button.green {
    background: #00C851;
    box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

.action-button.red {
    background: #FF1744;
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
    animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(255, 23, 68, 0.6);
        transform: scale(1.05);
    }
}

/* Achievement popup */
.achievement-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #32D74B, #00C851);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    max-width: 300px;
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Segoe UI', system-ui, cursive;
}

.achievement-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: white;
}

.achievement-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .achievement-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* 🚨 ALERT SYSTEM STYLES */
.alert-message {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gentle-pulse {
    0% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.02);
    }
    100% { 
        opacity: 0.8;
        transform: scale(1);
    }
}

.alert-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    max-width: 350px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .alert-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
