body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #ecf0f1;
    color: #2c3e50;
}

/* ===== HEADER ===== */
header {
    background-color: #1a1a2e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.header-top {
    background-color: #16213e;
    padding: 0.6rem 2rem;
    text-align: center;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #e94560;
}

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 52px;
    gap: 1rem;
}

/* ===== NAV ===== */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.2rem;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: #cdd3de;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    display: block;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
    background-color: #e94560;
    color: white;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #16213e;
    border: 1px solid #e94560;
    border-radius: 6px;
    min-width: 140px;
    z-index: 200;
    padding: 0.3rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background-color: #e94560;
}

/* ===== SEARCH ===== */
.header-search {
    display: flex;
    align-items: center;
    background-color: #0f3460;
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
    flex: 0 1 240px;
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.85rem;
    width: 100%;
    padding: 0 0.4rem;
}

.header-search input::placeholder {
    color: #8899aa;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

/* ===== AUTH (로그인/로그아웃) ===== */
.header-user {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#user-info {
    color: #cdd3de;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.google-login-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #ffffff;
    color: #3c4043;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.google-login-btn:hover {
    background-color: #f1f3f4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#auth-btn.logout {
    background-color: transparent;
    color: #cdd3de;
    border: 1px solid #8899aa;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

#auth-btn.logout:hover {
    background-color: #e94560;
    color: white;
    border-color: #e94560;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero button {
    background-color: #f1c40f;
    color: #2c3e50;
    border: none;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== FEATURED GAMES ===== */
.featured-games {
    padding: 3rem 2rem;
    text-align: center;
}

.featured-games h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.game-card {
    display: inline-block;
    width: 300px;
    margin: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    vertical-align: top;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 1rem 0 0.5rem;
    color: #1a1a2e;
}

.game-card p {
    margin: 0 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a2e;
    color: #8899aa;
    text-align: center;
    padding: 1.2rem;
    margin-top: 2rem;
}
