/* °Ô½ÃÆÇ Àü¿ë CSS - ´Ù¸¥ ½ºÅ¸ÀÏ°ú Ãæµ¹ÇÏÁö ¾Êµµ·Ï ³×ÀÓ½ºÆäÀÌ½º »ç¿ë */
.board-container {
    font-family: '¸¼Àº °íµñ', 'Malgun Gothic', Arial, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.board-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    text-align: center;
}

.board-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.board-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* °Ô½Ã¹° ¸ñ·Ï Å×ÀÌºí */
.board-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.board-table th {
    background-color: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.board-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
}

.board-table .title-column {
    text-align: left;
    padding: 0; /* ÆÐµù Á¦°ÅÇÏ¿© ¸µÅ©°¡ ÀüÃ¼ ¼¿¿µ¿ª Â÷ÁöÇÏµµ·Ï */
}

.board-table .title-link {
    color: #333;
    text-decoration: none;
}

.board-table .title-cell-link {
    display: block; /* ºí·Ï ¿ä¼Ò·Î ¸¸µé¾î ÀüÃ¼ ¼¿ ¿µ¿ªÀ» Â÷Áö */
    padding: 8px 12px; /* ¿ø·¡ tdÀÇ ÆÐµùÀ» ¸µÅ©·Î ÀÌµ¿ */
    width: 100%;
    box-sizing: border-box;
}

.board-table .title-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.board-table .title-cell-link:hover {
    background-color: #f0f8ff; /* È£¹ö ½Ã ¹è°æ »ö»ó */
    text-decoration: underline;
}

.board-table .comment-count {
    color: #007bff;
    font-size: 12px;
}

.board-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.board-table tr:hover {
    background-color: #f5f5f5;
}

/* ÆäÀÌÁö³×ÀÌ¼Ç */
.board-pagination {
    text-align: center;
    margin: 20px 0;
}

.board-pagination a,
.board-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background-color: white;
}

.board-pagination a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.board-pagination .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* ¹öÆ° ½ºÅ¸ÀÏ */
.board-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
}

.board-btn:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.board-btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.board-btn-primary:hover {
    background-color: #0056b3;
    color: white;
}

.board-btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.board-btn-secondary:hover {
    background-color: #545b62;
    color: white;
}

.board-btn-danger {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.board-btn-danger:hover {
    background-color: #c82333;
    color: white;
}

/* °Ô½Ã¹° »ó¼¼ ÆäÀÌÁö */
.board-post-header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.board-post-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.board-post-meta {
    font-size: 13px;
    color: #666;
}

.board-post-meta span {
    margin-right: 15px;
}

/* °Ô½Ã¹° º»¹® ½ºÅ¸ÀÏ */
.board-post-content {
    line-height: 1.6;
    padding: 20px 0;
    min-height: 200px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-family: '¸¼Àº °íµñ', 'Malgun Gothic', Arial, sans-serif;
    color: #333;
    font-size: 13px;
}

.board-post-content img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ddd;
    margin: 10px 0;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.board-post-content img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ¸¶Å©´Ù¿î °Ô½Ã¹° ½ºÅ¸ÀÏ */
.board-post-content.markdown-preview h1, 
.board-post-content.markdown-preview h2, 
.board-post-content.markdown-preview h3,
.board-post-content.markdown-preview h4, 
.board-post-content.markdown-preview h5, 
.board-post-content.markdown-preview h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    color: #333;
    font-weight: bold;
}

.board-post-content.markdown-preview h1 { 
    font-size: 18px; 
    color: #333;
}

.board-post-content.markdown-preview h2 { 
    font-size: 16px; 
    color: #333;
}

.board-post-content.markdown-preview h3 { 
    font-size: 15px;
    color: #333;
}

.board-post-content.markdown-preview h4 { 
    font-size: 14px;
    color: #333;
}

.board-post-content.markdown-preview h5 { 
    font-size: 13px;
    color: #333;
}

.board-post-content.markdown-preview h6 { 
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.board-post-content.markdown-preview p {
    margin: 0.8em 0;
    line-height: 1.6;
}

.board-post-content.markdown-preview table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    border: 1px solid #ddd;
    font-size: 13px;
}

.board-post-content.markdown-preview table th,
.board-post-content.markdown-preview table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
}

.board-post-content.markdown-preview table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.board-post-content.markdown-preview table tr:nth-child(even) {
    background: #f9f9f9;
}

.board-post-content.markdown-preview table tr:hover {
    background: #f5f5f5;
}

.board-post-content.markdown-preview blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #ddd;
    background: #f8f9fa;
    color: #666;
    font-style: italic;
}

.board-post-content.markdown-preview blockquote p {
    margin: 0.5em 0;
}

.board-post-content.markdown-preview code {
    background: #f1f3f4;
    color: #d73a49;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.board-post-content.markdown-preview pre {
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
    border: 1px solid #e9ecef;
}

.board-post-content.markdown-preview pre code {
    background: none;
    padding: 0;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
}

.board-post-content.markdown-preview ul, 
.board-post-content.markdown-preview ol {
    padding-left: 2em;
    margin: 1em 0;
}

.board-post-content.markdown-preview li {
    margin: 0.3em 0;
    line-height: 1.5;
}

.board-post-content.markdown-preview li p {
    margin: 0.2em 0;
}

.board-post-content.markdown-preview strong {
    font-weight: bold;
    color: #333;
}

.board-post-content.markdown-preview em {
    font-style: italic;
    color: #333;
}

.board-post-content.markdown-preview del {
    text-decoration: line-through;
    color: #666;
}

.board-post-content.markdown-preview a {
    color: #007bff;
    text-decoration: none;
}

.board-post-content.markdown-preview a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.board-post-content.markdown-preview hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 1.5em 0;
}

/* ¸¶Å©´Ù¿î ÇÁ¸®ºä ÀÌ¹ÌÁö ½ºÅ¸ÀÏ */
.board-post-content.markdown-preview img,
.markdown-preview img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ddd;
    margin: 10px 0;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.board-post-content.markdown-preview img:hover,
.markdown-preview img:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ÀÎ¶óÀÎ ÄÚµå ½ºÅ¸ÀÏ °³¼± */
.board-post-content.markdown-preview p code,
.board-post-content.markdown-preview li code {
    background: #f1f3f4;
    color: #d73a49;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ÁßÃ¸ ¸ñ·Ï ½ºÅ¸ÀÏ */
.board-post-content.markdown-preview ul ul li::before {
    content: "¢¹";
    color: #74b9ff;
}

.board-post-content.markdown-preview ul ul ul li::before {
    content: "?";
    color: #a29bfe;
}

/* Ã·ºÎÆÄÀÏ */
.board-attachments {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.board-attachments h4 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #333;
}

.board-attachment-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

.board-attachment-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.board-attachment-link {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.board-attachment-link:hover {
    text-decoration: underline;
}

.board-attachment-size {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}

/* ÀÌ¹ÌÁö È®´ë ¸ð´Þ */
.board-image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

.board-image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-modal-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.board-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.board-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.board-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ¸ð´Þ ¾Ö´Ï¸ÞÀÌ¼Ç */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Æû ½ºÅ¸ÀÏ */
.board-form {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.board-form-group {
    margin-bottom: 15px;
}

.board-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.board-form-input,
.board-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.board-form-textarea {
    height: 300px;
    resize: vertical;
}

.board-form-file {
    margin-top: 5px;
}

/* ¹öÆ° ±×·ì */
.board-btn-group {
    text-align: center;
    margin: 20px 0;
}

.board-btn-group .board-btn {
    margin: 0 5px;
}

/* °Ë»ö Æû */
.board-search {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.board-search select,
.board-search input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 0 5px;
}

.board-search input[type="text"] {
    width: 200px;
}

/* ¹ÝÀÀÇü µðÀÚÀÎ */
@media (max-width: 768px) {
    .board-content {
        padding: 10px;
    }
    
    .board-table {
        font-size: 12px;
    }
    
    .board-table th,
    .board-table td {
        padding: 6px 4px;
    }
    
    .board-search input[type="text"] {
        width: 150px;
    }
    
    .board-btn-group .board-btn {
        display: block;
        margin: 5px auto;
        width: 100px;
    }
    
    .board-modal-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .board-modal-close {
        top: -40px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}