/* sosyal-medya.css — Anasayfa altı "Social Media" kolaj bölümü */
 

/* Başlık satırı (sol kırmızı çizgili başlık + takip butonu) */
.sosyal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.sosyal__title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-size: 22px;
    font-weight: 800;
    color: #0b1e3a;
    line-height: 1.1;
}

.sosyal__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 3px;
    background: var(--gri, #8B8C8E);
}

.sosyal__follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0b1e3a;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 999px;
    transition: background .2s, color .2s, border-color .2s;
}

.sosyal__follow:hover {
    background: var(--gri, #8B8C8E);
    color: #fff;
    border-color: var(--gri, #8B8C8E);
}

/* --- Kolaj grid --- */
.sosyal__grid {
    display: grid;
    gap: 12px;
    /* Masaüstü: ekran görüntüsüyle birebir yerleşim (4 sütun × 3 satır) */
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 168px;
    grid-template-areas:
        "a b b c"
        "d b b g"
        "d e f g";
}

.sosyal__cell--a { grid-area: a; }
.sosyal__cell--b { grid-area: b; }
.sosyal__cell--c { grid-area: c; }
.sosyal__cell--d { grid-area: d; }
.sosyal__cell--e { grid-area: e; }
.sosyal__cell--f { grid-area: f; }
.sosyal__cell--g { grid-area: g; }

.sosyal__cell {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background-color: #0b1e3a;
    box-shadow: 0 4px 14px rgba(11, 30, 58, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Kapak görseli — lazy load edilen gerçek <img> (arka plan yerine) */
.sosyal__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sosyal__cell::after {
    /* Hafif koyulaştırma — oynatma rozeti okunur kalsın */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}

/* Üst degrade — kullanıcı başlığı her görselde okunur kalsın */
.sosyal__cell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 48%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Instagram gönderi başlığı (avatar + @kullanıcı adı) */
.sosyal__user {
    position: absolute;
    top: 9px;
    left: 9px;
    right: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: none;
}

.sosyal__avatar {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 1.5px;
    /* Instagram story tarzı gradyan halka */
    background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

    .sosyal__avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        border: 1.5px solid #fff;
        background: #fff;
    }

.sosyal__uname {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.sosyal__cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(11, 30, 58, .18);
}

.sosyal__cell:hover::after { opacity: 1; }

/* Oynatma rozeti (sağ alt köşe) */
.sosyal__play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
}

/* --- Tablet --- */
@media (max-width: 900px) {
    .sosyal__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        grid-template-areas:
            "a b"
            "d b"
            "d c"
            "g e"
            "g f";
    }
}

/* --- Mobil --- */
@media (max-width: 560px) {
    .sosyal__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
        grid-template-areas:
            "b b"
            "a c"
            "d g"
            "e f";
    }
}
