/* News Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #005a8c;
}

.breadcrumb span {
    color: #ccc;
}

.mobile-back-btn {
    display: none;
}

/* News Detail Section */
.news-detail {
    padding: 60px 0;
    background: #fff;
}

.news-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

/* Article Header */
.article-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid #eee;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
}

.category-badge.category-전문가칼럼 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-badge.category-대법원판례 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-badge.category-언론보도 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
}

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

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    font-size: 12px;
}

/* Article Image */
.article-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.article-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Article Content */
.article-content {
    padding: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 30px 0 20px;
    font-weight: 600;
    color: #222;
}

.article-content h2 {
    font-size: 24px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 20px;
    color: #007cba;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Article Footer */
.article-footer {
    padding: 30px 40px 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 500;
    color: #666;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.kakao {
    background: #FEE500;
    color: #3C1E1E;
}

.share-btn.link {
    background: #666;
    cursor: pointer;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #005a8c;
}

/* Related Articles */
.related-articles {
    margin-bottom: 60px;
}

.related-articles h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-category {
    font-size: 12px;
    color: #007cba;
    font-weight: 500;
    margin-bottom: 8px;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #007cba 0%, #005a8c 100%);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb {
        display: none;
    }
    
    .mobile-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        margin-top: 40px;
        margin-bottom: 10px;
        margin-left: 20px;
        border-radius: 25px;
        background: #6c757d;
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }
    
    .mobile-back-btn:hover {
        background: #5a6268;
    }
    
    .mobile-back-btn i {
        font-size: 0.9rem;
    }
    
    .news-detail {
        padding: 30px 0;
    }
    
    .article-header {
        padding: 30px 20px 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content {
        padding: 30px 20px;
        font-size: 15px;
    }
    
    .article-footer {
        padding: 20px;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
    }
    
    .share-buttons {
        justify-content: flex-end;
        gap: 8px;
    }
    
    .share-label {
        font-size: 0.9rem;
    }
    
    .article-actions {
        flex-shrink: 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .breadcrumb .container {
        flex-wrap: wrap;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        padding: 20px 15px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
}