/* Simple Board Frontend Styles */

/* 글쓰기 버튼 */
.simple-board-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.simple-board-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.simple-board-write-btn:hover {
    background: #555;
}

.simple-board-write-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* 게시판 목록 (갤러리형 3x3) */
.simple-board-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.simple-board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .simple-board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .simple-board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .simple-board-grid {
        grid-template-columns: 1fr;
    }
}

.simple-board-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.simple-board-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.simple-board-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.simple-board-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.simple-board-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.simple-board-item:hover .simple-board-thumbnail img {
    transform: scale(1.05);
}

.simple-board-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 14px;
}

.simple-board-content {
    padding: 15px;
}

.simple-board-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.simple-board-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.simple-board-author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 10px;
}

.simple-board-date {
    white-space: nowrap;
}

/* 빈 목록 */
.simple-board-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 페이징 */
.simple-board-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.simple-board-pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.simple-board-pagination a:hover {
    background: #f5f5f5;
    border-color: #999;
}

.simple-board-pagination a.current {
    background: #333;
    color: #fff;
    border-color: #333;
    pointer-events: none;
}

/* 게시글 상세보기 */
.simple-board-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.simple-board-view-header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.simple-board-view-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.4;
}

.simple-board-view-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.simple-board-view-meta span {
    display: flex;
    align-items: center;
}

.simple-board-view-thumbnail {
    margin-bottom: 30px;
}

.simple-board-view-thumbnail img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.simple-board-view-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.simple-board-view-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.simple-board-view-content p {
    margin-bottom: 1em;
}

.simple-board-view-content h1,
.simple-board-view-content h2,
.simple-board-view-content h3,
.simple-board-view-content h4,
.simple-board-view-content h5,
.simple-board-view-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.simple-board-view-footer {
    display: flex;
    gap: 10px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.simple-board-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.simple-board-btn:hover {
    background: #555;
}

/* 작성 폼 */
.simple-board-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.simple-board-form-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

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

.simple-board-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.simple-board-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.simple-board-form .form-control:focus {
    outline: none;
    border-color: #333;
}

.simple-board-form .button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.simple-board-form .button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.simple-board-form .button-primary {
    background: #333;
    color: #fff;
    border-color: #333;
}

.simple-board-form .button-primary:hover {
    background: #555;
    border-color: #555;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.note-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.note-editing-area .note-editable {
    background-color: #fff;
    min-height: 400px;
}
