/* =========================
   Cyberpunk Feed Skin
   feed.css
========================= */

.pin-layout{
    min-height:100vh;
    color:#fff;
    background:transparent;
}

/* 게시판 메인 영역 */
.pin-main{
    width:100%;
    min-height:100vh;
    padding:16px 24px 60px;
    box-sizing:border-box;
    background:transparent;
}

/* 검색창 */
.pin-search{
    position:sticky;
    top:0;
    z-index:50;
    padding:0 0 18px;
    background:transparent;
}

.pin-search input[type="text"]{
    width:100%;
    height:46px;
    box-sizing:border-box;

    border:1px solid rgba(94,234,255,.16);
    border-radius:14px;
    outline:none;

    background:rgba(255,255,255,.08);
    color:#fff;

    padding:0 18px;
    font-size:15px;

    box-shadow:
        inset 0 0 20px rgba(255,255,255,.03),
        0 0 20px rgba(0,220,255,.05);
}

.pin-search input[type="text"]::placeholder{
    color:rgba(255,255,255,.45);
}

/* 카테고리 */
.pin-category{
    display:flex;
    gap:22px;
    overflow-x:auto;
    padding:8px 0 22px;
    white-space:nowrap;
}

.pin-category a{
    color:rgba(255,255,255,.7);
    font-size:14px;
    font-weight:700;
    padding-bottom:6px;
}

.pin-category a:hover,
.pin-category a.active{
    color:#5eeaff;
}

.pin-category a.active{
    border-bottom:2px solid #5eeaff;
}

/* Pinterest Feed */
.pin-feed{
    column-count:6;
    column-gap:16px;
}

/* 카드 */
.pin-card{
    display:block;
    break-inside:avoid;
    margin-bottom:18px;

    color:#fff;
    background:rgba(255,255,255,0.04);
    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,0.06);
    overflow:hidden;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.pin-card:hover{
    transform:translateY(-4px);
    border-color:rgba(94,234,255,.18);
    box-shadow:0 12px 28px rgba(0,0,0,.28);
}

/* 썸네일 */
.pin-thumb{
    overflow:hidden;
    background:#11131c;
}

.pin-thumb img{
    width:100%;
    height:auto;
    display:block;
    transition:.25s ease;
}

.pin-card:hover .pin-thumb img{
    filter:brightness(.9);
    transform:scale(1.02);
}

/* 카드 높이 변화 */
.pin-card:nth-child(3n) .pin-thumb img{
    height:340px;
    object-fit:cover;
}

.pin-card:nth-child(4n) .pin-thumb img{
    height:260px;
    object-fit:cover;
}

.pin-card:nth-child(5n) .pin-thumb img{
    height:420px;
    object-fit:cover;
}

/* 이미지 없는 카드 */
.pin-no-thumb{
    height:220px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(135deg,#161823,#25283a);
    color:rgba(255,255,255,.45);
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
}

/* 카드 텍스트 */
.pin-card-body{
    display:block;
    padding:10px 12px 12px;
    background:rgba(0,0,0,.18);
}

.pin-title{
    display:block;
    color:#fff;
    font-size:14px;
    line-height:1.35;
}

.pin-meta{
    margin-top:5px;
    display:flex;
    gap:5px;
    color:rgba(255,255,255,.5);
    font-size:12px;
}

/* 반응형 */
@media(max-width:1400px){
    .pin-feed{
        column-count:5;
    }
}

@media(max-width:1100px){
    .pin-feed{
        column-count:4;
    }
}

@media(max-width:800px){
    .pin-feed{
        column-count:3;
    }
}

@media(max-width:560px){
    .pin-main{
        padding:12px 14px 50px;
    }

    .pin-feed{
        column-count:2;
    }
}