/* ===== BLOGDETAY4.CSS ===== */

/* ================================================================
   İKİ SÜTUNLU DÜZEN — .row / .col-lg-8 / .col-lg-4 gerçek
   Bootstrap grid'i kullanmıyor, bu yüzden burada tanımlanıyor.
   Bu tanım olmadan sütunlar alt alta (block) diziliyordu.
   ================================================================ */

.blogdetay-container .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.blogdetay-container .col-lg-8 {
    flex: 1 1 0;
    min-width: 0; /* içerik taşmasın diye */
}

.blogdetay-container .col-lg-4 {
    flex: 0 0 340px;
    max-width: 340px;
}

@media (max-width: 991px) {
    .blogdetay-container .row {
        flex-direction: column;
        gap: 0;
    }

    .blogdetay-container .col-lg-8,
    .blogdetay-container .col-lg-4 {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* Breadcrumb */
.blog-breadcrumb {
    background: #f8fafc;
    padding: .75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .9rem;
}

    .breadcrumb-list li {
        color: #64748b;
    }

        .breadcrumb-list li:not(:last-child)::after {
            content: "/";
            margin-left: .5rem;
            color: #cbd5e1;
        }

    .breadcrumb-list a {
        color: #6366f1;
        text-decoration: none;
    }

        .breadcrumb-list a:hover {
            text-decoration: underline;
        }

/* Container */
.blogdetay-container {
    padding: 3rem 0 5rem;
}

/* Article */
.blog-article {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Header */
.blog-article-header {
    padding: 2.5rem 2.5rem 0;
}

.blog-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #ede9fe;
    color: #6366f1;
    border-radius: 20px;
    padding: .3rem .85rem;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
    margin: 0 0 1rem;
}

.blog-article-meta {
    display: flex;
    gap: 1.25rem;
    color: #94a3b8;
    font-size: .88rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .blog-article-meta span {
        display: flex;
        align-items: center;
        gap: .4rem;
    }

/* Kapak */
.blog-kapak-wrap {
    padding: 0 2.5rem;
}

.blog-kapak-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* İçerik */
.blog-article-content {
    padding: 2rem 2.5rem;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #334155;
}

    .blog-article-content h1,
    .blog-article-content h2,
    .blog-article-content h3 {
        color: #1e293b;
        margin: 1.75rem 0 .75rem;
    }

    .blog-article-content h2 {
        font-size: 1.4rem;
        border-left: 4px solid #6366f1;
        padding-left: .85rem;
    }

    .blog-article-content h3 {
        font-size: 1.15rem;
    }

    .blog-article-content p {
        margin: 0 0 1.25rem;
    }

    .blog-article-content ul,
    .blog-article-content ol {
        padding-left: 1.75rem;
        margin: 0 0 1.25rem;
    }

    .blog-article-content li {
        margin-bottom: .45rem;
    }

    .blog-article-content blockquote {
        border-left: 4px solid #6366f1;
        background: #f5f3ff;
        padding: 1rem 1.25rem;
        border-radius: 0 8px 8px 0;
        margin: 1.5rem 0;
        font-style: italic;
        color: #4f46e5;
    }

    .blog-article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
    }

    .blog-article-content th {
        background: #f1f5f9;
        padding: .6rem .9rem;
        font-weight: 700;
        text-align: left;
        border: 1px solid #e2e8f0;
    }

    .blog-article-content td {
        padding: .55rem .9rem;
        border: 1px solid #e2e8f0;
    }

    .blog-article-content img {
        max-width: 100%;
        border-radius: 8px;
        margin: 1rem 0;
    }

    .blog-article-content a {
        color: #6366f1;
    }

        .blog-article-content a:hover {
            text-decoration: underline;
        }

/* Sosyal Paylaşım */
.blog-social-share {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1.25rem 2.5rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.social-share-label {
    font-weight: 700;
    color: #475569;
    font-size: .9rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: .9rem;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
}

    .social-btn:hover {
        transform: scale(1.12);
        opacity: .9;
    }

    .social-btn.facebook {
        background: #1877f2;
    }

    .social-btn.twitter {
        background: #000;
    }

    .social-btn.linkedin {
        background: #0a66c2;
    }

    .social-btn.whatsapp {
        background: #25d366;
    }

/* ================================================================
   GALERİ — urundetay stili
   ================================================================ */

.blog-gallery-section {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #f1f5f9;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Dış sarmalayıcı */
.blog-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Ana görsel kutusu */
.blog-main-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 16 / 9;
}

.blog-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    display: block;
}

    .blog-main-image:hover {
        transform: scale(1.04);
    }

/* Önceki / Sonraki butonları */
.blog-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #141423;
    transition: background 0.25s, color 0.25s, transform 0.25s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

    .blog-gallery-nav:hover {
        background: #6366f1;
        color: #fff;
        transform: translateY(-50%) scale(1.1);
    }

    .blog-gallery-nav.prev {
        left: 0.75rem;
    }

    .blog-gallery-nav.next {
        right: 0.75rem;
    }

/* Thumbnail şeridi */
.blog-thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 0.6rem;
}

.blog-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8f9fa;
}

    .blog-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .blog-thumbnail.active {
        border-color: #6366f1;
        box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3);
    }

    .blog-thumbnail:hover:not(.active) {
        border-color: #1e293b;
    }

/* Son Yazılar (ana içerik genişliğinde kullanılırsa) */
.blog-recent-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #f1f5f9;
}

.blog-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.blog-recent-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

    .blog-recent-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(99,102,241,.12);
    }

.blog-recent-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

    .blog-recent-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s;
    }

.blog-recent-card:hover img {
    transform: scale(1.05);
}

.blog-recent-body {
    padding: 1rem;
}

.blog-recent-date {
    font-size: .78rem;
    color: #94a3b8;
    margin-bottom: .3rem;
}

.blog-recent-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
}

    .blog-recent-title a {
        color: #1e293b;
        text-decoration: none;
    }

        .blog-recent-title a:hover {
            color: #6366f1;
        }

/* Sidebar */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-search {
    display: flex;
    gap: .5rem;
}

    .sidebar-search .form-control {
        flex: 1;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        padding: .55rem .75rem;
        font-size: .9rem;
    }

.sidebar-search-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .55rem .9rem;
    cursor: pointer;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .4rem;
    border-radius: 8px;
    color: #475569;
    font-size: .88rem;
    text-decoration: none;
    transition: .18s;
}

    .sidebar-cat-item:hover {
        background: #f1f5f9;
        color: #6366f1;
    }

.cat-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    padding: .1rem .55rem;
    font-size: .78rem;
    font-weight: 700;
}

.sidebar-recent-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

    .sidebar-recent-item:last-child {
        border-bottom: none;
    }

.sidebar-recent-img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-recent-title {
    font-size: .87rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.sidebar-recent-date {
    font-size: .78rem;
    color: #94a3b8;
    margin-top: .15rem;
}

.sidebar-social-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sidebar-social-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: .9rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    transition: .2s;
}

    .sidebar-social-item:hover {
        border-color: #6366f1;
        color: #6366f1;
        background: #f5f3ff;
    }

    .sidebar-social-item .fa-external-link-alt {
        margin-left: auto;
        font-size: .75rem;
        color: #cbd5e1;
    }

    .sidebar-social-item i:first-child {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .sidebar-social-item .fab,
    .sidebar-social-item .fas {
        color: #6366f1;
    }

    .sidebar-social-item:hover .fab,
    .sidebar-social-item:hover .fas {
        color: #4f46e5;
    }

/* ================================================================
   İLGİLİ ÜRÜNLER (varsayılan / geniş alan stili)
   ================================================================ */

.related-section {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
}

.related-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #141423;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

    .related-title i {
        color: #bc1818;
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, transform .25s;
    background: #fff;
}

    .related-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        transform: translateY(-4px);
        text-decoration: none;
        color: inherit;
    }

.related-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .related-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform .3s;
    }

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-info {
    padding: .875rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    border-top: 1px solid #f1f5f9;
}

.related-name {
    font-weight: 700;
    font-size: .95rem;
    color: #141423;
    line-height: 1.3;
}

.related-desc {
    font-size: .8rem;
    color: #64748b;
    line-height: 1.5;
}

.related-link-hint {
    font-size: .78rem;
    color: #bc1818;
    font-weight: 600;
    margin-top: .2rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ================================================================
   SIDEBAR REVİZYONU — İlgili Ürünler ve İlginizi Çekebilir artık
   aside (sağ sütun) içinde. Bu bloklar sidebar-card ile aynı
   görsel dile getirildi ve tek sütuna indirildi.
   ================================================================ */

/* ── İlgili Ürünler: sidebar içindeyken ── */
aside .related-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    padding: 1.25rem;
    margin: 0 0 1.5rem;
}

aside .related-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #f1f5f9;
    gap: .5rem;
}

    aside .related-title i {
        color: #6366f1;
        font-size: .95rem;
    }

aside .related-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
}

aside .related-card {
    flex-direction: row;
    align-items: center;
    border-radius: 10px;
}

    aside .related-card:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(99,102,241,.12);
    }

aside .related-img {
    width: 72px;
    aspect-ratio: 1;
    flex-shrink: 0;
    padding: .5rem;
}

aside .related-info {
    padding: .6rem .85rem;
    border-top: none;
    gap: .2rem;
}

aside .related-name {
    font-size: .88rem;
}

aside .related-desc {
    display: none; /* dar sütunda açıklama fazla yer kaplıyor, gizlendi */
}

aside .related-link-hint {
    font-size: .74rem;
}

/* ── İlginizi Çekebilir: sidebar içindeyken ── */
aside .blog-recent-section {
    padding: 0;
}

aside .blog-recent-section .section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #f1f5f9;
}

aside .blog-recent-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

aside .blog-recent-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

    aside .blog-recent-card:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(99,102,241,.12);
    }

aside .blog-recent-img-wrap {
    width: 90px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
}

aside .blog-recent-body {
    padding: .6rem .85rem;
}

aside .blog-recent-title {
    font-size: .87rem;
}

/* ── Aside genel boşluk düzeni: her blok arası tutarlı boşluk ── */
aside > * {
    margin-bottom: 1.5rem;
}

    aside > *:last-child {
        margin-bottom: 0;
    }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 991px) {
    .blog-article-header,
    .blog-kapak-wrap,
    .blog-article-content,
    .blog-social-share,
    .blog-gallery-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .blog-article-title {
        font-size: 1.55rem;
    }

    aside {
        margin-top: 2.5rem;
    }

    .blog-recent-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-thumbnail-container {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
        gap: .5rem;
    }

    .blog-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: .9rem;
    }

    .related-section {
        padding: 2rem;
        margin-top: 2rem;
    }

    .related-title {
        font-size: 1.4rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .875rem;
    }

    /* Sidebar içindeki bloklar mobilde de tek sütun kalsın */
    aside .related-grid,
    aside .blog-recent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .blog-article-title {
        font-size: 1.3rem;
    }

    .blog-recent-grid {
        grid-template-columns: 1fr;
    }

    .blog-thumbnail-container {
        grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
        gap: .4rem;
    }

    .blog-gallery-nav {
        width: 32px;
        height: 32px;
        font-size: .8rem;
    }

        .blog-gallery-nav.prev {
            left: .4rem;
        }

        .blog-gallery-nav.next {
            right: .4rem;
        }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-title {
        font-size: 1.2rem;
    }
}