@charset "utf-8";

:root {
    --bg-main: #0a1018;
    --bg-con: #111820;
    --bg-card: #161f2a;
    --border-color: #1e2d3d;
    --border-bright: #2a3f54;
    --accent-cyan: #64ffda;
    --accent-cyan-glow: rgba(100, 255, 218, 0.2);
    --text-main: #e8f4f8;
    --text-sub: #7a90a8;
    --text-dim: #3d5268;
}

#bo_list_wrap, #bo_w {
    background: rgba(0,0,0,0);
    color: var(--text-main);
    padding: 24px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 버튼 */
.btn_b02 {
    background: var(--accent-cyan); color: #000;
    padding: 8px 20px; border-radius: 6px;
    font-weight: 700; text-decoration: none; display: inline-block;
}
.btn_b01 {
    background: var(--bg-card); color: var(--text-sub);
    border: 1px solid var(--border-color);
    padding: 8px 15px; border-radius: 6px; cursor: pointer;
}

/* 페이징 */
.pg_wrap { text-align: center; margin-top: 28px; }
.pg_page, .pg_current {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin: 0 2px;
    background: var(--bg-card); color: var(--text-sub);
    text-decoration: none; border-radius: 50%;
    font-size: 0.9em; border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.pg_page:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.pg_current { background: var(--accent-cyan); color: #000; font-weight: 700; border-color: var(--accent-cyan); }

/* 폼 공통 */
input.frm_input, textarea.frm_input, select.frm_input {
    background: var(--bg-con) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    padding: 10px 12px; border-radius: 6px;
    transition: border-color 0.2s !important;
    font-family: 'Noto Sans KR', sans-serif;
}
input.frm_input:focus, textarea.frm_input:focus, select.frm_input:focus {
    border-color: var(--accent-cyan) !important; outline: none !important;
}

/* =========================================================
   LIST
   ========================================================= */
.bo_fx {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 12px;
   }
#bo_list_total { color: var(--text-sub); font-size: 0.88em; letter-spacing: 0.04em; }
#bo_list_total b { color: var(--accent-cyan); }

.char-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px; margin-bottom: 40px;
}

.char-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px; overflow: hidden;
    position: relative; height: 320px; cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s, border-color 0.35s;
}
.char-card-item::after {
    content: '';
    position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(135deg, rgba(100,255,218,0.07) 0%, transparent 55%);
    opacity: 0; transition: opacity 0.35s; z-index: 4; pointer-events: none;
}
.char-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px var(--accent-cyan),
                0 24px 60px rgba(0,0,0,0.65),
                0 0 50px var(--card-shadow-color, rgba(100,255,218,0.1));
    border-color: var(--accent-cyan);
}
.char-card-item:hover::after { opacity: 1; }

.char-card-link { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }

.char-thumb { width: 100%; height: 100%; background: #000; position: relative; z-index: 1; }
.char-thumb img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.char-card-item:hover .char-thumb img { transform: scale(1.02); }

.char-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 78%;
    background: linear-gradient(to top,
        rgba(10,16,24,0.98) 0%,
        rgba(10,16,24,0.7) 40%,
        rgba(10,16,24,0.15) 70%,
        transparent 100%);
    pointer-events: none; z-index: 2;
}

.char-rule-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 0.7em; font-weight: 700; color: #000;
    background: var(--accent-cyan);
    padding: 3px 10px; border-radius: 20px; z-index: 10;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.char-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 14px 16px 18px; z-index: 3;
}
.char-subject {
    font-size: 1.2em; font-weight: 700; color: #fff;
    margin: 0; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9);
    letter-spacing: -0.01em;
}
.char-subject .cnt { font-size: 0.65em; color: var(--accent-cyan); margin-left: 5px; vertical-align: top; }
.char-org-name {
    font-size: 0.78em; color: rgba(255,255,255,0.45);
    font-weight: 300; margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.empty_list {
    grid-column: 1/-1; text-align: center;
    padding: 100px 0; color: var(--text-dim); font-size: 0.9em; letter-spacing: 0.05em;
}

/* =========================================================
   WRITE
   ========================================================= */
.tbl_frm_write { width: 100%; border-collapse: collapse; }
.tbl_frm_write th {
    width: 130px; padding: 12px 16px 12px 0;
    vertical-align: top; text-align: left;
    font-size: 0.82em; font-weight: 500; color: var(--text-sub);
    white-space: nowrap; border-bottom: 1px solid var(--border-color);
}
.tbl_frm_write td {
    padding: 10px 0; border-bottom: 1px solid var(--border-color); vertical-align: top;
}
.tbl_frm_write tr:last-child th,
.tbl_frm_write tr:last-child td { border-bottom: none; }

.btn_confirm.write_div { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.btn_submit {
    background: var(--accent-cyan); color: #000; font-weight: 700;
    border: none; padding: 11px 28px; border-radius: 8px;
    cursor: pointer; font-size: 0.95em; transition: opacity 0.2s;
}
.btn_submit:hover { opacity: 0.85; }
.btn_cancel {
    background: transparent; color: var(--text-sub);
    border: 1px solid var(--border-color);
    padding: 11px 20px; border-radius: 8px;
    text-decoration: none; font-size: 0.95em; transition: all 0.2s;
}
.btn_cancel:hover { border-color: var(--text-sub); color: var(--text-main); }

/* =========================================================
   모바일
   ========================================================= */
@media (max-width: 768px) {
    #bo_list_wrap { padding: 0 !important; }
    #bo_w, #bo_v_con { padding: 10px !important; }
    .bo_fx { padding: 10px 14px !important; margin-bottom: 16px !important; }
    .char-gallery-grid {
        gap: 10px; padding: 0 10px;
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        margin-bottom: 16px !important;
    }
    .char-card-item { height: 210px; border-radius: 10px; }
    .char-subject { font-size: 1.0em; }
    .char-rule-badge { top: 8px; left: 8px; font-size: 0.62em; padding: 2px 7px; }
    .char-info { padding: 10px 12px 14px; }
    .pg_wrap { margin-top: 10px; margin-bottom: 12px; }
    .sheet-wrapper { width: 100%; border: none; margin: 0; border-radius: 0; }
    .char-header, .sheet-tabs, .tab-content-area { padding-left: 16px !important; padding-right: 16px !important; }
    .stat-grid-container { grid-template-columns: repeat(2, 1fr) !important; }
    .gauge-grid-container, .profile-grid-container { grid-template-columns: 1fr !important; }
}
