/* 커뮤니티 상세보기 스타일 - 공지사항과 동일한 디자인 */
.community-detail-page {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background-color: #f8f9fa;
    padding: 20px 0;
}

.community-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.community-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background: #5a6268;
}

.community-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-detail-title i {
    color: #007bff;
    font-size: 24px;
}

.community-detail-title h1 {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.community-detail-content {
    padding: 30px;
}

.community-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 80px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #666;
    word-break: break-word;
}

.community-body {
    margin-bottom: 30px;
}

.community-content-text {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.content-indent {
    padding-left: 20px;
    text-indent: 0;
}

.community-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.list-btn, .edit-btn, .delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 100px;
}

.list-btn {
    background: #6c757d;
    color: white;
}

.list-btn:hover {
    background: #5a6268;
    color: white;
}

.edit-btn {
    background: #007bff;
    color: white;
}

.edit-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .community-detail-page {
        margin-top: 60px;
        padding: 10px 0;
    }
    
    .community-detail-container {
        margin: 0 10px;
    }
    
    .community-detail-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .community-detail-title h1 {
        font-size: 24px;
    }
    
    .community-detail-content {
        padding: 20px;
    }
    
    .community-info-box {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-label {
        width: auto;
    }
    
    .community-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .list-btn, .edit-btn, .delete-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .comments-container {
        margin: 0 10px;
    }
    
    .comments-header {
        padding: 15px 20px;
    }
    
    .comment-form {
        padding: 15px 20px;
    }
    
    .comment-login-required {
        margin: 0 20px 20px 20px;
    }
    
    .comments-list {
        padding: 0 20px 20px 20px;
    }
}

/* 댓글 섹션 스타일 */
.comments-section {
    margin-top: 30px;
    padding: 0;
    background: transparent;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.comments-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.comments-header h3 i {
    color: #007bff;
}

/* 댓글 작성 폼 스타일 */
.comment-form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-title i {
    color: #007bff;
}

.comment-form-field {
    margin-bottom: 15px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.comment-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-comment-submit {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-comment-submit:hover {
    background: #0056b3;
}

.btn-comment-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-comment-reset:hover {
    background: #5a6268;
}

.comment-count {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.comments-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    box-sizing: border-box;
}

.comment-form {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
}

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

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.comment-submit-btn:hover {
    background: #5a6fd8;
}

.comment-login-required {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-login-required a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.comment-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.comment-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.comment-author i {
    font-size: 0.9rem;
    color: #007bff;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-date {
    color: #999;
    font-size: 0.9rem;
}

.comment-delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.comment-delete-btn:hover {
    background: #f8d7da;
}

.comment-content {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

.no-comments p {
    margin: 0;
    font-size: 1.1rem;
}

/* 첨부 파일 스타일 */
.attached-files {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.attached-files h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attached-files h4 i {
    color: #007bff;
}

.file-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.file-download-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.file-download-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
    color: #6c757d;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.85rem;
    color: #999;
    margin-top: 3px;
}

.download-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #0056b3;
}

/* 액션 버튼 스타일 */
.action-buttons {
    display: flex;
    gap: 10px;
}

/* 모바일 반응형 - 댓글 */
@media (max-width: 768px) {
    .comments-section {
        padding: 0;
    }
    
    .comments-container {
        padding: 20px;
    }
    
    .comment-form-section {
        padding: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-actions,
    .comment-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .comment-form {
        padding: 15px;
    }
    
    .comment-item {
        padding: 12px;
    }
    
    .comment-form-buttons {
        flex-direction: column;
    }
    
    .btn-comment-submit,
    .btn-comment-reset {
        width: 100%;
        justify-content: center;
    }
    
    .file-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}




