/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cursor AI inspired color palette */
    --bg-primary: #1e1e1e;
    --bg-secondary: #2d2d30;
    --bg-tertiary: #3c3c3c;
    --text-primary: #cccccc;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #007acc;
    --accent-secondary: #0ea5e9;
    --border-color: #404040;
    --hover-bg: #404040;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

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

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

/* Language Selector - styles moved to components.css */

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Main content */
.main {
    padding: 3rem 0;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Games grid */
.games-grid {
    margin-bottom: 4rem;
}

.games-grid h3 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Game card styles moved to components.css */

.game-thumbnail {
    text-align: center;
    margin-bottom: 1rem;
}

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

.game-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.5;
}

.game-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.genre {
    font-weight: 500;
}

/* Button styles moved to components.css */

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-results p {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Language selector responsive styles in components.css */
    
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .games-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .game-card {
        padding: 1rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 45px 10px 15px;
    }
}
