/* ===================================================
   먹튀검증 게시판 style.css
=================================================== */

#fd-wrap { width:100%; }

/* ── 상단 배너 ── */
.fd-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);
}
.fd-top-banner::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, #e94560 0%, #c0392b 100%);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.fd-banner-left { position: relative; z-index: 1; flex: 1; }
.fd-banner-eyebrow {
    font-size: 11px; font-weight: 700; color: #e94560;
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0 0 6px;
}
.fd-banner-left h1 {
    font-size: 18px; font-weight: 800; color: #111;
    margin: 0 0 6px; line-height: 1.4; letter-spacing: -.3px;
}
.fd-banner-highlight {
    display: inline-block;
    background: #e94560; color: #fff;
    font-size: 13px; font-weight: 800;
    padding: 2px 10px; border-radius: 4px;
    margin: 0 3px;
}
.fd-banner-sub {
    font-size: 12px; color: #666; margin: 0; line-height: 1.6;
}
.fd-banner-right {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding-left: 24px;
}
.fd-banner-icon-main { font-size: 48px; color: rgba(255,255,255,.9); }
.fd-banner-icon-sub  { font-size: 28px; color: rgba(255,255,255,.55); position: absolute; right: 0; bottom: -4px; }

/* ── 카운트 바 ── */
.fd-count-bar {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 8px 0 10px;
    border-bottom: 2px solid #e94560;
    margin-bottom: 12px;
    flex-wrap: wrap; gap: 6px;
}
.fd-count-text { font-size: 13px; color: #555; }
.fd-count-text strong { color: #111; font-weight: 700; }
.fd-bar-right { display: flex; align-items: center; gap: 6px; }
.fd-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;
}
.fd-icon-btn:hover { background: #e94560; color: #fff; border-color: #e94560; }

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

/* ── 카드 그리드 ── */
.fd-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 900px) { .fd-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fd-card-grid { grid-template-columns: 1fr; } }

/* ── 카드 ── */
.fd-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.fd-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

/* 썸네일 */
.fd-card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a1a2e;
}
.fd-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.fd-card:hover .fd-card-thumb img { transform: scale(1.04); }
.fd-no-thumb {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: rgba(255,255,255,.25);
    font-size: 40px;
}

/* 날짜 배지 */
.fd-date-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(233,69,96,.92);
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
    letter-spacing: .3px;
}

/* 안전 배지 */
.fd-safety-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 11px; font-weight: 800;
    padding: 3px 10px; border-radius: 4px;
}
.fd-badge-safe   { background: #e94560; color: #fff; }
.fd-badge-danger { background: #222; color: #fff; }
.fd-badge-warn   { background: #f39c12; color: #fff; }

/* 카드 바디 */
.fd-card-body {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.fd-info-row {
    display: flex; align-items: baseline; gap: 6px;
    font-size: 12px; line-height: 1.5;
}
.fd-info-lbl {
    flex-shrink: 0;
    color: #999; font-size: 11px;
    min-width: 52px;
}
.fd-info-val {
    color: #222; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
}
.fd-url { color: #5577cc; font-size: 11px; }

/* 별점 */
.fd-rating-row {
    display: flex; align-items: center; gap: 6px;
    margin-top: 4px;
}
.fd-stars-wrap {
    position: relative;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
}
.fd-stars-bg { color: #ddd; letter-spacing: 1px; }
.fd-stars-wrap::before {
    content: '★★★★★';
    position: absolute; left: 0; top: 0;
    color: #f39c12;
    overflow: hidden;
    width: var(--sp, 0%);
    white-space: nowrap;
    letter-spacing: 1px;
}
.fd-score-num {
    font-size: 14px; font-weight: 800; color: #e94560;
}

/* 카드 푸터 */
.fd-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 10px;
    border-top: 1px solid #f0f0f0;
}
.fd-card-stats {
    display: flex; gap: 10px;
    font-size: 11px; color: #aaa;
}
.fd-card-stats span { display: flex; align-items: center; gap: 3px; }
.fd-card-stats i { font-size: 10px; }
.fd-detail-btn {
    font-size: 11px; font-weight: 700;
    color: #e94560; text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #e94560; border-radius: 4px;
    transition: all .15s;
    white-space: nowrap;
}
.fd-detail-btn:hover { background: #e94560; color: #fff; }

/* 빈 상태 */
.fd-empty {
    text-align: center; padding: 60px 0; color: #bbb;
    font-size: 14px;
}
.fd-empty i { font-size: 40px; display: block; margin-bottom: 12px; }

/* 페이지네이션 */
.fd-paging { text-align: center; padding: 14px 0 6px; }
.fd-paging .pg_wrap { display: inline-block; }
.fd-paging .pg { display: inline-flex; gap: 3px; list-style: none; margin: 0; padding: 0; }
.fd-paging .pg li a,
.fd-paging .pg li strong {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; padding: 0 6px;
    border: 1px solid #ddd; border-radius: 4px;
    font-size: 12px; color: #555; text-decoration: none;
    background: #fff; cursor: pointer;
}
.fd-paging .pg li.on a,
.fd-paging .pg li.on strong,
.fd-paging .pg_current a,
.fd-paging .pg_current strong {
    background: #e94560; color: #fff; border-color: #e94560; font-weight: 700;
}
.fd-paging .pg li a:hover { background: #e94560; color: #fff; border-color: #e94560; }

/* ===================================================
   하단 정보 섹션
=================================================== */
.fd-info-section { margin-top: 20px; }

/* 먹튀검증이란 (다크 박스) */
.fd-what-box {
    position: relative;
    min-height: 140px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 36px 40px;
    background: linear-gradient(135deg, #23243f 0%, #17182c 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 24px rgba(24,25,45,.12);
    color: #fff;
}
.fd-tape-deco {
    position: absolute; top: 0; right: 0;
    width: 180px; height: 180px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255,220,0,.18) 0px, rgba(255,220,0,.18) 12px,
        rgba(0,0,0,.08) 12px, rgba(0,0,0,.08) 24px
    );
    border-radius: 0 10px 0 0;
}
.fd-tape-deco::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,220,0,.18) 0px, rgba(255,220,0,.18) 12px,
        transparent 12px, transparent 24px
    );
}
.fd-what-inner { position: relative; z-index: 1; }
.fd-what-title {
    font-size: 20px; font-weight: 900; color: #fff;
    margin: 0 0 18px; letter-spacing: -.3px;
}
.fd-what-box p {
    font-size: 13px; line-height: 2;
    color: rgba(255,255,255,.8); margin: 0;
}

/* 가이드 블록 */
.fd-guide-block {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #eee;
}
.fd-guide-hd {
    background: linear-gradient(90deg, #e94560 0%, #c0392b 100%);
    color: #fff;
    font-size: 16px; font-weight: 900;
    padding: 13px 22px;
    letter-spacing: -.2px;
}
.fd-guide-body {
    padding: 18px 22px;
}
.fd-guide-body p {
    font-size: 13px; line-height: 1.95;
    color: #444; margin: 0 0 14px;
}
.fd-guide-body p:last-child { margin-bottom: 0; }

/* ── 작성 폼 (write.skin.php 공통) ── */
#fdw-wrap { width: 100%; }
.fdw-header {
    background: linear-gradient(90deg, #e94560 0%, #c0392b 100%);
    color: #fff; padding: 14px 20px; border-radius: 8px 8px 0 0;
    margin-bottom: 2px;
}
.fdw-title { font-size: 18px; font-weight: 900; margin: 0; }
.fdw-form {
    background: #fff; border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px; padding: 24px 20px;
}
.fdw-section { margin-bottom: 22px; }
.fdw-section-hd {
    font-size: 13px; font-weight: 700; color: #333;
    border-left: 3px solid #e94560;
    padding-left: 10px; margin-bottom: 12px;
}
.fdw-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.fdw-lbl {
    flex-shrink: 0; width: 80px;
    font-size: 12px; color: #555; padding-top: 9px;
    text-align: right;
}
.fdw-lbl.req::after { content: ' *'; color: #e94560; }
.fdw-input {
    flex: 1; border: 1px solid #ddd; border-radius: 5px;
    padding: 8px 12px; font-size: 13px; outline: none;
    transition: border-color .15s;
}
.fdw-input:focus { border-color: #e94560; }
.fdw-select {
    flex: 1; border: 1px solid #ddd; border-radius: 5px;
    padding: 8px 12px; font-size: 13px; outline: none;
    background: #fff; height: 38px;
}
.fdw-hint { font-size: 11px; color: #aaa; margin-top: 4px; display: block; }
.fdw-file-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f5f5f5; border: 1px solid #ddd; border-radius: 5px;
    padding: 8px 16px; font-size: 12px; color: #555;
    cursor: pointer; transition: all .15s;
}
.fdw-file-label:hover { background: #e94560; color: #fff; border-color: #e94560; }
.fdw-file-input { display: none; }
.fdw-preview { max-width: 220px; margin-top: 8px; border-radius: 6px; display: none; }
.fdw-actions {
    display: flex; justify-content: flex-end; gap: 8px;
    padding-top: 14px; border-top: 1px solid #f0f0f0; margin-top: 4px;
}
.fdw-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 6px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    text-decoration: none; border: none;
}
.fdw-btn-cancel { background: #f5f5f5; color: #555; }
.fdw-btn-cancel:hover { background: #e0e0e0; }
.fdw-btn-submit { background: #e94560; color: #fff; }
.fdw-btn-submit:hover { background: #c0392b; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .fd-top-banner { padding: 22px 20px; }
}
@media (max-width: 768px) {
    .fd-top-banner { padding: 20px 16px; min-height: 110px; }
    .fd-banner-right { display: none; }
    .fd-banner-left h1 { font-size: 15px; }
    .fd-banner-eyebrow { font-size: 10px; }
    .fd-what-box { padding: 28px 22px; }
    .fd-tape-deco { width: 130px; height: 130px; }
}
@media (max-width: 480px) {
    .fd-top-banner { padding: 16px 12px; min-height: 90px; }
    .fd-banner-left h1 { font-size: 13px; }
    .fd-what-box { padding: 24px 18px; }
    .fd-what-title { font-size: 18px; margin-bottom: 14px; }
    .fd-what-box p { font-size: 12px; line-height: 1.85; }
}
