/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Comic Sans MS', 'Chalkboard SE', sans-serif;
}

:root {
    --primary: #4A90E2;
    --primary-dark: #2C6CB0;
    --secondary: #FF6B6B;
    --accent: #4ECDC4;
    --success: #2ECC71;
    --warning: #FFD166;
    --light: #F8F9FA;
    --dark: #343A40;
    --gray: #6C757D;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --radius: 20px;
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* HEADER */
.header {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 5px;
}

.logo-text h1 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--gray);
    font-size: 14px;
}

.header-info {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
}

.info-item i {
    font-size: 20px;
    color: var(--secondary);
}

/* MAIN CONTAINER */
.main-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* HERO SECTION */
.hero {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.hero-content {
    flex: 1;
}

.hero h2 {
    color: var(--primary-dark);
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
}

.hero-image {
    flex: 0 0 300px;
}

.emoji-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.emoji-large {
    font-size: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: float 3s infinite alternate;
}

.emoji-large:nth-child(2) { animation-delay: 0.5s; }
.emoji-large:nth-child(3) { animation-delay: 1s; }
.emoji-large:nth-child(4) { animation-delay: 1.5s; }

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

/* GAMES SECTION */
.games-section {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.section-title {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
}

/* GAMES GRID */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.game-card.featured {
    border: 3px solid var(--warning);
    transform: scale(1.02);
}

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

.game-card.coming-soon {
    opacity: 0.8;
    filter: grayscale(20%);
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.game-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-preview {
    width: 200px;
    height: 120px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100px;
    height: 100px;
}

.mini-cell {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.emoji-placeholder {
    font-size: 60px;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-info {
    padding: 25px;
}

.game-title {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 10px;
}

.game-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 14px;
}

.game-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.tag.age { background: #E3F2FD; color: #1976D2; }
.tag.category { background: #F3E5F5; color: #7B1FA2; }
.tag.level { background: #E8F5E9; color: #2E7D32; }

.game-features {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
    margin-top: 15px;
}

.game-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.play-button {
    background: linear-gradient(135deg, var(--success), #27ae60);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.game-card:hover .play-button {
    background: linear-gradient(135deg, #27ae60, #219653);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    gap: 10px;
}

/* FEATURES SECTION */
.features-section {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
}

/* PARENT SECTION */
.parent-section {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.parent-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parent-content > p {
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 800px;
}

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

.tip {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.tip:hover {
    transform: translateX(10px);
}

.tip i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.tip h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.tip p {
    color: var(--gray);
    font-size: 14px;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    color: #CCCCCC;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.game-links {
    list-style: none;
}

.game-links li {
    margin-bottom: 12px;
}

.game-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 0;
}

.game-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.coming-soon-link {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #CCCCCC;
    margin-bottom: 10px;
}

.heart {
    color: var(--secondary);
    animation: heartbeat 1.5s infinite;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .stats {
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .header-info {
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .game-card.featured {
        transform: none;
    }
    
    .features-grid,
    .parent-tips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 15px;
    }
    
    .hero,
    .games-section,
    .features-section,
    .parent-section {
        padding: 25px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .emoji-large {
        font-size: 60px;
    }
    
    .game-tags {
        justify-content: center;
    }
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

/* LOADING STATE */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}