/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F0FF 100%);
    border-radius: 40px 40px 30px 30px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Διακοσμητικά σύννεφα */
.container::before {
    content: '☁️☁️☁️';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 60px;
    opacity: 0.3;
    transform: rotate(5deg);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 60px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    color: #6C3CE1;
}

.logo-icon {
    font-size: 35px;
}

.stats {
    display: flex;
    gap: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 20px;
    background: #F8F9FA;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    color: #2D3748;
    min-width: 30px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    border-radius: 30px;
    padding: 30px 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 42px;
    color: #2D3748;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 20px;
    color: #4A5568;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-mascot {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 15px 25px;
}

.mascot {
    font-size: 64px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.mascot-speech {
    font-size: 18px;
    color: #2D3748;
    font-weight: 600;
    line-height: 1.5;
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    border-top-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Hero Selection */
.hero-selection {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    padding: 25px 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
}

.hero-selection h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    color: #2D3748;
    margin-bottom: 20px;
}

.hero-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-option {
    background: white;
    padding: 20px 25px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid transparent;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-option.active {
    border-color: #6C3CE1;
    background: #F3EFFF;
}

.hero-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.hero-name {
    font-weight: 700;
    font-size: 20px;
    color: #2D3748;
}

.hero-desc {
    font-size: 14px;
    color: #718096;
}

/* Levels Grid */
.levels {
    margin-bottom: 30px;
}

.levels h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    color: #2D3748;
    margin-bottom: 25px;
    text-align: center;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.level-card {
    background: white;
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.level-card:not(.locked):hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.level-card.locked {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.level-badge {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.level-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 26px;
    color: #2D3748;
    margin-bottom: 5px;
}

.level-card p {
    color: #718096;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.level-stars {
    font-size: 24px;
    margin-bottom: 10px;
}

.level-operations {
    font-size: 28px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.level-operations span {
    background: #F3EFFF;
    padding: 5px 10px;
    border-radius: 12px;
}

.btn-play {
    background: linear-gradient(135deg, #6C3CE1 0%, #9F7AEA 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
}

.btn-play:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 60, 225, 0.4);
}

.btn-play:disabled {
    background: #CBD5E0;
    cursor: not-allowed;
    box-shadow: none;
}

.lock-info {
    margin-top: 10px;
    font-size: 14px;
    color: #718096;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-weight: 600;
    color: #4A5568;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .stats {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-mascot {
        flex-direction: column;
        text-align: center;
    }

    .mascot-speech {
        font-size: 16px;
    }

    .level-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}


/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.daily-challenge {
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.challenge-badge {
    font-size: 48px;
}

.challenge-content h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #2D3748;
    margin-bottom: 4px;
}

.challenge-content p {
    color: #4A5568;
    font-weight: 600;
    font-size: 16px;
}

.challenge-reward {
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: #FF6B6B;
    font-size: 18px;
    margin-left: auto;
}

.achievement-badge {
    background: white;
    border-radius: 20px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.achievement-badge:hover {
    transform: scale(1.05);
}

.badge-icon {
    font-size: 32px;
}

.badge-text {
    font-weight: 700;
    font-size: 18px;
    color: #2D3748;
}

.badge-count {
    margin-left: auto;
    background: #F3EFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    color: #6C3CE1;
}

/* Unlock Progress */
.unlock-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 15px 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4A5568;
}

#nextLevelName {
    color: #6C3CE1;
    font-weight: 700;
}

#progressStars {
    color: #F6AD55;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #EDF2F7;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C3CE1 0%, #9F7AEA 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '✨';
    position: absolute;
    right: -5px;
    top: -8px;
    font-size: 20px;
    animation: bounce 1s infinite;
}

/* Responsive additions */
@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .daily-challenge {
        flex-wrap: wrap;
    }

    .challenge-reward {
        margin-left: 0;
    }
}

/* Nursery level special styling */
.level-card.nursery-card {
    background: linear-gradient(135deg, #F8F0FF 0%, #E8D5F5 100%);
    border: 3px solid #9F7AEA;
    box-shadow: 0 4px 20px rgba(159, 122, 234, 0.3);
}

.level-card.nursery-card .level-badge {
    font-size: 48px;
}

.level-card.nursery-card h3 {
    color: #6C3CE1;
}

.nursery-badge {
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
    color: #2D3748;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-top: 8px;
    font-family: 'Fredoka One', cursive;
}

.level-card.nursery-card .level-stars {
    color: #9F7AEA;
}

.level-card.nursery-card .level-operations span {
    background: #F3EFFF;
    border-radius: 12px;
    padding: 5px 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .level-card.nursery-card .level-badge {
        font-size: 36px;
    }

    .nursery-badge {
        font-size: 12px;
        padding: 3px 12px;
    }
}