/* 게시글 상세 페이지 스타일 */
.post-details-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-author, .post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.post-content {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.content-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

.post-actions {
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.action-group {
    display: flex;
    gap: 0.75rem;
}

.comments-section {
    padding: 2rem;
}

.comments-header {
    margin-bottom: 1.5rem;
}

.comments-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-count {
    background: #3b82f6;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.comments-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-body p {
    margin: 0 0 0.75rem 0;
    color: #374151;
    line-height: 1.6;
}

.modal-warning {
    color: #ef4444 !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-actions {
    padding: 1rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-actions .btn {
    min-width: 80px;
    justify-content: center;
}

/* 댓글 섹션 스타일 */
.comment-input-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    background: white;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.char-count {
    font-size: 0.75rem;
    color: #6b7280;
}

.comment-login-prompt {
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.comment-login-prompt a {
    color: #3b82f6;
    text-decoration: none;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-text:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-text.btn-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.comment-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

.comment-edit-form {
    margin-top: 0.75rem;
}

.edit-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.load-more-section {
    margin-top: 1.5rem;
    text-align: center;
}

.separator {
    margin-bottom: 1rem;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.separator span {
    background: white;
    padding: 0 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    position: relative;
    z-index: 1;
}

.new-comment-separator {
    margin: 1rem 0;
    position: relative;
    text-align: center;
}

.new-comment-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #3b82f6;
}

.new-comment-separator span {
    background: white;
    padding: 0 1rem;
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}