/* ============================
   게시글 상세 페이지 스타일
   ============================ */

/* 메인과 일관된 색상 변수 적용 */
:root {
    --primary-color: #1a4f8a;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --white-color: #fff;
    --success-color: #27ae60;
}

/* 브레드크럼 */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e1e5e9;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb span {
    color: #666;
}

.breadcrumb i {
    color: #ccc;
    font-size: 0.8rem;
}

/* 게시글 메인 */
.post-main {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: 80vh;
}

/* 게시글 헤더 */
.post-header {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-info {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.post-info .author {
    font-weight: 600;
    color: #333;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.btn-like,
.btn-share {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #666;
}

.btn-like:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.btn-share:hover {
    background: #666;
    color: white;
    border-color: #666;
}

/* 게시글 본문 */
.post-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h2 {
    color: #333;
    margin: 30px 0 20px 0;
    font-size: 1.5rem;
    border-left: 4px solid #666;
    padding-left: 15px;
}

.post-content h3 {
    color: #555;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.post-content p {
    margin-bottom: 20px;
    color: #333;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content strong {
    color: #333;
    font-weight: 600;
}

.post-content .highlight {
    background: #f8f9fa;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e1e5e9;
}

.post-content .info-box {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.post-content .warning-box {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    color: #666;
}

/* 지원하기 섹션 */
.apply-section {
    margin-bottom: 30px;
}

.apply-card {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.apply-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.apply-card h3 i {
    margin-right: 10px;
    color: #ffd700;
}

.apply-card p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.apply-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.apply-buttons .btn {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-buttons .btn-primary {
    background: #ffd700;
    color: #333;
}

.apply-buttons .btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.apply-buttons .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.apply-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 게시글 하단 버튼 */
.post-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn-nav {
    background: white;
    color: #666;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav:hover {
    background: #666;
    color: white;
    border-color: #666;
    transform: translateY(-2px);
}

/* 관련 게시글 */
.related-posts {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.related-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 15px;
}

.related-posts h3 i {
    margin-right: 10px;
    color: #666;
}

.related-list {
    display: grid;
    gap: 15px;
}

.related-item {
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: #666;
    background: white;
    transform: translateX(5px);
}

.related-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.related-item h4 a {
    color: #333;
    text-decoration: none;
}

.related-item h4 a:hover {
    color: #666;
}

.related-item .meta {
    font-size: 0.8rem;
    color: #666;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .post-main {
        padding: 20px 0 40px;
    }
    
    .post-header {
        padding: 25px 20px;
    }
    
    .post-header h1 {
        font-size: 1.6rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .post-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post-content {
        padding: 25px 20px;
        font-size: 1rem;
    }
    
    .apply-card {
        padding: 25px 20px;
    }
    
    .apply-buttons {
        flex-direction: column;
    }
    
    .post-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .nav-buttons {
        justify-content: space-between;
    }
    
    .related-posts {
        padding: 20px;
    }
    
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb nav {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}
