/* Board Page Styles - Matching Main Page Design */
.board-container {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 45%), 
                radial-gradient(circle at 10% 80%, rgba(99, 102, 241, 0.15), transparent 55%), 
                var(--light-gray);
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.board-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
               radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

/* Page Header */
.board-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.board-header .section-header h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

/* Category Navigation */
.board-navigation {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.nav-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.nav-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.nav-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.nav-header i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 2px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.category-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover {
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab.active {
    border-color: var(--primary-color);
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.tab-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-text {
    font-weight: 600;
}

/* Search Section */
.board-search {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.search-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.search-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-select-wrapper {
    flex-shrink: 0;
}

.search-select {
    width: 120px;
    height: 52px;
    padding: 0 16px;
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    background: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    background: var(--white);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: var(--dark-gray);
}

.search-button {
    height: 52px;
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.search-button i {
    font-size: 1rem;
}

/* Board Content */
.board-content {
    position: relative;
    z-index: 1;
}

.board-list-container {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Board Items */
.board-item {
    display: flex;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.board-item:last-child {
    border-bottom: none;
}

.board-item:hover {
    background: rgba(37, 99, 235, 0.02);
    transform: translateX(4px);
}

.board-item:hover .item-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* Notice Items */
.notice-item {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.02));
    border-left: 4px solid var(--primary-color);
}

.notice-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.04));
}

.item-badge {
    flex-shrink: 0;
    margin-right: 20px;
}

.notice-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-number {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    margin-right: 20px;
}

.item-number span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.item-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-title a:hover {
    color: var(--primary-color);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.item-date,
.item-attachment {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-date i,
.item-attachment i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.item-arrow {
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--dark-gray);
    transition: var(--transition);
}

.item-arrow i {
    font-size: 1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.empty-icon {
    font-size: 5rem;
    color: rgba(37, 99, 235, 0.3);
    margin-bottom: 32px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.empty-state p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-select-wrapper {
        width: 100%;
    }
    
    .search-select {
        width: 100%;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .board-container {
        padding: 100px 0 60px;
    }
    
    .board-header .section-header h1 {
        font-size: 2.5rem;
    }
    
    .nav-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .search-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .board-item {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .item-badge,
    .item-number {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .item-content {
        width: 100%;
    }
    
    .item-title {
        font-size: 1rem;
    }
    
    .item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-arrow {
        position: absolute;
        top: 20px;
        right: 20px;
        margin-left: 0;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-icon {
        font-size: 4rem;
    }
    
    .empty-state h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .board-container {
        padding: 90px 0 50px;
    }
    
    .board-header .section-header h1 {
        font-size: 2.2rem;
    }
    
    .nav-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .nav-header h3 {
        font-size: 1.1rem;
    }
    
    .category-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-tab {
        justify-content: center;
        padding: 14px 20px;
    }
    
    .search-card {
        padding: 16px;
    }
    
    .search-select,
    .search-input,
    .search-button {
        height: 48px;
    }
    
    .board-item {
        padding: 16px;
    }
    
    .item-title {
        font-size: 0.95rem;
    }
    
    .item-meta {
        font-size: 0.85rem;
    }
    
    .empty-state {
        padding: 40px 16px;
        border-radius: 16px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading-board {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.loading-board::before {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects */
.board-item:hover .notice-badge {
    transform: scale(1.05);
}

.board-item:hover .item-number span {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Focus States */
.search-select:focus,
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ===== POST DETAIL PAGE STYLES ===== */

.post-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
}

.post-container .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post Header */
.post-header {
    margin-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.post-category {
    display: flex;
    justify-content: center;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Post Content */
.post-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-article {
    padding: 40px;
}

/* Article Header */
.article-header {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 16px;
    word-break: keep-all;
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-item i {
    color: var(--primary);
    font-size: 16px;
}

/* Article Files */
.article-files {
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.files-header {
    margin-bottom: 16px;
}

.files-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.file-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.file-download-btn:hover {
    background: var(--primary-light);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.download-icon {
    color: var(--primary);
    font-size: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.file-download-btn:hover .download-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Article Body */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

.article-body p {
    margin-bottom: 16px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin: 32px 0 16px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-light);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.article-body code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-body pre {
    background: var(--bg-dark);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Article Footer */
.article-footer {
    border-top: 2px solid var(--border-light);
    padding-top: 24px;
}

.article-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn i {
    font-size: 16px;
}

/* Post Navigation */
.post-navigation {
    margin-bottom: 40px;
}

.nav-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-button.list-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary);
    font-weight: 600;
}

.nav-button.list-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px) scale(1.05);
}

.nav-button.secondary {
    border-color: var(--border);
    color: var(--text-muted);
}

.nav-button.secondary:hover {
    background: var(--text-muted);
    color: var(--white);
    border-color: var(--text-muted);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Responsive Design for Post Detail */
@media (max-width: 768px) {
    .post-container {
        padding: 20px 0;
    }
    
    .post-container .container {
        padding: 0 16px;
    }
    
    .post-article {
        padding: 24px 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        gap: 16px;
    }
    
    .article-files {
        padding: 20px 16px;
    }
    
    .file-download-btn {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .file-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .file-name {
        font-size: 14px;
    }
    
    .nav-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .nav-actions {
        justify-content: center;
    }
    
    .nav-button {
        justify-content: center;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .post-container {
        padding: 16px 0;
    }
    
    .post-article {
        padding: 20px 16px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-badge {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .breadcrumb-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* FAQ 페이지는 인라인 스타일로 처리됨 */
