/* Modern & Clean Puzzle Games - Global Styles (Orange/Yellow Theme) */

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

:root {
    --primary-color: #F59E0B;
    --primary-dark: #D97706;
    --primary-light: #FCD34D;
    --secondary-color: #10B981;
    --accent-color: #FB923C;
    --background: #FFFBEB;
    --surface: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #FDE68A;
    --shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
    --shadow-lg: 0 10px 25px rgba(245, 158, 11, 0.15);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
}

/* AdSense Placeholders */
.ad-placeholder {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 728px;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.ad-top {
    margin-top: 20px;
}

.ad-middle {
    margin: 60px auto;
}

.ad-bottom {
    margin: 60px auto 40px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Game Card */
.game-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-card.coming-soon {
    opacity: 0.6;
    background: #FEFCE8;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.game-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 48px;
}

/* Game Meta */
.game-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-meta span {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.difficulty {
    background: #FEF3C7;
}

.difficulty.easy {
    color: var(--secondary-color);
    background: #D1FAE5;
}

.difficulty.medium {
    color: var(--primary-dark);
    background: #FED7AA;
}

.difficulty.hard {
    color: #DC2626;
    background: #FEE2E2;
}

.plays {
    background: #FEF3C7;
    color: var(--primary-dark);
}

/* Play Button */
.play-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

.play-btn.disabled {
    background: #E5E7EB;
    color: var(--text-secondary);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* Features Section */
.features {
    margin: 80px 0;
    background: var(--surface);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

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

.feature {
    text-align: center;
    padding: 30px;
    background: #FFFBEB;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 2px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-placeholder {
        max-width: 100%;
    }
    
    .features {
        padding: 40px 20px;
    }
}