/* css/board.css - ?뚰넻怨??섎닎 (寃뚯떆?? ?꾩슜 ?ㅽ???*/

/* 1. ?섏씠?쇱씠???뱀뀡 (Pinned Cards) */
.board-highlights {
    margin-bottom: 48px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.highlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfd 100%);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px 0 0 4px;
}

.highlight-card.result::before {
    background: var(--color-secondary);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: rgba(51,132,255,0.2);
}

.highlight-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.highlight-badge.notice {
    background: rgba(51,132,255,0.1);
    color: var(--color-primary);
}

.highlight-badge.result {
    background: rgba(255,107,107,0.1);
    color: var(--color-secondary);
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    flex: 1;
}

.highlight-date {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

/* 2. 寃뚯떆??寃??諛???而⑦듃濡?(Glassmorphism ?곸슜) */
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    margin-bottom: 24px;
}

.board-tabs {
    display: flex;
    gap: 8px;
}

.board-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-muted);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.board-tab-btn:hover {
    color: var(--color-text-main);
    background: #f1f5f9;
}

.board-tab-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(51,132,255,0.2);
}

.board-search {
    display: flex;
    gap: 12px;
}

.board-search-input {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    width: 250px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.board-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(51,132,255,0.1);
}

.board-search-btn {
    padding: 10px 24px;
    background: var(--color-text-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.board-search-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* 3. 由ъ뒪???뚯씠釉?紐⑤뜕??*/
.modern-table-wrap {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.modern-table th {
    background: #f8fafc;
    padding: 20px 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.modern-table td {
    padding: 20px 16px;
    font-size: 1rem;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s ease;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover td {
    background: #fcfcfd;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table .text-left {
    text-align: left;
}

.modern-table .board-link {
    font-weight: 600;
    color: var(--color-text-main);
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.modern-table .board-link:hover {
    color: var(--color-primary);
}

.modern-table .board-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.modern-table .board-link:hover::after {
    width: 100%;
}

.modern-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.modern-badge.notice {
    background: rgba(51,132,255,0.1);
    color: var(--color-primary);
}

.modern-badge.result {
    background: rgba(255,107,107,0.1);
    color: var(--color-secondary);
}

.modern-badge.gallery {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .board-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .board-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .board-tab-btn {
        white-space: nowrap;
    }
    .board-search {
        flex-direction: column;
    }
    .board-search-input {
        width: 100%;
    }
    .modern-table th:nth-child(1),
    .modern-table th:nth-child(5),
    .modern-table td:nth-child(1),
    .modern-table td:nth-child(5) {
        display: none;
    }
}

/* 4. Gallery Board */
.gallery-board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.gallery-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #caced3;
    font-weight: 800;
    font-size: 2.2rem;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.05);
}

.gallery-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.gallery-meta svg {
    margin-right: 6px;
    fill: none;
}
.gallery-meta.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}

@media (max-width: 992px) {
    .gallery-board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-board-grid {
        grid-template-columns: 1fr;
    }
}
