:root {
    --background-color: #F4F7FC;
    --primary-color: #3498db;
    --text-color: #333333;
    --header-footer-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
}

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

header {
    background-color: var(--header-footer-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: background-color 0.3s ease;
}

.lang-switcher:hover {
    opacity: 0.9;
}

main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-content {
    background-color: transparent; /* No card background for hero */
    padding: 2rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin: 0 0 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-button {
    font-family: var(--font-heading);
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none; 
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.our-games {
    text-align: center;
    padding: 2rem 0;
    background-color: #ffffff;
}

.our-games h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 0 1rem;
}

.game-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    background-color: var(--header-footer-bg);
    box-shadow: 0 -2px 10px var(--shadow-color);
}

/* --- Login Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover { color: #333; }

.modal-content h2 { font-family: var(--font-heading); color: #333; margin-bottom: 0.5rem; }
.modal-content p { color: #666; margin-bottom: 2rem; }

.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-login:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.social-login img {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.google-login { color: #444; }
.kakao-login { background-color: #FEE500; color: #191919; border: none; }

/* Responsive Design */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 1rem; }
    .hero h1 { font-size: 2.8rem; }
}
