/* 
   Blog/Details.cshtml - Ultra Modern Blog Detail CSS
   Kırmızı & Siyah Tema | Premium Design
*/

/*===========================================
  BLOG DETAIL HERO
===========================================*/
.blog-detail-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}

    .blog-detail-hero::before {
        display: none;
    }

    .blog-detail-hero::after {
        display: none;
    }

    .blog-detail-hero .container {
        position: relative;
        z-index: 1;
    }

.detail-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(220, 0, 0, 0.2);
    border: 1px solid rgba(220, 0, 0, 0.4);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.blog-detail-hero h1 {
    color: var(--white);
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.detail-meta-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

    .meta-item i {
        color: var(--primary-color);
        font-size: 1.125rem;
    }

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

/*===========================================
  BLOG DETAIL CONTENT
===========================================*/
.blog-detail-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.detail-content-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .detail-content-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-red);
    }

/* Featured Image */
.detail-featured-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.image-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.lightbox-expand-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .lightbox-expand-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: scale(1.1) rotate(90deg);
    }

/* Content Body */
.detail-content-body {
    padding: 4rem;
}

/* Article Content */
.article-content {
    color: var(--text-color);
    font-size: 1.0625rem;
    line-height: 1.8;
}

    .article-content p:first-of-type {
        font-size: 1.25rem;
        line-height: 1.8;
        color: var(--text-color);
    }

    /* Drop cap kaldırıldı - artık ilk harf büyük olmayacak */

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: var(--secondary-color);
        font-weight: 700;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .article-content h2 {
        font-size: 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

        .article-content h2::before {
            content: '';
            width: 4px;
            height: 40px;
            background: var(--gradient-red);
            border-radius: 2px;
        }

    .article-content h3 {
        font-size: 1.625rem;
        color: var(--primary-color);
    }

    .article-content h4 {
        font-size: 1.375rem;
    }

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content ul,
    .article-content ol {
        margin-bottom: 1.5rem;
        padding-left: 0;
        list-style: none;
    }

        .article-content ul li,
        .article-content ol li {
            margin-bottom: 0.75rem;
            padding-left: 2rem;
            position: relative;
            list-style: none;
        }

            .article-content ul li::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0.65em;
                width: 8px;
                height: 8px;
                background: var(--primary-color);
                border-radius: 50%;
            }

    .article-content ol {
        counter-reset: item;
    }

        .article-content ol li {
            counter-increment: item;
        }

            .article-content ol li::before {
                content: counter(item);
                position: absolute;
                left: 0;
                top: 0;
                width: 26px;
                height: 26px;
                background: var(--gradient-red);
                color: var(--white);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 0.813rem;
                font-weight: 700;
            }

    .article-content blockquote {
        margin: 3rem 0;
        padding: 2rem 2rem 2rem 3rem;
        background: linear-gradient(135deg, rgba(220, 0, 0, 0.05) 0%, rgba(220, 0, 0, 0.02) 100%);
        border-left: 5px solid var(--primary-color);
        border-radius: 0 16px 16px 0;
        font-size: 1.1875rem;
        font-style: italic;
        position: relative;
    }

        .article-content blockquote::before {
            content: '"';
            position: absolute;
            top: -10px;
            left: 25px;
            font-size: 5rem;
            color: var(--primary-color);
            opacity: 0.2;
            font-family: Georgia, serif;
        }

    .article-content img {
        max-width: 100%;
        width: auto;
        height: auto;
        border-radius: 16px;
        margin: 2.5rem 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        display: block;
    }

    .article-content figure,
    .article-content .image-wrapper {
        margin: 2.5rem 0;
        text-align: center;
    }

        .article-content figure img,
        .article-content .image-wrapper img {
            margin: 0 auto;
        }

    /* Summernote resim wrapper'larını düzelt */
    .article-content p img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .article-content div[style*="text-align"] img,
    .article-content p[style*="text-align"] img {
        max-height: none !important;
    }

    .article-content a {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: var(--transition-fast);
    }

        .article-content a:hover {
            border-bottom-color: var(--primary-color);
        }

/*===========================================
  TAGS & SHARE
===========================================*/
.article-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.article-tags {
    margin-bottom: 2rem;
}

.tags-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .tags-title i {
        color: var(--primary-color);
    }

.article-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    color: var(--text-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

    .article-tag::before {
        content: '#';
        color: var(--primary-color);
        font-weight: 700;
    }

    .article-tag:hover {
        background: var(--gradient-red);
        color: var(--white);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 0, 0, 0.3);
    }

.article-share {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.share-label {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--white);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .share-btn:hover {
        background: var(--gradient-red);
        color: var(--white);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(220, 0, 0, 0.3);
    }

/*===========================================
  AUTHOR BOX
===========================================*/
.author-box {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.05) 0%, rgba(220, 0, 0, 0.02) 100%);
    border-radius: 20px;
    border: 2px solid rgba(220, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: start;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

    .author-avatar-large img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-info-box {
    flex: 1;
}

.author-name-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.author-role-text {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.author-social-links {
    display: flex;
    gap: 0.75rem;
}

.author-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

    .author-social-btn:hover {
        background: var(--gradient-red);
        color: var(--white);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

/*===========================================
  RELATED POSTS
===========================================*/
.related-posts-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 3px solid var(--light-bg);
}

.section-title-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .section-title-large::before {
        content: '';
        width: 5px;
        height: 45px;
        background: var(--gradient-red);
        border-radius: 2px;
    }

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.related-post-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

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

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-post-card:hover .related-post-title {
    color: var(--primary-color);
}

.related-post-excerpt {
    color: var(--text-color);
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 0.813rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

    .related-post-date i {
        color: var(--primary-color);
    }

/*===========================================
  SIDEBAR
===========================================*/
.blog-detail-sidebar {
    position: sticky;
    top: 100px;
}

/* Reuse sidebar styles from blog-index-ultra.css */

/*===========================================
  COMMENTS SECTION
===========================================*/
.comments-section {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--light-bg);
    border-radius: 20px;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .comments-title i {
        color: var(--primary-color);
    }

.comment-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
}

.comment-meta h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.813rem;
    color: var(--text-light);
}

.comment-body {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.comment-reply-btn {
    background: var(--light-bg);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .comment-reply-btn:hover {
        background: var(--primary-color);
        color: var(--white);
    }

/*===========================================
  COMMENT FORM
===========================================*/
.comment-form {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 0.5rem;
        display: block;
    }

.form-control-modern {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

    .form-control-modern:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(220, 0, 0, 0.1);
        outline: none;
    }

textarea.form-control-modern {
    min-height: 150px;
    resize: vertical;
}

.submit-btn-modern {
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(220, 0, 0, 0.3);
}

    .submit-btn-modern:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(220, 0, 0, 0.4);
    }

/*===========================================
  RESPONSIVE
===========================================*/
@media (max-width: 991.98px) {
    .blog-detail-hero {
        padding: 5rem 0 3rem;
    }

        .blog-detail-hero h1 {
            font-size: 2.5rem;
        }

    .blog-detail-section {
        padding: 4rem 0;
    }

    .detail-content-body {
        padding: 3rem 2rem;
    }

    .detail-featured-image {
        height: 400px;
    }

    .blog-detail-sidebar {
        position: static;
        margin-top: 3rem;
    }

    .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .blog-detail-hero {
        padding: 4rem 0 2.5rem;
    }

        .blog-detail-hero h1 {
            font-size: 2rem;
        }

    .blog-detail-section {
        padding: 3rem 0;
    }

    .detail-content-body {
        padding: 2rem 1.5rem;
    }

    .detail-featured-image {
        height: 300px;
    }

    .article-content {
        font-size: 1rem;
    }

        .article-content p:first-of-type {
            font-size: 1.125rem;
        }

            .article-content p:first-of-type::first-letter {
                font-size: 3rem;
            }

    .detail-meta-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar-large {
        margin: 0 auto;
    }

    .author-social-links {
        justify-content: center;
    }

    .article-share {
        flex-direction: column;
        align-items: stretch;
    }

    .share-buttons {
        justify-content: center;
    }

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

    .comments-section {
        padding: 2rem 1.5rem;
    }
}
