/* 게시글 상세보기 전용 스타일 */
.main-content .post-container {
    max-width: 1300px;
    margin: 0 auto;
    background: white;
    padding: 20px 0;
    overflow: hidden;
}

.main-content .post-header {
    padding: 30px;
    background: #fff;
    color: #333;
    border-bottom: 1px solid #eee;
}

.notice-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.3;
    word-break: break-word;
}

.secret-icon {
    margin-left: 10px;
    font-size: 20px;
    opacity: 0.8;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.post-content {
    padding: 40px 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    min-height: 200px;
    word-break: break-word;
}

/* 대표이미지 스타일 (board/product 전용) */
.main-image-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.main-image-wrapper .main-image {
    max-width: 100%;
    height: auto;
    /*border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
    transition: all 0.3s ease;
}

.main-image-wrapper .main-image:hover {
    /*box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);*/
    transform: scale(1);
    cursor: pointer;
}

/* 첨부파일 영역 */
.post-attachments {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.post-attachments h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.attachment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attachment-item {
    margin-bottom: 10px;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.attachment-link:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.attachment-link i {
    color: #6c757d;
    font-size: 14px;
}

/* Write 페이지의 첨부파일 영역 */
.current-attachment {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.current-attachment p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #495057;
}

.current-attachment a {
    color: #007bff;
    text-decoration: none;
}

.current-attachment a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 첨부된 이미지 스타일 */
.attached-images {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.attached-image {
    margin-bottom: 30px;
    text-align: center;
}

.attached-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.attached-image img:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.image-caption {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* 반응형 이미지 */
@media (max-width: 768px) {
    .attached-images {
        margin-top: 20px;
        padding-top: 15px;
    }

    .attached-image {
        margin-bottom: 20px;
    }

    .attached-image img {
        border-radius: 6px;
    }

    .image-caption {
        font-size: 13px;
        margin-top: 8px;
    }
}

.post-footer {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px;
    background: #f8f9fa;
}

.post-navigation {
    margin-bottom: 30px;
}

.post-navigation a{
    font-size: 0.9rem;
}

.post-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.post-navigation .nav-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

 .nav-label {
    display: inline-block;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

 .nav-title {
    display: inline-block;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

 .btn {
    padding: 5px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

 .btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    background:#666;
}

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

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

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

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

 .btn-outline {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}

 .btn-outline:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: white;
}

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

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

/* 반응형 */
@media (max-width: 768px) {
 .post-container {
        margin: 10px;
        border-radius: 0;
    }

 .post-header {
        padding: 20px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-info {
        font-size: 13px;
        gap: 15px;
    }

    .post-content {
        padding: 30px 20px;
        font-size: 15px;
    }

    .post-footer {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

 .btn {
        padding:8px 15px;
        font-size: 1rem;
    }

    .post-navigation .nav-link {
        padding: 12px;
    }
}

@media (max-width: 480px) {    
    .btn {
        font-size: 0.8rem;
    }
}