/* 🎨 Premium Board List Styles */
.premium-board-wrap {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
    margin-bottom: 40px;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.premium-table th {
    background-color: #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    padding: 20px 15px;
    border-bottom: 2px solid #cbd5e1;
}
.premium-table td {
    padding: 18px 15px;
    color: #334155;
    font-size: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.premium-table tbody tr {
    transition: all 0.2s ease;
}
.premium-table tbody tr:hover {
    background-color: #fcfcfd;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transform: scale(1.001);
}
.title-cell {
    text-align: left !important;
}
.post-title-link {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.post-title-link:hover {
    color: #3b82f6;
}
.comment-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}
.file-icon {
    color: #94a3b8;
    margin-left: 8px;
    font-size: 0.9rem;
    vertical-align: middle;
}
/* Pagination & Actions */
.board-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
}
.premium-pagination {
    display: flex;
    gap: 8px;
}
.premium-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.premium-pagination a:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.premium-pagination a.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}
/* Search Form */
.premium-search {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.premium-search form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    align-items: center;
}
.premium-search input {
    border: none;
    background: transparent;
    padding: 10px 15px 10px 25px;
    width: 380px;
    outline: none;
    border-right: none;
    font-size: 1rem;
}
.premium-search .camera-btn {
    background: none !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    box-shadow: none !important;
    flex-shrink: 0;
}
.premium-search .camera-btn:hover {
    color: #3b82f6 !important;
}
.premium-search .search-submit-btn {
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.premium-search .search-submit-btn:hover {
    background: #0f172a;
}
.board-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #64748b;
    margin-right: 10px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.mobile-badge {
    display: none;
}

/* 🖼️ Gallery & Pinboard Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.gallery-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.gallery-img-box {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-no-img {
    font-size: 3rem;
    color: #cbd5e1;
}
.gallery-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.gallery-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
    transition: color 0.2s;
}
.gallery-card-title:hover {
    color: #3b82f6;
}
.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

/* 📌 Pinboard Masonry Grid */
.pinboard-masonry-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
    margin-bottom: 40px;
}
.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.pinboard-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
    break-inside: avoid;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pinboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.pinboard-img-box {
    width: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}
.pinboard-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* 🔘 View Toggle Premium Switch */
.result-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.view-switch-wrap {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    gap: 2px;
}
.view-switch-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.view-switch-btn:hover {
    color: #0f172a;
}
.view-switch-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}

@media (max-width: 1400px) {
    .pinboard-masonry-grid { gap: 15px; }
}
@media (max-width: 768px) {
    /* 모바일에서는 제목(3) 빼고 다 숨김 */
    .premium-table th:nth-child(1),
    .premium-table td:nth-child(1),
    .premium-table th:nth-child(2),
    .premium-table td:nth-child(2),
    .premium-table th:nth-child(4),
    .premium-table td:nth-child(4),
    .premium-table th:nth-child(5),
    .premium-table td:nth-child(5),
    .premium-table th:nth-child(6),
    .premium-table td:nth-child(6) {
        display: none;
    }
    .mobile-badge {
        display: inline-block;
        margin-bottom: 5px;
    }
    .premium-search {
        width: 100%;
        margin-top: 30px !important;
    }
    .premium-search form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .premium-search input {
        padding: 8px 10px 8px 15px !important;
        font-size: 0.85rem !important;
        width: auto !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
    }
    .premium-search .camera-btn {
        padding: 8px 10px !important;
        font-size: 1rem !important;
    }
    .premium-search .search-submit-btn {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    .section-padding { padding: 50px 0 100px 0; }
    .container { padding: 0 10px; width: 100%; max-width: 100%; }
    .premium-board-wrap {
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 25px;
    }
    .result-header-area {
        flex-direction: column;
        align-items: stretch;
    }
    .view-switch-wrap {
        width: 100%;
        display: flex;
        gap: 2px;
    }
    .view-switch-btn {
        flex: 1;
        justify-content: center;
        white-space: nowrap;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    .premium-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .premium-pagination a {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    /* 📰 모바일용 기본보기(default) 스타일 조절 */
    .search-default-list {
        gap: 12px;
    }
    .search-default-card {
        padding: 16px;
        gap: 16px;
        border-radius: 12px;
        align-items: flex-start;
    }
    .default-card-thumb {
        width: 90px;
        height: 65px;
        border-radius: 6px;
    }
    .default-card-title {
        font-size: 1.02rem;
        max-width: 85%;
    }
    .default-card-summary {
        font-size: 0.86rem;
        -webkit-line-clamp: 1;
        margin-bottom: 8px;
    }
    .default-card-meta {
        font-size: 0.76rem;
        gap: 10px;
        flex-wrap: wrap;
    }
}

/* 📷 Image Search Preview Area */
.search-image-preview-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 5px;
}
.search-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: fit-content;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.search-image-preview .preview-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}
.search-image-preview img {
    max-height: 60px;
    max-width: 100px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    object-fit: contain;
    display: block;
}

/* 📰 New Default View Mode (Magazine-style Card List) */
.search-default-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}
.search-default-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
    display: flex;
    gap: 24px;
    padding: 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}
.search-default-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(0,0,0,0.01);
    border-color: #cbd5e1;
}
.default-card-thumb {
    width: 150px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}
.default-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.search-default-card:hover .default-card-thumb img {
    transform: scale(1.04);
}
.default-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}
.default-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}
.default-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}
.default-card-title:hover {
    color: #3b82f6;
}
.default-card-blank-link {
    color: #94a3b8;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}
.default-card-blank-link:hover {
    color: #3b82f6;
}
.default-card-summary {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 12px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.default-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #64748b;
}
.default-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.default-card-meta .meta-item i {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* 🏷️ Badge Style Differentiations */
.board-badge.badge-page {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}
.board-badge.badge-static {
    background-color: #fdf2f8 !important;
    color: #db2777 !important;
    border-color: #fbcfe8 !important;
}
.board-badge.badge-campaign {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border-color: #fde68a !important;
}
.board-badge.badge-volunteer {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}
.board-badge.badge-event {
    background-color: #f5f3ff !important;
    color: #7c3aed !important;
    border-color: #ddd6fe !important;
}
