/* --- RESETĂRI GLOBALE & FUNDAL UNIFORM --- */
* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0; /* Text ușor mai gri pentru confort vizual */
    overflow-x: hidden;
    line-height: 1.6; /* Spațiere mai bună pentru citit */
}

/* --- HEADER (Comun) --- */
.site-header {
    background: #121212;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.logo-img:hover { transform: scale(1.05); }

/* --- FOOTER (Comun) --- */
.site-footer {
    background: #0a0a0a; /* Footer puțin mai închis */
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: auto; /* Asigură că footerul e împins jos */
}
.footer-links { margin-bottom: 20px; }
.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
    display: inline-block;
}
.footer-links a:hover { color: #e11d48; }
.footer-copyright { font-size: 0.8rem; opacity: 0.7; }

/* --- PAGINA PRINCIPALĂ (index.php) --- */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 50vh;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    margin-bottom: 60px; /* Spațiu între jocuri și textul SEO */
}

/* Cardul de joc (Design Simplificat - Fără buton) */
.game-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.2);
}
.game-thumb-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}
.game-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s;
}
.game-card:hover .game-thumb-container img { transform: scale(1.1); opacity: 0.9; }
.game-info { padding: 15px; text-align: center; }
.game-info h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.game-info h3 a { transition: color 0.3s; }
.game-card:hover .game-info h3 a { color: #e11d48; }


/* --- SECȚIUNEA TEXT SEO (Design Nou) --- */
.seo-content-section {
    background: #1a1a1a; /* Fundal separat pentru text */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-top: 3px solid #e11d48; /* Accent de brand sus */
    color: #ccc;
}
.seo-content-section h2 { color: #fff; margin-top: 0; }
.seo-content-section h3 { color: #e11d48; margin-bottom: 10px; }
.seo-content-section p { margin-bottom: 20px; }
.seo-content-section ul { padding-left: 20px; }
.seo-content-section li { margin-bottom: 10px; }
.seo-content-section strong { color: #fff; }


/* --- PAGINA DE JOC (play.php) --- */
.game-iframe-container {
    height: 100vh;
    width: 100%;
    background: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.game-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- RESPONSIVE (Mobil) --- */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px auto;
        gap: 20px;
    }
    .logo-img { max-height: 45px; }
    .site-header { padding: 15px; }
    .main-container { padding: 20px 15px; }
    
    .seo-content-section { padding: 20px; }
    .seo-content-section h2 { font-size: 1.5rem; }

    /* FIXUL PENTRU FOOTER */
    .footer-links {
         white-space: nowrap;
         overflow-x: auto;
         -webkit-overflow-scrolling: touch;
         scrollbar-width: none;
    }
    .footer-links::-webkit-scrollbar { display: none; }
    .footer-links a {
        display: inline;
        margin: 0 3px;
        font-size: 0.75rem;
    }
    .site-footer { padding: 30px 15px; }
}