/* ===================================================
   게임 DB 개별 페이지 — game-db-single.css
   Version: 2.0.0 (2026-03-08)
   전면 디자인 리뉴얼: container 최대폭, 테이블, 카드 UI
   =================================================== */

/* === Container Override — 테마 container-wrapper 최대폭 사용 === */
body:has(.gdb-single-wrap) .site-content,
body:has(.gdb-single-wrap) .site-content .container-wrapper,
body:has(.gdb-single-wrap) #primary,
body:has(.gdb-single-wrap) #content,
body:has(.gdb-single-wrap) .af-container-row {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
}

body:has(.gdb-single-wrap) .site-content>.container-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

/* 사이드바 숨기기 */
body:has(.gdb-single-wrap) #secondary,
body:has(.gdb-single-wrap) aside.widget-area {
    display: none !important;
}

.gdb-single-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 48px;
}

/* === Breadcrumb === */
.gdb-breadcrumb {
    padding: 14px 0 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 0;
}

.gdb-breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.gdb-breadcrumb a:hover {
    color: #E72B99;
}

.gdb-bc-sep {
    margin: 0 10px;
    opacity: 0.25;
    font-size: 11px;
}

.gdb-bc-current {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* ===================================================
   Hero Banner — 전체폭 시네마 스타일
   =================================================== */
.gdb-single-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
}

.gdb-single-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: scale(1.05);
    filter: brightness(0.3) saturate(1.2);
    transition: transform 6s ease-out;
}

.gdb-single-hero:hover .gdb-single-hero-bg {
    transform: scale(1.08);
}

.gdb-single-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 6, 20, 0.98) 0%,
            rgba(10, 6, 20, 0.7) 40%,
            transparent 100%);
}

.gdb-single-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 36px 32px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.gdb-single-hero-info {
    flex: 1;
    min-width: 0;
}

.gdb-single-hero-info .gdb-detail-tier {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}

.gdb-single-hero-info .tier-s {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.gdb-single-hero-info .tier-a {
    background: rgba(231, 43, 153, 0.15);
    color: #E72B99;
    border: 1px solid rgba(231, 43, 153, 0.25);
}

.gdb-single-hero-info .tier-b {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.gdb-single-hero-info .tier-c {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.gdb-single-hero-info .tier-d {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gdb-single-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin: 12px 0 4px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gdb-single-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 8px;
    font-weight: 400;
}

.gdb-single-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.65;
    max-width: 650px;
}

.gdb-single-hero-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gdb-single-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.gdb-btn-steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: #66c0f4 !important;
    border: 1px solid rgba(102, 192, 244, 0.2);
}

.gdb-btn-steam:hover {
    background: linear-gradient(135deg, #2a475e, #3d6080);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gdb-btn-share {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gdb-btn-share:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ===================================================
   Stats Grid — 4열 글래스 카드
   =================================================== */
.gdb-single-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.gdb-stat-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gdb-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(231, 43, 153, 0.4), transparent);
    border-radius: 2px;
}

.gdb-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.gdb-stat-value {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.gdb-stat-unit {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 2px;
}

.gdb-stat-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

/* Review colors */
.gdb-review-overwhelm {
    color: #1a9fff !important;
}

.gdb-review-very-pos {
    color: #66c0f4 !important;
}

.gdb-review-mostly-pos {
    color: #a8db49 !important;
}

.gdb-review-mixed {
    color: #b9a074 !important;
}

.gdb-review-mostly-neg {
    color: #c35c2c !important;
}

.gdb-review-very-neg {
    color: #7f2020 !important;
}

/* Review bar */
.gdb-review-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.gdb-review-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.gdb-review-bar-fill.gdb-review-overwhelm {
    background: #1a9fff;
}

.gdb-review-bar-fill.gdb-review-very-pos {
    background: #66c0f4;
}

.gdb-review-bar-fill.gdb-review-mostly-pos {
    background: #a8db49;
}

.gdb-review-bar-fill.gdb-review-mixed {
    background: #b9a074;
}

/* ===================================================
   Main Grid — 2컬럼 (메인 + 사이드바)
   =================================================== */
.gdb-single-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    margin-bottom: 24px;
}

.gdb-single-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gdb-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===================================================
   Info Card — 공통 카드 스타일
   =================================================== */
.gdb-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px 28px;
}

.gdb-info-card h2 {
    font-size: 15px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 18px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
}

/* ===================================================
   Info Table — 테마 글로벌 border 완전 제거 + 클린 디자인
   =================================================== */
.gdb-info-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 테마 글로벌 border 완전 제거 */
.gdb-info-table th,
.gdb-info-table td,
.gdb-info-table tr,
.gdb-info-card table th,
.gdb-info-card table td,
.gdb-info-card table tr {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top-width: 0 !important;
    border-top-style: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.gdb-info-table tr {
    transition: background 0.15s;
}

.gdb-info-table tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* 행 구분선: box-shadow 사용 (border 대신) */
.gdb-info-table tr:not(:last-child) td {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.gdb-info-table tr:not(:last-child) th {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.gdb-info-table th {
    text-align: left !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.35) !important;
    padding: 14px 24px 14px 0 !important;
    width: 130px !important;
    vertical-align: top !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

.gdb-info-table td {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 14px 0 !important;
    line-height: 1.6 !important;
}

/* === Genre tags === */
.gdb-genre-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(231, 43, 153, 0.1), rgba(123, 47, 190, 0.08));
    color: #E72B99 !important;
    border: 1px solid rgba(231, 43, 153, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    margin: 2px 6px 2px 0;
    transition: all 0.2s;
}

.gdb-genre-tag:hover {
    background: linear-gradient(135deg, rgba(231, 43, 153, 0.2), rgba(123, 47, 190, 0.15));
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(231, 43, 153, 0.15);
}

.gdb-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px 5px 2px 0;
    transition: all 0.15s;
}

.gdb-tag-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
}

/* ===================================================
   Link Grid — 외부 링크 카드
   =================================================== */
.gdb-link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gdb-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 600;
}

.gdb-link-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
}

.gdb-link-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.gdb-link-text {
    flex: 1;
}

.gdb-link-arrow {
    opacity: 0.3;
    transition: opacity 0.2s, transform 0.2s;
}

.gdb-link-card:hover .gdb-link-arrow {
    opacity: 0.7;
    transform: translateX(3px);
}

/* ===================================================
   Related News — 뉴스 사이드바
   =================================================== */
.gdb-related-news {
    border-left: 3px solid #E72B99;
}

.gdb-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gdb-news-list li {
    margin-bottom: 0;
}

.gdb-news-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    transition: all 0.2s;
}

.gdb-news-list li:last-child a {
    border-bottom: none;
}

.gdb-news-list a:hover {
    padding-left: 6px;
}

.gdb-news-list a:hover .gdb-news-title {
    color: #E72B99;
}

.gdb-news-thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.gdb-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gdb-news-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.gdb-news-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================================
   Related Games — 관련 게임 카드
   =================================================== */
.gdb-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gdb-related-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    transition: all 0.2s;
}

.gdb-related-list li:last-child a {
    border-bottom: none;
}

.gdb-related-list a:hover {
    padding-left: 4px;
}

.gdb-related-list a:hover .gdb-rel-name {
    color: #E72B99;
}

.gdb-rel-thumb {
    width: 72px;
    height: 34px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gdb-rel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gdb-rel-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.gdb-rel-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================================
   Write CTA Card
   =================================================== */
.gdb-write-card {
    background: linear-gradient(135deg, rgba(231, 43, 153, 0.05), rgba(123, 47, 190, 0.05));
    border-color: rgba(231, 43, 153, 0.12);
}

.gdb-write-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 14px;
    line-height: 1.5;
}

.gdb-write-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: linear-gradient(135deg, #E72B99, #7B2FBE);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s;
}

.gdb-write-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 43, 153, 0.3);
}

/* ===================================================
   Back Navigation
   =================================================== */
.gdb-back-nav {
    text-align: center;
    padding: 16px 0;
}

.gdb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.gdb-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px);
}

/* ===================================================
   Toast Notification
   =================================================== */
.gdb-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 15, 35, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(231, 43, 153, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    backdrop-filter: blur(16px);
}

.gdb-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1024px) {
    .gdb-single-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 768px) {
    .gdb-single-wrap {
        padding: 0 12px 36px;
    }

    .gdb-single-hero {
        min-height: 220px;
        border-radius: 12px;
    }

    .gdb-single-hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px 24px;
    }

    .gdb-single-title {
        font-size: 1.5rem;
    }

    .gdb-single-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gdb-stat-card {
        padding: 14px 12px;
    }

    .gdb-stat-value {
        font-size: 1.4rem;
    }

    .gdb-single-grid {
        grid-template-columns: 1fr;
    }

    .gdb-info-card {
        padding: 20px;
    }

    .gdb-info-table th {
        width: 90px;
        font-size: 11px;
        padding: 10px 12px 10px 0;
    }

    .gdb-info-table td {
        font-size: 13px;
        padding: 10px 0;
    }

    .gdb-link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gdb-single-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .gdb-single-btn {
        justify-content: center;
    }

    .gdb-single-title {
        font-size: 1.3rem;
    }
}

/* ===================================================
   Light Mode
   =================================================== */
.aft-default-mode .gdb-single-hero-bg {
    filter: brightness(0.4) saturate(1.2);
}

.aft-default-mode .gdb-stat-card,
.aft-default-mode .gdb-info-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.aft-default-mode .gdb-stat-card::before {
    background: linear-gradient(90deg, transparent, rgba(231, 43, 153, 0.3), transparent);
}

.aft-default-mode .gdb-single-title,
.aft-default-mode .gdb-info-card h2 {
    color: #1a1a2e;
}

.aft-default-mode .gdb-stat-value {
    color: #111;
}

.aft-default-mode .gdb-stat-label {
    color: #999;
}

.aft-default-mode .gdb-stat-sub {
    color: #aaa;
}

.aft-default-mode .gdb-info-table td {
    color: #2d2d42 !important;
}

.aft-default-mode .gdb-info-table th {
    color: #8a8a9e !important;
}

.aft-default-mode .gdb-info-table tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

.aft-default-mode .gdb-info-table tr:not(:last-child) td,
.aft-default-mode .gdb-info-table tr:not(:last-child) th {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
}

.aft-default-mode .gdb-tag-chip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    color: #555;
}

.aft-default-mode .gdb-link-card {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.06);
    color: #333 !important;
}

.aft-default-mode .gdb-link-card:hover {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
}

.aft-default-mode .gdb-news-title,
.aft-default-mode .gdb-rel-name {
    color: #333;
}

.aft-default-mode .gdb-news-date,
.aft-default-mode .gdb-rel-meta,
.aft-default-mode .gdb-news-list a,
.aft-default-mode .gdb-related-list a {
    border-color: rgba(0, 0, 0, 0.05);
}

.aft-default-mode .gdb-breadcrumb a {
    color: #888;
}

.aft-default-mode .gdb-bc-current {
    color: #333;
}

.aft-default-mode .gdb-back-btn {
    background: #f5f5f5;
    border-color: #eee;
    color: #666 !important;
}

.aft-default-mode .gdb-back-btn:hover {
    background: #eee;
    color: #333 !important;
}

.aft-default-mode .gdb-write-card {
    background: linear-gradient(135deg, rgba(231, 43, 153, 0.03), rgba(123, 47, 190, 0.03));
}

.aft-default-mode .gdb-write-card p {
    color: #888;
}

.aft-default-mode .gdb-related-news {
    border-left-color: #E72B99;
}

.aft-default-mode .gdb-rel-thumb {
    border-color: rgba(0, 0, 0, 0.08);
}

/* ★ v3.1: 한국어 지원 뱃지 + 새 필드 스타일 */
.gdb-korean-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.gdb-lang-count {
    color: #999;
    font-size: 0.85em;
    margin-left: 8px;
}
.gdb-metascore {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 8px;
}
.gdb-metascore.positive { background: #6c3; color: #fff; }
.gdb-metascore.mixed { background: #fc3; color: #333; }
.gdb-metascore.negative { background: #f33; color: #fff; }
