/*
****************************************************************************************************
🌑 다크 테마 - main-dark.css (공통용)
header, footer, title, contact
****************************************************************************************************
*/
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Pretendard', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding-top: 60px;
    line-height: 1.7;
}

.main-content {
    flex: 1;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ========== Header ========== */
.binary-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-family: 'Pretendard', sans-serif;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Site Logo */
.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}
.site-logo:hover {
    color: #90CAF9;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #ffffff;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(5px); }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg) translate(5px,-5px); }

/* Theme Button */
.theme-btn {
    background: none;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}
.theme-btn:hover {
    background-color: #ffffff;
    color: #121212;
}

/* ========== Page Title ========== */
.page-title {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    background: linear-gradient(135deg, #1e1e1e, #252525);
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
    animation: fadeInDown 0.5s ease-in-out;
}
.page-title h1 {
    font-size: 2.2rem;
    margin: 0;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}
.page-title p {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* ========== Page Content ========== */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #dddddd;
}

.page-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ========== Footer ========== */
.site-footer {
    background-color: #181818;
    color: #999;
    text-align: center;
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid #303030;
    margin-top: 4rem;
}

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

.footer-right a,
.footer-email,
.contact-email {
    color: #bbbbbb;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}
.footer-right a:hover,
.footer-email:hover,
.contact-email:hover {
    color: #ffffff;
}

.icon-container {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.link-icon {
    width: 42px;
    height: 42px;
    display: inline-block;
    background-size: cover;
    border-radius: 50%;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.9;
}

.link-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.link-icon.twitter { background-image: url(../img/icon-twitter.png); }
.link-icon.facebook { background-image: url(../img/icon-facebook.png); }
.link-icon.kakao { background-image: url(../img/icon-kakao.png); }

/* ===== 방명록 - 다크 모드 ===== */
.guestbook {
    max-width: 800px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    padding: 2rem 1rem;
    margin: 0 auto;
}

.guestbook h2 {
    text-align: center;
    color: #87cefa;
    margin-bottom: 1rem;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.guestbook-form input,
.guestbook-form textarea {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    background-color: #2c2c2c;
    color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 6px;
    resize: vertical;
}

.guestbook-form textarea {
    height: 100px;
}

.guestbook-submit {
    background-color: #4682B4;
    color: #fff;
    padding: 0.6rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.guestbook-submit:hover {
    background-color: #315f7c;
}

/* ===== 댓글 목록 ===== */
.guestbook-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guestbook-item {
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.guestbook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.guestbook-name {
    color: #87cefa;
    font-weight: 600;
}

.guestbook-date {
    font-size: 0.85rem;
    color: #aaa;
}

.guestbook-content {
    margin: 0.5rem 0;
    color: #ccc;
    white-space: pre-wrap;
    line-height: 1.5;
}

.guestbook-delete {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: transparent;
    border: 1px solid #666;
    color: #aaa;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.guestbook-delete:hover {
    background-color: #552222;
    border-color: #aa4444;
    color: #ff6b6b;
}

.guestbook-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.guestbook-pagination button {
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    cursor: pointer;
}

.guestbook-pagination button:disabled {
    background-color: #2c2c2c;
    color: #666;
    cursor: not-allowed;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #181818;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-links.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    .theme-btn {
        font-size: 0.95rem;
        padding: 5px 10px;
    }
    .site-footer {
        font-size: 0.85rem;
        padding: 1rem 0.5rem;
    }
    .page-content {
        padding: 1rem 0.5rem;
    }
    .page-content h1 {
        font-size: 1.5rem;
    }
    .page-content p {
        font-size: 0.95rem;
    }

    .guestbook {
        padding: 1rem;
    }

    .guestbook-form input,
    .guestbook-form textarea {
        font-size: 0.95rem;
    }

    .guestbook-submit {
        font-size: 0.95rem;
    }

    .guestbook-delete {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .guestbook-pagination {
        gap: 0.5rem;
    }

    .guestbook-pagination button {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ========== Animation ========== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
****************************************************************************************************
🌑 다크 테마 - main-dark.css (공통용) 끝
****************************************************************************************************
*/







/* === game.css === */

.container {
    max-width: 1000px;
    padding: 40px 20px;
    margin: 0 auto;
    text-align: center;
}

.nav-back {
    margin-bottom: 20px;
    text-align: center;
}

.back-btn {
    display: inline-block;
    background: #90CAF9;
    color: #121212;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(144, 202, 249, 0.4);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.back-btn:hover {
    background: #ffffff;
    color: #121212;
    transform: translateY(-2px);
}

.game-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.game-bgm {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #bbbbbb;
}

#game-container {
    width: 800px;
    height: 600px;
    background: #181818;
    border-radius: 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(144, 202, 249, 0.2);
}

.description {
    margin-top: 40px;
    background: #181818;
    padding: 25px;
    border-radius: 12px;
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: 0 0 12px rgba(144, 202, 249, 0.15);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.description h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.game-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(144, 202, 249, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(144, 202, 249, 0.3);
}

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

.game-card h2 {
    font-size: 1.3rem;
    padding: 15px;
    color: #ffffff;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* ✅ 모바일 대응 */
@media (max-width: 768px) {
    .container { padding: 20px 10px; }
    .game-title { font-size: 1.7rem; }
    #game-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        border-radius: 10px;
    }
    .description {
        font-size: 0.95rem;
        padding: 20px;
    }
    .back-btn {
        font-size: 0.95rem;
        padding: 8px 14px;
    }
}

@media (max-width: 500px) {
    .game-card h2 { font-size: 1.1rem; padding: 12px; }
    .game-card img { height: 150px; }
    .game-grid { gap: 20px; }
}
