/* ---------------------------
   1. 전역 폰트 및 기본 설정
---------------------------- */
@font-face {
    font-family: Pretendard;
    src: url('{{ site.baseurl }}/srcs/fonts/Pretendard/Pretendard-Medium.otf') format('truetype');
}

body {
    position: relative;
    font-family: Pretendard, sans-serif;
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
}

/* ---------------------------
   2. 텍스트 정렬
---------------------------- */
.default_font { font-family: Pretendard; }
.center_font { font-family: Pretendard; text-align: center; }
.about_font { font-family: Pretendard; text-align: center; white-space: pre-line; }
h1.center_font { color: rgb(0, 166, 255); }

/* ---------------------------
   3. 게임 리스트
---------------------------- */
.game-list { list-style: none; padding: 0; margin: 0; }
.game-list li { margin: 10px 0; }
.game-list a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}
.game-list a:hover {
    color: #0066ff;
    font-size: 25px;
}

/* ---------------------------
   4. SNS 링크
---------------------------- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.social-links a img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s, opacity 0.3s;
}
.social-links a:hover img {
    transform: scale(1.2);
    opacity: 0.8;
}

/* ---------------------------
   5. 헤더 & 네비게이션
---------------------------- */
.header { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }

.navBar__logo {
    text-align: center;
    margin-bottom: 10px;
}

.navBar__logo img {
    max-height: 80px;   /* 세로 크기를 제한 */
    height: auto;       /* 비율 유지 */
    max-width: 100%;    /* 부모 영역을 넘지 않도록 */
    width: auto;        /* 자동 비율 유지 */
}

.navBar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    z-index: 100;
}

.navBar__menu {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-family: Pretendard;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* 모바일에서 줄바꿈 */
}

.navBar__menu li { color: white; transition: font-size 0.2s ease; }
.navBar__menu a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.navBar__menu a:hover {
    background-color: rgb(0, 166, 255);
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
}

/* ---------------------------
   6. 페이지네이션
---------------------------- */
.pagination { text-align: center; }
.post-link, .pagination-link { display: inline-block; transition: transform 0.2s ease; }
.post-link:hover, .pagination-link:hover { transform: scale(1.1); }

/* ---------------------------
   7. 모바일 전용 조정
---------------------------- */
@media (max-width: 767px) {
    body { font-size: 16px; }
    
    h1.center_font { font-size: 1.8rem; }
    .game-list a { font-size: 1rem; }
    .game-list a:hover { font-size: 1.2rem; }

    .navBar__menu {
        flex-direction: column; /* 메뉴 세로 정렬 */
        gap: 10px;
    }

    .navBar__menu a {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .navBar__menu a:hover { font-size: 1.2rem; }

    .social-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}
