/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 2026. 2. 15., 오후 3:55:21
    Author     : Haruki
*/

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.board-title {
    margin: 0;
    padding: 0;
    border-bottom: none;
    font-size: 24px;
    font-weight: 600;
}


/* Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3등분, fr = fraction (비율 단위) */
    /*    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        최소 300px 유지하면서
        들어갈 수 있는 만큼 자동 배치*/
    gap: 20px;
}

/* Card */
.post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    height: 480px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06); /* 옅은 테두리 */
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;   /* 썸네일 비율 */
    overflow: hidden;
    flex-shrink: 0;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;             /* 남은 공간 다 할당 */
    padding: 15px;
    gap: 10px;
}

.card-main {
    flex: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0px;
    color: #111;

    display: -webkit-box;
    -webkit-line-clamp: 2;      /* 2줄 제한 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-summary {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* 3줄 제한 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 메타 전체 영역 */
.card-meta {
    /*border-top: 1px solid #e5e5e5;*/
    margin-top: 0;
    position: relative;
}

.card-meta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -15px;
    right: -15px;
    height: 1px;
    background: #e5e5e5;

    transform: scaleY(0.5);   /* 0.5px 느낌 */
    transform-origin: top;
}

/* 상단 메타 (작성자 + 좋아요) */
.card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* 하단 메타 (날짜, 댓글 등) */
.card-meta-bottom {
    font-size: 13px;
    color: #aaa;
    margin-top: 10px;
}

/* 작성자 영역 */
.author-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 좋아요 */
.likes {
    font-size: 14px;
    color: #777;
}

/* 태그 영역 */
.portfolio-list-tag-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.tag-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-tech-wrapper {
    max-height: 56px;     /* 2줄 높이 */
    overflow: hidden;
}

/* .portfolio-list-tag-area 안에 있는 .tag 요소 */
/* portfoliolist 페이지 태그 공통 */
.portfolio-list-tag-area .tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 500;
}

/* 기간 태그 */
.portfolio-list-tag-area .tag.period {
    background: #eef2ff;
    color: #4c6ef5;
}

/* 기술 태그 */
.portfolio-list-tag-area .tag.tech {
    background: #e6f4ea;
    color: #1e7e34;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
