/**
 * board-view.css — 게시판 상세 (/board/:slug) 반응형 단일 정의
 * Figma 시안: 라운드 16px 히어로 카드, Gugi체 제목(좌상단)·설명(우하단)
 */
.board-view-container {
    position: relative;
}

/* Dark overlay for better text contrast */
.board-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Gradient fade at bottom */
.board-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0));
    z-index: 1;
}

.board-hero {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--chrome-bg);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 28px 20px;
    color: white;
    margin-top: 0;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 1;
    font-weight: 400;
    align-self: flex-end;
    text-align: right;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.board-pending-notice {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 0 10px;
}

.sort-group {
    display: flex;
    gap: 12px;
}

.sort-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.sort-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.sort-pill--pop {
    padding-inline: 14px;
}

.sort-pill--pop i {
    color: #ffffff;
}

.sort-pill:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.post-empty {
    text-align: center;
    padding: 60px;
    color: #bbb;
    font-size: 16px;
}

@media (max-width: 768px) {
    .board-hero {
        height: auto;
        min-height: 140px;
        padding: 20px;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .board-controls {
        margin: 1rem 0;
        padding: 0 4px;
    }

    .sort-group {
        width: 100%;
        gap: 8px;
    }

    .sort-pill {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }

    .sort-pill--pop {
        padding-inline: 10px;
    }
}
