@charset "utf-8";

/* ================================================================
   보증놀이터 자유게시판 스킨
   ================================================================ */

/* 래퍼 */
#free_board { width: 100%; }

/* ── 상단 배너 ── */
.fr-top-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 16px;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.fr-top-banner::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, #e63946 0%, #c0392b 100%);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.fr-banner-left { position: relative; z-index: 1; flex: 1; }
.fr-banner-eyebrow {
    font-size: 11px; font-weight: 700; color: #e63946;
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0 0 6px;
}
.fr-banner-left h1 {
    font-size: 18px; font-weight: 800; color: #111;
    margin: 0 0 6px; line-height: 1.4; letter-spacing: -.3px;
}
.fr-banner-highlight {
    display: inline-block;
    background: #e63946; color: #fff;
    font-size: 13px; font-weight: 800;
    padding: 2px 10px; border-radius: 4px;
    margin: 0 3px;
}
.fr-banner-left p:not(.fr-banner-eyebrow) {
    font-size: 12px; color: #666; margin: 0; line-height: 1.6;
}
.fr-banner-right {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding-left: 24px;
}
.fr-banner-icon-main { font-size: 48px; color: rgba(255,255,255,.9); }

/* ── 카운트 바 ───────────────────────────────── */
.fr-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 10px;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #e63946;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 8px;
}
.fr-count-bar strong { color: #111; font-weight: 700; }
.fr-bar-right { display: flex; align-items: center; gap: 6px; }
.fr-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.fr-icon-btn:hover { background: #e63946; color: #fff; border-color: #e63946; }

/* ── 검색 폼 ─────────────────────────────────── */
.fr-search-form {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    padding: 10px 14px;
    margin-bottom: 10px;
    gap: 6px;
    align-items: center;
}
.fr-search-form.open { display: flex; }
.fr-search-form select {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 12px;
    outline: none;
    background: #fff;
    height: 36px;
    min-width: 80px;
}
.fr-search-form input[type=text] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 12px;
    font-size: 12px;
    outline: none;
    height: 36px;
}
.fr-search-form button[type=submit] {
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0 18px;
    height: 36px;
    font-size: 13px;
    cursor: pointer;
}


/* ── 테이블 ──────────────────────────────── */
.fr-table { width: 100%; border-collapse: collapse; background: #fff; }
.fr-table thead tr { background: #1a1a2e; }
.fr-table thead th {
    padding: 11px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border-bottom: none;
    text-align: center;
    white-space: nowrap;
}
.fr-table thead th.th-left { text-align: left; padding-left: 14px; }
.fr-table tbody tr { border-bottom: 1px solid #ebebeb; }
.fr-table tbody tr:hover td { background: #fff5f5 !important; }
.fr-table tbody td {
    padding: 9px 8px;
    font-size: 13px;
    color: #333;
    vertical-align: middle;
    text-align: center;
    height: 42px;
}
.fr-table tbody td.td-left { text-align: left; padding-left: 12px; }
.fr-table tbody tr:nth-child(even) td { background: #f9f9f9; }

/* 열 너비 */
.fr-table .col-num  { width: 60px; color: #999; font-size: 12px; }
.fr-table .col-name { width: 110px; font-size: 12px; color: #444; }
.fr-table .col-date { width: 70px; color: #aaa; font-size: 12px; }
.fr-table .col-hit  { width: 58px; color: #999; font-size: 12px; }

/* 공지 배지 */
.fr-notice-badge {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

/* 제목 */
.fr-title-a {
    display: inline;
    color: #222;
    text-decoration: none;
    transition: color .15s;
    font-size: 13px;
}
.fr-title-a:hover { color: #e63946; }

/* 새글 N 배지 */
.fr-new {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    vertical-align: middle;
    margin-left: 4px;
    border-radius: 3px;
    line-height: 14px;
}

/* 댓글 수 */
.fr-cmt {
    color: #e63946;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

/* 첨부 아이콘 */
.fr-file-icon {
    display: inline-block;
    background: #ddd;
    color: #666;
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 2px;
    margin-left: 3px;
    vertical-align: middle;
}

/* 작성자 */
.fr-nick-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.fr-nick-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.fr-nick-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fr-nick-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #444;
}

/* 빈 테이블 */
.fr-empty {
    text-align: center;
    color: #bbb;
    padding: 30px 0;
    font-size: 13px;
}

/* ── 페이지네이션 ─────────────────────────── */
.fr-pg-wrap {
    text-align: center;
    padding: 14px 0 4px;
}
.fr-pg-wrap .pg_wrap { display: inline-block; }

/* ── 하단 정보 섹션 ──────────────────────── */
.fr-info { margin-top: 22px; }

.fr-what-box {
    position: relative; background: #111; border-radius: 10px;
    overflow: hidden; margin-bottom: 12px; padding: 28px 32px; color: #fff;
}
.fr-tape-deco {
    position: absolute; top: 0; right: 0; width: 160px; height: 160px;
    background: repeating-linear-gradient(-45deg, rgba(255,220,0,.15) 0, rgba(255,220,0,.15) 12px, rgba(0,0,0,.06) 12px, rgba(0,0,0,.06) 24px);
    border-radius: 0 10px 0 0;
}
.fr-what-inner { position: relative; z-index: 1; }
.fr-what-title { font-size: 18px; font-weight: 900; color: #fff; margin: 0 0 14px; letter-spacing: -.3px; }
.fr-what-box p { font-size: 12px; line-height: 2; color: rgba(255,255,255,.75); margin: 0; }

.fr-guide { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 12px; border: 1px solid #eee; }
.fr-guide-hd {
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(90deg, #e63946 0%, #c0392b 100%);
    letter-spacing: -.2px;
}
.fr-caution .fr-guide-hd { background: linear-gradient(90deg, #c0392b 0%, #96281b 100%); }
.fr-guide-intro {
    padding: 14px 20px 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.9;
    border-bottom: 1px solid #f5f5f5;
}
.fr-guide-list {
    margin: 0;
    padding: 16px 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fr-guide-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: #333;
    line-height: 1.75;
}
.fr-guide-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #e63946;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.fr-caution .fr-guide-num { background: #c0392b; }
.fr-guide-sub {
    font-size: 13px;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .fr-top-banner { padding: 22px 20px; }
}
@media (max-width: 768px) {
    .fr-top-banner { padding: 20px 16px; min-height: 110px; }
    /* 좁은 화면에서는 장식 면적을 줄여 설명문을 가리지 않는다. */
    .fr-top-banner::after {
        width: 8px;
        clip-path: none;
    }
    .fr-banner-right { display: none; }
    .fr-banner-left h1 { font-size: 15px; }
    .fr-banner-eyebrow { font-size: 10px; }
}
@media (max-width: 480px) {
    .fr-top-banner { padding: 16px 12px; min-height: 90px; }
    .fr-banner-left h1 { font-size: 13px; }
}
