/* Blog Detail Page Styles */

.blog-detail-page {
    background: #fff;
    padding: 3.13vw 0;
}

.blog-detail-container {
    max-width: 52.08vw;
    margin: 0 auto;
    padding: 0 1.04vw;
}

/* Breadcrumb */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.52vw;
    margin-bottom: 2.08vw;
    font-size: 0.83vw;
    color: #666;
}

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

.blog-breadcrumb a:hover {
    color: #FD5000;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: #000;
    font-weight: 500;
}

/* Article Title */
.blog-detail-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 3.13vw;
    line-height: 120%;
    color: #000;
    margin: 0 0 1.56vw 0;
    letter-spacing: 0;
}

/* Article Meta */
.blog-detail-meta {
    display: flex;
    gap: 2.08vw;
    margin-bottom: 2.6vw;
    padding-bottom: 1.56vw;
    border-bottom: 0.05vw solid #E5E5E5;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.52vw;
    font-size: 0.94vw;
    color: #666;
}

.meta-item svg {
    width: 1.04vw;
    height: 1.04vw;
    flex-shrink: 0;
}

/* Featured Image */
.blog-detail-featured-image {
    width: 100%;
    margin-bottom: 2.6vw;
    border-radius: 0.52vw;
    overflow: hidden;
}

.blog-detail-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Content */
.blog-detail-content {
    font-size: 1.04vw;
    line-height: 180%;
    color: #333;
    margin-bottom: 2.6vw;
}

.blog-detail-content p {
    margin-bottom: 1.56vw;
}

.blog-detail-content h2 {
    font-size: 1.67vw;
    font-weight: 700;
    margin: 2.6vw 0 1.04vw 0;
    color: #000;
}

.blog-detail-content h3 {
    font-size: 1.46vw;
    font-weight: 700;
    margin: 2.08vw 0 1.04vw 0;
    color: #000;
}

.blog-detail-content h4 {
    font-size: 1.25vw;
    font-weight: 700;
    margin: 1.56vw 0 0.78vw 0;
    color: #000;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 1.04vw 0 1.56vw 2.08vw;
}

.blog-detail-content li {
    margin-bottom: 0.52vw;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.52vw;
    margin: 1.56vw 0;
}

.blog-detail-content a {
    color: #FD5000;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.blog-detail-content a:hover {
    opacity: 0.8;
}

.blog-detail-content blockquote {
    border-left: 0.21vw solid #FD5000;
    padding-left: 1.56vw;
    margin: 1.56vw 0;
    font-style: italic;
    color: #666;
}

.blog-detail-content code {
    background: #f5f5f5;
    padding: 0.16vw 0.42vw;
    border-radius: 0.21vw;
    font-family: 'Courier New', monospace;
    font-size: 0.94vw;
}

.blog-detail-content pre {
    background: #f5f5f5;
    padding: 1.04vw;
    border-radius: 0.52vw;
    overflow-x: auto;
    margin: 1.56vw 0;
}

.blog-detail-content pre code {
    background: none;
    padding: 0;
}

/* Tags */
.blog-detail-tags {
    display: flex;
    align-items: center;
    gap: 1.04vw;
    padding: 1.56vw 0;
    border-top: 0.05vw solid #E5E5E5;
    border-bottom: 0.05vw solid #E5E5E5;
    margin-bottom: 1.56vw;
}

.tags-label {
    font-weight: 700;
    font-size: 1.04vw;
    color: #000;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.52vw;
}

.tag-item {
    background: #f5f5f5;
    color: #666;
    padding: 0.42vw 1.04vw;
    border-radius: 1.04vw;
    font-size: 0.83vw;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #FD5000;
    color: white;
}

/* Share Buttons */
.blog-detail-share {
    display: flex;
    align-items: center;
    gap: 1.04vw;
    margin-bottom: 3.13vw;
}

.share-label {
    font-weight: 700;
    font-size: 1.04vw;
    color: #000;
}

.share-buttons {
    display: flex;
    gap: 0.52vw;
}

.share-btn {
    width: 2.6vw;
    height: 2.6vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn svg {
    width: 1.25vw;
    height: 1.25vw;
}

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

.share-facebook:hover {
    background: #145dbf;
    transform: translateY(-0.16vw);
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #0d8bd9;
    transform: translateY(-0.16vw);
}

.share-linkedin {
    background: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background: #006399;
    transform: translateY(-0.16vw);
}

/* Related Posts Section */
.blog-related-section {
    background: #f9f9f9;
    padding: 4.17vw 0;
    margin-bottom: 3.13vw;
}

.related-section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 2.08vw;
    color: #000;
    margin: 0 0 2.08vw 0;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.67vw;
}

.related-post-item {
    background: white;
    border-radius: 0.52vw;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 0.05vw solid #E5E5E5;
}

.related-post-item:hover {
    transform: translateY(-0.52vw);
    box-shadow: 0 0.52vw 1.56vw rgba(0, 0, 0, 0.1);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-image {
    height: 10.42vw;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 1.04vw;
}

.related-post-date {
    font-size: 0.73vw;
    color: #666;
    margin-bottom: 0.52vw;
}

.related-post-title {
    font-weight: 700;
    font-size: 1.04vw;
    line-height: 140%;
    margin: 0 0 0.52vw 0;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-excerpt {
    font-size: 0.83vw;
    line-height: 150%;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Back to Blog Button */
.back-to-blog {
    text-align: center;
    margin: 3.13vw 0;
}

.btn-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.52vw;
    padding: 0.78vw 2.08vw;
    background: #FD5000;
    color: white;
    text-decoration: none;
    border-radius: 2.6vw;
    font-size: 1.04vw;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-to-blog:hover {
    background: #e64800;
    transform: translateY(-0.16vw);
    box-shadow: 0 0.26vw 0.78vw rgba(253, 80, 0, 0.3);
}

.btn-back-to-blog svg {
    width: 1.04vw;
    height: 1.04vw;
}

/* Not Found Message */
.not-found-message {
    text-align: center;
    font-size: 1.25vw;
    color: #666;
    padding: 5.21vw 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-detail-page {
        padding: 8vw 0;
    }

    .blog-detail-container {
        max-width: 90%;
    }

    /* Breadcrumb */
    .blog-breadcrumb {
        gap: 2.67vw;
        margin-bottom: 5.33vw;
        font-size: 3.2vw;
        flex-wrap: wrap;
    }

    /* Title */
    .blog-detail-title {
        font-size: 7.47vw;
        margin-bottom: 5.33vw;
    }

    /* Meta */
    .blog-detail-meta {
        flex-direction: column;
        gap: 2.67vw;
        margin-bottom: 5.33vw;
        padding-bottom: 5.33vw;
        border-bottom: 0.27vw solid #E5E5E5;
    }

    .meta-item {
        gap: 2.67vw;
        font-size: 3.73vw;
    }

    .meta-item svg {
        width: 5.33vw;
        height: 5.33vw;
    }

    /* Featured Image */
    .blog-detail-featured-image {
        margin-bottom: 5.33vw;
        border-radius: 2.67vw;
    }

    /* Content */
    .blog-detail-content {
        font-size: 4.27vw;
        line-height: 180%;
        margin-bottom: 5.33vw;
    }

    .blog-detail-content p {
        margin-bottom: 5.33vw;
    }

    .blog-detail-content h2 {
        font-size: 6.4vw;
        margin: 8vw 0 4vw 0;
    }

    .blog-detail-content h3 {
        font-size: 5.6vw;
        margin: 6.67vw 0 4vw 0;
    }

    .blog-detail-content h4 {
        font-size: 5.07vw;
        margin: 5.33vw 0 2.67vw 0;
    }

    .blog-detail-content ul,
    .blog-detail-content ol {
        margin: 4vw 0 5.33vw 6.67vw;
    }

    .blog-detail-content li {
        margin-bottom: 2.67vw;
    }

    .blog-detail-content img {
        border-radius: 2.67vw;
        margin: 5.33vw 0;
    }

    .blog-detail-content blockquote {
        border-left: 0.53vw solid #FD5000;
        padding-left: 5.33vw;
        margin: 5.33vw 0;
    }

    .blog-detail-content code {
        padding: 1.07vw 2.13vw;
        border-radius: 1.07vw;
        font-size: 3.73vw;
    }

    .blog-detail-content pre {
        padding: 4vw;
        border-radius: 2.67vw;
        margin: 5.33vw 0;
    }

    /* Tags */
    .blog-detail-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 4vw;
        padding: 5.33vw 0;
        border-top: 0.27vw solid #E5E5E5;
        border-bottom: 0.27vw solid #E5E5E5;
        margin-bottom: 5.33vw;
    }

    .tags-label {
        font-size: 4.27vw;
    }

    .tags-list {
        gap: 2.67vw;
    }

    .tag-item {
        padding: 2.13vw 4vw;
        border-radius: 4vw;
        font-size: 3.73vw;
    }

    /* Share */
    .blog-detail-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 4vw;
        margin-bottom: 8vw;
    }

    .share-label {
        font-size: 4.27vw;
    }

    .share-buttons {
        gap: 2.67vw;
    }

    .share-btn {
        width: 10.67vw;
        height: 10.67vw;
    }

    .share-btn svg {
        width: 5.33vw;
        height: 5.33vw;
    }

    /* Related Posts */
    .blog-related-section {
        padding: 10.67vw 0;
        margin-bottom: 8vw;
    }

    .related-section-title {
        font-size: 6.4vw;
        margin-bottom: 5.33vw;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 5.33vw;
    }

    .related-post-item {
        border-radius: 2.67vw;
        border: 0.27vw solid #E5E5E5;
    }

    .related-post-item:hover {
        transform: translateY(-1.33vw);
    }

    .related-post-image {
        height: 53.33vw;
    }

    .related-post-content {
        padding: 4vw;
    }

    .related-post-date {
        font-size: 3.2vw;
        margin-bottom: 2.67vw;
    }

    .related-post-title {
        font-size: 4.8vw;
        margin-bottom: 2.67vw;
    }

    .related-post-excerpt {
        font-size: 3.73vw;
    }

    /* Back Button */
    .back-to-blog {
        margin: 8vw 0;
    }

    .btn-back-to-blog {
        gap: 2.67vw;
        padding: 3.73vw 6.67vw;
        border-radius: 10.67vw;
        font-size: 4.27vw;
    }

    .btn-back-to-blog svg {
        width: 5.33vw;
        height: 5.33vw;
    }

    /* Not Found */
    .not-found-message {
        font-size: 4.8vw;
        padding: 13.33vw 0;
    }
}

