/* ========================================
   Blog Details Page Styles - Responsive Design
   ======================================== */

/* Blog Details Section */
.blog-details-section {
    background: #ffffff;
    min-height: 100vh;
    padding: 60px 0;
}

/* Blog Hero Container & Figure */
.blog-hero-container {
    margin-bottom: 70px;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
}

.blog-hero-figure {
    margin: 0;
    padding: 0;
    text-align: center;
    margin-top: 40px;
}

.blog-hero-placeholder {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #5B63FF 0%, #9B4DB4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.blog-hero-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.blog-hero-figure figcaption {
    font-size: 15px;
    color: #666;
    font-style: italic;
    margin-top: 16px;
}

/* Blog Hero (Image Tag) */
.blog-hero {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
    display: block;
}

.blog-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Blog Meta Header */
.blog-meta-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-category-badge {
    display: inline-block;
    background: #E8F0FF;
    color: #5B63FF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: capitalize;
}

.blog-category-badge.marketing {
    background: #F8E8FF;
    color: #9B4DB4;
}

.blog-category-badge.innovation {
    background: #E8FFF5;
    color: #00A870;
}

.blog-meta-divider {
    width: 2px;
    height: 20px;
    background: #ddd;
}

.blog-meta-info {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Blog Title */
.blog-details-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 25px;
}

/* Blog Author Card */
.blog-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fA;
    border-radius: 10px;
    border-left: 4px solid #5B63FF;
}

.blog-author-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B63FF 0%, #9B4DB4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.blog-author-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.blog-author-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* Blog Content Layout */
.blog-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.blog-main-content {
    position: relative;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

/* Blog Content Text */
.blog-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.blog-article-content p {
    margin-bottom: 20px;
}

.blog-article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 35px 0 20px 0;
    line-height: 1.3;
}

.blog-article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 15px 0;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 20px 0 20px 20px;
    padding-left: 20px;
}

.blog-article-content li {
    margin-bottom: 10px;
}

.blog-article-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.blog-article-content blockquote {
    border-left: 4px solid #5B63FF;
    padding: 20px 0 20px 20px;
    margin: 30px 0;
    font-size: 18px;
    font-weight: 600;
    color: #5B63FF;
    background: #f8f9fA;
    padding: 20px;
    border-radius: 8px;
}

/* Blog Sidebar */
.sidebar-widget {
    background: #f8f9fA;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.sidebar-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* Search Widget */
.sidebar-search {
    display: flex;
    gap: 8px;
}

.sidebar-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.sidebar-search button {
    padding: 12px 20px;
    background: #5B63FF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-search button:hover {
    background: #4a4fe8;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    color: #5B63FF;
    padding-left: 8px;
}

.categories-count {
    background: #5B63FF;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Related Posts Widget */
.related-post-item {
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
}

.related-post-item:hover {
    transform: translateY(-4px);
}

.related-post-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.related-post-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #5B63FF 0%, #9B4DB4 100%);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-post-item:hover .related-post-thumb {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-item:hover .related-post-thumb img {
    transform: scale(1.08);
}

.related-post-thumb > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.related-post-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-item:hover .related-post-title {
    color: #5B63FF;
}

.related-post-date {
    font-size: 13px;
    color: #999;
    transition: color 0.3s ease;
}

.related-post-item:hover .related-post-date {
    color: #5B63FF;
}

/* Comments Section */
.blog-comments-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #e8e8e8;
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Single Comment */
.comment-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B63FF 0%, #9B4DB4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-reply-btn {
    display: inline-block;
    color: #5B63FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-reply-btn:hover {
    color: #4a4fe8;
}

/* Comment Form */
.comment-form-section {
    margin-top: 50px;
    background: #f8f9fA;
    padding: 30px;
    border-radius: 10px;
}

.comment-form-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5B63FF;
    box-shadow: 0 0 0 3px rgba(91, 99, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #5B63FF;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #4a4fe8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 99, 255, 0.3);
}

/* Social Share */
.blog-share-section {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.share-btn:hover {
    background: #5B63FF;
    color: white;
    border-color: #5B63FF;
    transform: translateY(-3px);
}

/* Tablet Responsive - 992px and below */
@media (max-width: 992px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-details-title {
        font-size: 36px;
    }

    .blog-hero-placeholder,
    .blog-hero {
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 20px;
    }

    .blog-article-content h2 {
        font-size: 24px;
    }

    .blog-hero-container {
        margin-bottom: 50px;
        padding: 30px 0;
    }
}

/* Mobile Responsive - 768px and below */
@media (max-width: 768px) {
    .blog-details-section {
        padding: 40px 0;
    }

    .blog-hero-placeholder,
    .blog-hero {
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 20px;
    }

    .blog-details-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .blog-meta-header {
        gap: 12px;
        margin-bottom: 25px;
    }

    .blog-author-card {
        padding: 16px;
        gap: 12px;
    }

    .blog-author-avatar-large {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .blog-author-details h4 {
        font-size: 15px;
    }

    .blog-author-details p {
        font-size: 13px;
    }

    .blog-article-content {
        font-size: 15px;
    }

    .blog-article-content h2 {
        font-size: 20px;
        margin: 25px 0 15px 0;
    }

    .blog-article-content h3 {
        font-size: 18px;
        margin: 20px 0 12px 0;
    }

    .blog-share-section {
        padding: 20px;
        gap: 15px;
    }

    .comments-title {
        font-size: 22px;
    }

    .comment-item {
        gap: 12px;
    }

    .comment-form-section {
        padding: 20px;
    }

    .comment-form-section h3 {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .blog-hero-container {
        margin-bottom: 40px;
        padding: 25px 0;
    }

    .blog-hero-figure figcaption {
        font-size: 14px;
    }
}

/* Mobile Responsive - 576px and below */
@media (max-width: 576px) {
    .blog-details-section {
        padding: 30px 0;
    }

    .blog-hero-placeholder,
    .blog-hero {
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 18px;
    }

    .blog-details-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .blog-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-meta-divider {
        display: none;
    }

    .blog-author-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .blog-author-avatar-large {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    .blog-article-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .blog-article-content p {
        margin-bottom: 15px;
    }

    .blog-article-content h2 {
        font-size: 18px;
        margin: 20px 0 12px 0;
    }

    .blog-article-content h3 {
        font-size: 16px;
        margin: 16px 0 10px 0;
    }

    .blog-article-content blockquote {
        padding: 15px;
        margin: 20px 0;
        font-size: 15px;
    }

    .blog-share-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .comments-title {
        font-size: 20px;
    }

    .comment-item {
        gap: 10px;
        margin-bottom: 20px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .comment-form-section {
        padding: 16px;
    }

    .comment-form-section h3 {
        font-size: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sidebar-widget {
        padding: 16px;
    }

    .sidebar-widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .sidebar-search {
        flex-direction: column;
    }

    .sidebar-search input,
    .sidebar-search button {
        font-size: 13px;
        padding: 10px 12px;
    }

    .related-post-thumb {
        aspect-ratio: 1;
        margin-bottom: 12px;
    }

    .related-post-title {
        font-size: 13px;
    }

    .related-post-date {
        font-size: 11px;
    }

    .blog-hero-container {
        margin-bottom: 35px;
        padding: 20px 0;
    }

    .blog-hero-figure figcaption {
        font-size: 13px;
    }
}