/* Plaza (Board) Styles */
:root {
    --plaza-primary: #2d3436;
    --plaza-accent: #e17055;
    --border-color: #eee;
}

/* Wide board detail pages */
.board-detail-section {
    background: #fff;
    padding: 36px 0 88px;
}

.board-detail-shell {
    width: min(100% - 96px, 1480px);
    margin: 0 auto;
}

.board-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 28px;
    color: #7b8491;
    font-size: 14px;
    line-height: 1.5;
}

.board-detail-breadcrumb a:hover {
    color: #111827;
}

.board-detail-breadcrumb i {
    font-size: 12px;
    color: #9aa3af;
}

.board-detail-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.board-detail-sidebar-title {
    margin: 0 0 18px;
    padding: 18px 0 24px;
    border-top: 2px solid #111827;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.board-detail-side-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.board-detail-side-nav a {
    display: block;
    padding: 11px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.board-detail-side-nav a:hover,
.board-detail-side-nav a.active {
    color: #ff3048;
}

.board-detail-main {
    min-width: 0;
}

.board-detail-main-title {
    margin: 0 0 28px;
    padding: 0 0 27px;
    border-bottom: 1px solid #111827;
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.board-detail-article-title {
    margin: 0 0 20px;
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.42;
    letter-spacing: 0;
    word-break: keep-all;
}

.board-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 14px;
}

.board-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.board-detail-meta strong {
    color: #111827;
    font-weight: 600;
}

.board-detail-content-wrap {
    min-height: 260px;
    padding: 34px 0 54px;
    border-bottom: 1px solid #e5e7eb;
}

.board-detail-content {
    color: #111827;
    font-size: 16px;
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.board-detail-content p {
    margin: 0 0 16px;
}

.board-detail-content img,
.board-detail-content iframe,
.board-detail-content video,
.board-detail-content table {
    max-width: 100%;
}

.board-detail-content img {
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 24px 0;
}

.board-detail-attachments {
    margin-top: 34px;
    border-top: 1px solid #e5e7eb;
}

.board-detail-attachments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 0 10px;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.board-detail-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #f0f1f3;
    color: #111827;
}

.board-detail-file:hover {
    color: #ff3048;
}

.board-detail-file-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    background: #111827;
    color: #fff;
    border-radius: 4px;
}

.board-detail-file-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.board-detail-file-name {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-detail-file-size {
    margin-top: 2px;
    color: #7b8491;
    font-size: 13px;
}

.board-detail-neighbors {
    border-bottom: 1px solid #e5e7eb;
}

.board-detail-neighbor {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #f0f1f3;
    color: #111827;
}

.board-detail-neighbor:hover {
    color: #ff3048;
}

.board-detail-neighbor-label {
    color: #4b5563;
    font-size: 14px;
    font-weight: 800;
}

.board-detail-neighbor-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-detail-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}

.board-detail-list-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 40px;
    padding: 10px 22px;
    background: #ff3048;
    color: #fff;
    border-radius: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.board-detail-list-button:hover {
    background: #e8273e;
    color: #fff;
}

/* Plaza Hero */
.plaza-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1506784983877-45594efa4cbe?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
}

/* Search Bar */
.board-search {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

.search-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    color: #555;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #152c4e;
}

/* Board Table (Notice) */
.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--primary-color);
}

.board-table th,
.board-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.board-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.board-table td.subject {
    text-align: left;
    padding-left: 20px;
}

.board-table a {
    color: #333;
    transition: color 0.2s;
}

.board-table a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.board-table .notice-badge {
    background: #ff6b6b;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.board-table .new-badge {
    color: var(--plaza-accent);
    font-size: 10px;
    margin-left: 5px;
    vertical-align: super;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Exhibition Gallery Grid */
.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.exhibition-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.exhibition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ex-thumb {
    height: 220px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.ex-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exhibition-card:hover .ex-thumb img {
    transform: scale(1.05);
}

.ex-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.ex-status.ongoing {
    background: var(--accent-color);
}

.ex-info {
    padding: 25px;
}

.ex-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: block;
}

.ex-card-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ex-card-meta i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .board-detail-shell {
        width: min(100% - 48px, 1480px);
    }

    .board-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .board-detail-sidebar-title {
        font-size: 26px;
    }

    .board-detail-side-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 22px;
    }

    .board-detail-main-title {
        font-size: 28px;
    }

    .exhibition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .board-detail-section {
        padding: 26px 0 58px;
    }

    .board-detail-shell {
        width: min(100% - 32px, 1480px);
    }

    .board-detail-breadcrumb {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .board-detail-sidebar-title,
    .board-detail-main-title {
        font-size: 24px;
    }

    .board-detail-article-title {
        font-size: 23px;
    }

    .board-detail-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .board-detail-content-wrap {
        min-height: 220px;
        padding: 28px 0 44px;
    }

    .board-detail-content {
        font-size: 15px;
        line-height: 1.78;
    }

    .board-detail-neighbor {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .board-detail-neighbor-title {
        white-space: normal;
    }

    .exhibition-grid {
        grid-template-columns: 1fr;
    }

    .board-table th:nth-child(3),
    .board-table th:nth-child(4),
    .board-table td:nth-child(3),
    .board-table td:nth-child(4) {
        display: none;
        /* Hide Writer/Views on mobile */
    }
}
