/* PlayFreeGames.online - Main Stylesheet */

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

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --secondary: #00CEC9;
    --accent: #FD79A8;
    --bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
    --border: #DFE6E9;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 2rem;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.hero h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Categories */
.categories {
    margin: 40px 0;
}

.categories h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text);
}

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

.category-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

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

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Featured Games */
.featured-games {
    margin: 40px 0;
}

.featured-games h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-3px);
}

.game-card a {
    text-decoration: none;
    color: var(--text);
}

.game-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.game-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Ad Placeholders */
.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    min-height: 100px;
}

.top-banner, .bottom-banner {
    min-height: 90px;
}

.middle-rect {
    min-height: 250px;
    max-width: 300px;
    margin: 30px auto;
}

.ad-label {
    color: #999;
    font-size: 0.9rem;
}

/* SEO Content */
.seo-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.seo-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.seo-content h3 {
    color: var(--text);
    margin-top: 25px;
    margin-bottom: 15px;
}

.seo-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.seo-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.seo-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    margin: 0 10px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}
