/* ===================================================================
   BLOG SYSTEM — PREMIUM DESIGN
   blog.css — Blog Listesi & Blog Detay sayfaları
   =================================================================== */


/* ===== BLOG HERO START ===== */
.blog-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(114, 211, 128, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(114, 211, 128, 0.05) 0%, transparent 60%);
    z-index: 1;
}

/* Dekoratif çizgiler */
.blog-hero__lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blog-hero__line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(114, 211, 128, 0.15), transparent);
}

.blog-hero__line:nth-child(1) {
    left: 20%;
}

.blog-hero__line:nth-child(2) {
    left: 40%;
}

.blog-hero__line:nth-child(3) {
    left: 60%;
}

.blog-hero__line:nth-child(4) {
    left: 80%;
}

.blog-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.blog-hero__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid rgba(114, 211, 128, 0.3);
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.blog-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.blog-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 100;
    color: rgba(247, 249, 247, 0.5);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Alt gradient */
.blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #000, transparent);
    z-index: 1;
    pointer-events: none;
}

/* ===== BLOG HERO END ===== */



/* ===== BLOG LIST START ===== */
.blog-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 120px;
}

.blog-list__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.blog-list__count {
    font-size: 14px;
    font-weight: 100;
    color: rgba(247, 249, 247, 0.4);
    letter-spacing: 1px;
}

.blog-list__count span {
    color: var(--green);
    font-weight: 500;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* --- Blog Kartı --- */
.blog-card {
    position: relative;
    background: rgba(35, 35, 35, 0.4);
    border: 1px solid rgba(114, 211, 128, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    border-color: rgba(114, 211, 128, 0.25);
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(114, 211, 128, 0.06);
}

/* Kart fotoğrafı */
.blog-card__image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.08);
}

.blog-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(35, 35, 35, 0.95), transparent);
    pointer-events: none;
}

/* Kategori badge */
.blog-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--green);
    padding: 4px 14px;
    border-radius: 20px;
}

/* Kart içeriği */
.blog-card__body {
    padding: 28px 24px;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 100;
    color: rgba(247, 249, 247, 0.35);
}

.blog-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card__meta-item .icon svg {
    width: 12px;
    height: 12px;
    fill: var(--green);
    opacity: 0.6;
}

.blog-card__title {
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card__title {
    color: var(--green);
}

.blog-card__excerpt {
    font-size: 14px;
    font-weight: 100;
    color: rgba(247, 249, 247, 0.45);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Devamını oku */
.blog-card__read {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-card__read-arrow {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--green);
    position: relative;
    transition: width 0.3s ease;
}

.blog-card__read-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--green);
    border-top: 1px solid var(--green);
    transform: rotate(45deg);
}

.blog-card:hover .blog-card__read-arrow {
    width: 36px;
}

/* ===== BLOG LIST END ===== */



/* ===== BLOG DETAIL START ===== */

/* --- Detay Hero --- */
.blog-detail-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 450px;
    overflow: hidden;
}

.blog-detail-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blog-detail-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.8);
}

.blog-detail-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(to right, rgba(114, 211, 128, 0.05) 0%, transparent 50%);
}

.blog-detail-hero__content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.blog-detail-hero__category {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--green);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.blog-detail-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 100;
    color: rgba(247, 249, 247, 0.5);
}

.blog-detail-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-hero__meta-item .icon svg {
    width: 14px;
    height: 14px;
    fill: var(--green);
    opacity: 0.7;
}

.blog-detail-hero__meta-divider {
    width: 1px;
    height: 14px;
    background: rgba(247, 249, 247, 0.15);
}

/* --- Detay İçerik --- */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px 60px;
}

.blog-detail__content {
    font-size: 17px;
    font-weight: 100;
    color: rgba(247, 249, 247, 0.75);
    line-height: 1.9;
    letter-spacing: 0.2px;
}

.blog-detail__content h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--white);
    margin: 48px 0 20px;
    position: relative;
    padding-left: 20px;
}

.blog-detail__content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 100%;
    background: var(--green);
    border-radius: 2px;
}

.blog-detail__content h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    margin: 36px 0 16px;
}

.blog-detail__content p {
    margin-bottom: 24px;
}

.blog-detail__content img {
    width: 100%;
    border-radius: 12px;
    margin: 32px 0;
}

.blog-detail__content blockquote {
    border-left: 3px solid var(--green);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(114, 211, 128, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(247, 249, 247, 0.6);
}

.blog-detail__content ul,
.blog-detail__content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.blog-detail__content li {
    margin-bottom: 8px;
}

.blog-detail__content a {
    color: var(--green);
    text-decoration: none;
    border-bottom: 1px solid rgba(114, 211, 128, 0.3);
    transition: border-color 0.3s ease;
}

.blog-detail__content a:hover {
    border-color: var(--green);
}

/* --- Dinamik İçerik Görselleri --- */
.blog-inserted-image {
    margin: 40px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.blog-inserted-image img {
    margin: 0 !important;
    /* Önceki img margin kuralını ez */
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.blog-inserted-image:hover img {
    transform: scale(1.03);
}

.blog-inserted-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Tam Genişlik */
.blog-inserted-image--wide {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Sağa Yaslı (Desktop) */
@media (min-width: 900px) {
    .blog-inserted-image--float-right {
        float: right;
        width: 45%;
        margin-left: 40px;
        margin-bottom: 24px;
        margin-top: 12px;
        shape-outside: margin-box;
        /* Metnin şekli sarması için */
    }

    .blog-inserted-image--float-left {
        float: left;
        width: 45%;
        margin-right: 40px;
        margin-bottom: 24px;
        margin-top: 12px;
        shape-outside: margin-box;
    }
}

/* --- Paylaşım --- */
.blog-detail__share {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(114, 211, 128, 0.1);
}

.blog-detail__share-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(247, 249, 247, 0.4);
}

.blog-detail__share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(114, 211, 128, 0.2);
    background: rgba(114, 211, 128, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-detail__share-link .icon svg {
    width: 16px;
    height: 16px;
    fill: rgba(247, 249, 247, 0.6);
    transition: fill 0.3s ease;
}

.blog-detail__share-link:hover {
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-2px);
}

.blog-detail__share-link:hover .icon svg {
    fill: var(--dark);
}


/* --- İlgili Yazılar --- */
.blog-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 120px;
}

.blog-related__title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 14px;
}

.blog-related__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}


/* --- Fotoğraf Galerisi --- */
.blog-gallery {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(114, 211, 128, 0.1);
}

.blog-gallery__title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.blog-gallery__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
}

.blog-gallery__grid {
    display: grid;
    gap: 12px;
}

/* 2 fotoğraf */
.blog-gallery__grid--2 {
    grid-template-columns: 1fr 1fr;
}

/* 3 fotoğraf: ilk büyük, altta 2 küçük */
.blog-gallery__grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.blog-gallery__grid--3 .blog-gallery__item:first-child {
    grid-column: 1 / -1;
}

.blog-gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
}

.blog-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-gallery__item:hover img {
    transform: scale(1.06);
}

.blog-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.blog-gallery__overlay .icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.blog-gallery__item:hover .blog-gallery__overlay {
    opacity: 1;
}


/* --- Lightbox --- */
.blog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.blog-lightbox.active {
    display: flex;
}

.blog-lightbox__img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.blog-lightbox__close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-lightbox__close .icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.blog-lightbox__close:hover {
    background: rgba(114, 211, 128, 0.2);
    border-color: var(--green);
}

.blog-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.blog-lightbox__nav:hover {
    background: rgba(114, 211, 128, 0.2);
    border-color: var(--green);
}

.blog-lightbox__prev {
    left: 24px;
}

.blog-lightbox__next {
    right: 24px;
}

.blog-lightbox__counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 100;
    color: rgba(247, 249, 247, 0.45);
    letter-spacing: 2px;
}

.blog-lightbox__counter span {
    color: var(--green);
    font-weight: 500;
}

/* ===== BLOG DETAIL END ===== */



/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .blog-hero {
        height: 40vh;
        min-height: 280px;
    }

    .blog-list {
        padding: 60px 24px 80px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-detail-hero {
        height: 50vh;
        min-height: 350px;
    }

    .blog-detail-hero__content {
        padding: 0 24px;
        bottom: 40px;
    }

    .blog-detail {
        padding: 50px 24px 40px;
    }

    .blog-related {
        padding: 0 24px 80px;
    }

    .blog-related__grid {
        grid-template-columns: 1fr;
    }

    .blog-gallery__grid--2,
    .blog-gallery__grid--3 {
        grid-template-columns: 1fr;
    }

    .blog-gallery__grid--3 .blog-gallery__item:first-child {
        grid-column: auto;
    }

    .blog-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        height: 35vh;
        min-height: 240px;
    }

    .blog-hero__title {
        font-size: 2rem;
    }

    .blog-card__image {
        height: 180px;
    }

    .blog-card__body {
        padding: 20px 18px;
    }

    .blog-card__title {
        font-size: 18px;
    }

    .blog-detail-hero {
        height: 45vh;
        min-height: 300px;
    }

    .blog-detail-hero__meta {
        gap: 12px;
        font-size: 12px;
    }

    .blog-detail-hero__meta-divider {
        display: none;
    }

    .blog-detail__content {
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-detail__content h2 {
        font-size: 22px;
    }

    .blog-detail__share {
        flex-wrap: wrap;
        gap: 12px;
    }

    .blog-lightbox__img {
        max-width: 95%;
    }

    .blog-lightbox__prev {
        left: 8px;
    }

    .blog-lightbox__next {
        right: 8px;
    }

    .blog-lightbox__close {
        top: 12px;
        right: 12px;
    }
}

/* ===== RESPONSIVE END ===== */