@charset "utf-8";

/* 카테고리 띠 배너 */
.category-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: -20px;
    margin-bottom: 15px;
    position: relative;
}
/* 빈 container_title 다음 배너 여백 제거 */
#container_title:empty + .bo_list .category-banner,
#container_title span:empty ~ .bo_list .category-banner {
    margin-top: -20px;
}
/* 배너 다음에 플랫폼 필터가 오면 배너 하단 여백 제거 */
.category-banner + .platform-filter {
    margin-top: -15px;
}
.category-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
}
.category-banner .banner-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.category-banner .banner-icon-fa {
    font-size: 22px;
}
.category-banner .banner-text {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.category-banner .banner-admin-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.category-banner .banner-admin-menu li {
    display: flex;
}
.category-banner .banner-admin-menu .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.category-banner .banner-admin-menu .btn:hover {
    background: rgba(255, 255, 255, 0.35);
}
.category-banner.psplus-banner .banner-admin-menu .btn {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
}
.category-banner.psplus-banner .banner-admin-menu .btn:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 신규 출시 - 블랙 */
.category-banner.game-banner {
    background: #000000;
}

/* 모바일 게임 - 청록색 */
.category-banner.mobile-banner {
    background: #0f9f8f;
}

/* PlayStation 독점 신작 - 파란색 */
.category-banner.ps-banner {
    background: #0070d1;
}

/* Nintendo 독점 신작 - 빨간색 */
.category-banner.nintendo-banner {
    background: #e60012;
}

/* Xbox Game Pass - 초록색 */
.category-banner.gamepass-banner {
    background: #107c10;
}

/* PS Plus - 노란색/금색 */
.category-banner.psplus-banner {
    background: #ffb800;
}
.category-banner.psplus-banner .banner-text {
    color: #000;
}

/* 배너가 있는 카테고리에서 기존 list_header/footer 관리자 메뉴 숨김 */
.category-banner + form .list_header ul,
.category-banner ~ form .list_header ul,
.category-banner ~ .platform-filter + form .list_header ul,
.category-banner + form .list_footer ul,
.category-banner ~ form .list_footer ul,
.category-banner ~ .platform-filter + form .list_footer ul {
    display: none !important;
}

/* Total 건수 숨기기 */
.bo_list .list_header .total {
    display: none !important;
}

/* 페이지네이션 크기 조정 */
.bo_list .pagination {
    margin: 30px 0;
    gap: 8px;
}
.bo_list .pagination .page {
    min-width: 45px;
    height: 45px;
    line-height: 43px;
    font-size: 16px;
    border-radius: 8px;
}
.bo_list .pagination .current {
    font-size: 18px;
}

/* 플랫폼 필터 - 모던 미니멀 디자인 */
.platform-filter {
    display: flex;
    gap: 8px;
    padding: 20px 0 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.platform-filter .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.platform-filter .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.platform-filter .filter-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
}
.platform-filter .filter-btn.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.12);
}
.platform-filter .filter-btn.active::after {
    transform: translateX(-50%) scaleX(1);
    width: 100%;
}
.platform-filter .filter-btn .filter-icon {
    width: 20px;
    height: 20px;
}
.platform-filter .filter-btn i.filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: initial;
    font-size: 18px;
}
.platform-filter .filter-btn .mobile-filter-icon {
    color: #44d7b6;
}

.sort-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 4px;
}
.sort-filter .sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.sort-filter .sort-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.sort-filter .sort-btn.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.45);
}
.sort-filter .sort-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.sort-filter .sort-icon-fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #93c5fd;
    font-size: 16px;
}

/* 게시판 목록: 갤러리형 */
.bo_list .list_all_check { margin:0 0 10px; }
.bo_list .list_grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px; 
    margin:0 0 20px; 
}
.bo_list .list_grid .grid_empty { display:flex; align-items:center; height:200px; justify-content:center; }
.bo_list .grid_item { 
    border: var(--border); 
    border-radius: 12px;
    overflow: hidden;
    background: var(--contBg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bo_list .grid_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.bo_list .grid_item .item_chk { 
    display:flex; 
    justify-content: left; 
    gap:10px; 
    padding:8px 12px; 
    background: rgba(0,0,0,0.2);
    font-size: 12px;
}
.bo_list .grid_item .item_link { display:flex; position:relative; }
.bo_list .grid_item .item_link .is_label { 
    display:flex; 
    position:absolute; 
    z-index: 2;
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    align-items: center; 
    justify-content: center;
    background: rgba(30,30,30,0.8);
    color: #666;
    font-size: 14px;
}
.bo_list .grid_item .item_img_wrapper {
    position: relative;
}
.bo_list .grid_item .item_img {
    position: relative;
    justify-content: center;
    background: linear-gradient(110deg, #222 8%, #2f343a 18%, #222 33%);
    background-size: 200% 100%;
    animation: gpSkeletonShimmer 1.15s linear infinite;
    overflow: hidden;
    aspect-ratio: 264/352;
}

.bo_list .grid_item .item_img::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, #222 8%, #2f343a 18%, #222 33%);
    background-size: 200% 100%;
    animation: gpSkeletonShimmer 1.15s linear infinite;
}

.bo_list .grid_item .item_img:has(img.gp-image-loaded),
.bo_list .grid_item .item_img.gp-image-ready {
    animation: none;
    background: #1a1a1a;
}

.bo_list .grid_item .item_img:has(img.gp-image-loaded)::before,
.bo_list .grid_item .item_img.gp-image-ready::before {
    display: none;
}

/* 구독 서비스 뱃지 */
.bo_list .grid_item .subscription-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}
.bo_list .grid_item .subscription-badge img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    box-sizing: content-box;
}

/* 유저 평점 배지 (10점 만점) */
.bo_list .grid_item .metascore-badge {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-size: 21px;
    font-weight: bold;
    color: #000;
    background: #ffbd3f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0;
}
.bo_list .grid_item .metascore-badge.score-red { background: #ff6873 !important; color: #fff !important; }
.bo_list .grid_item .metascore-badge.score-green { background: #00ce7a !important; }
.bo_list .grid_item .metascore-badge.score-na { background: #888 !important; color: #fff !important; }

/* 플랫폼 아이콘 박스 */
.bo_list .grid_item .platform-box {
    width: 100%;
    background: #1a1a1a;
    padding: 5px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 4px;
    margin-bottom: 5px;
    min-height: 40px;
}
.bo_list .grid_item .platform-box img.platform-icon {
    width: 30px;
    height: 30px;
}

.bo_list .grid_item .item_img img { 
    position: relative;
    z-index: 1;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: transform 0.3s ease;
}

.bo_list .grid_item .item_img img.gp-image-loaded {
    opacity: 1;
}
.bo_list .grid_item:hover .item_img img {
    transform: scale(1.05);
}
.bo_list .grid_item .item_icon { z-index:2; position:relative; }
.bo_list .grid_item .item_icon > div { display:flex; gap:5px; position:absolute; top:-25px; left:10px; }
.bo_list .grid_item .item_subject { 
    gap:5px; 
    align-items: center; 
    padding: 12px 15px 8px; 
    font-size: 14px; 
    font-weight: 600;
    line-height: 1.4;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bo_list .grid_item .item_footer { 
    display:flex; 
    flex-direction: column; 
    gap:6px; 
    padding: 0 15px 12px; 
}
.bo_list .grid_item .item_writer { 
    display: none !important;
    color: #888;
}
.bo_list .grid_item .item_info { display: none !important; }
.bo_list .grid_item .item_info > div { display:flex; gap:8px; align-items:center; font-size: 11px; color: #666; }
.bo_list .grid_item .item_info .info_panel { gap: 12px; }

/* 새글 아이콘 */
.bo_list .grid_item .new_icon {
    display: none !important;
}
.bo_list .grid_item .item_icon {
    display: none !important;
}

/* 복사/이동 로그 메시지 숨김 */
.content_copy, .content_move { display: none !important; }

/* 게시판 읽기 커스터마이징 */
#bo_gallery_view #view_subject { position: relative; }
#bo_gallery_view #view_header { position: relative; }
#bo_gallery_view #view_header .header_profile_img { display: none !important; }
#bo_gallery_view #view_header .header_info { display: none !important; }
#bo_gallery_view ul.view_buttons { position: absolute !important; top: -50px !important; right: 0 !important; }
#bo_gallery_view ul.view_buttons li:has(.fa-list) { display: none !important; }
#bo_gallery_view ul.view_buttons li:has(.fa-pencil) { display: none !important; }
#bo_gallery_view ul.view_buttons li:has(.fa-reply) { display: none !important; }
#bo_gallery_view #article_share { display: none !important; }

/* 반응형 - 태블릿 */
@media (max-width:1200px) {
    .bo_list .list_grid { 
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 16px;
    }
}
@media (max-width:1000px) {
    .bo_list .list_grid { 
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px;
    }
}
@media (max-width:800px) {
    .bo_list .list_grid { 
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
}

@media (max-width:900px) {
    .bo_list .list_grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px;
    }
    .bo_list .grid_item .item_subject { font-size: 13px; }
}

/* 반응형 - 모바일 */
@media (max-width:640px) {
    .bo_list .list_grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .bo_list .grid_item { border-radius: 8px; }
    .bo_list .grid_item .item_chk { padding: 6px 10px; font-size: 11px; }
    .bo_list .grid_item .item_subject { 
        padding: 10px 12px 6px; 
        font-size: 12px; 
        min-height: 40px;
    }
    .bo_list .grid_item .item_footer { padding: 0 12px 10px; gap: 4px; }
    .bo_list .grid_item .item_writer { font-size: 11px; }
    .bo_list .grid_item .item_info > div { font-size: 10px; gap: 6px; }
    .bo_list .grid_item .item_info .info_panel { gap: 8px; }
}

@media (max-width:480px) {
    .bo_list .list_grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .bo_list .grid_item .item_img {
        aspect-ratio: 264/352;
    }

    /* 플랫폼 필터 모바일 */
    .platform-filter {
        gap: 5px;
        padding: 15px 0 20px;
    }
    .platform-filter .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
    }
    .platform-filter .filter-btn .filter-icon {
        width: 16px;
        height: 16px;
    }
    .platform-filter .filter-btn i.filter-icon {
        font-size: 16px;
    }
}

/* IGDB 콘텐츠 래퍼 */
.igdb-wrap {
    width: 90%;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .igdb-wrap {
        width: 98%;
    }
}
