﻿/* ==================================================
   DATALIST GRID YAPISI (TABLE HACK + GRID)
================================================== */

.postGrid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* DataList kırılımı */
.postGrid > tbody,
.postGrid > tbody > tr{
    display: contents;
}

/* 🔴 KRİTİK */
.postGrid > tbody > tr > td{
    display: flex;
}


/* ==================================================
   KART YAPISI
================================================== */

.postCard{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;

    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.postCard:hover{
    transform: translateY(-3px);
    box-shadow:
        0 4px 10px rgba(0,0,0,.08);
}

.postCard:hover .postThumbLink::after{
    background: rgba(0,0,0,.18);   /* 👈 hafif kararma */
}

/* ==================================================
   GÖRSEL ALANI (SABİT ORAN + TAM OTURMA)
================================================== */

/* Kart üstündeki imaj alanı */
.postThumbLink{
    position: relative;
    display: block;
    width: 100%;
    max-height: 280px;   
    overflow: hidden;    
}

.postThumbLink::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);   /* normalde şeffaf */
    transition: background .25s ease;
    pointer-events: none;
}

/* GÖRSEL */
.postThumbImg{
    width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   KART IC GOVDE
================================================== */

.postBody{
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.postTitle{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.postSummary{
    font-size: 15px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.postFooter{
    margin-top: auto;
    text-align: right;
}


/* Kart icindeki minfo daha kompakt olsun */
.postCard .minfo span {
    font-size: 13px;
    padding: 2px;
    margin-right: 4px;
    font-weight: 600;
}

.postCard .minfo span i {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 11px;
    margin: 0 3px 0 0;
    padding: 0;
}

.postCard .postMeta {
    margin-left: -3px;   /* 🔴 başlık hizası */
    margin-right: -3px;
    margin-top: -4px;
}

/* ==================================================
   RESPONSIVE: 3 → 2 → 1
================================================== */

@media (max-width: 1200px){
    .postGrid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px){
    .postGrid{
        grid-template-columns: 1fr;
    }
}

/* Alert'ten sonra gelen ilk kolon ust bosluk sifirla */
.alert-New-Info + div[class^="col-"] {
    margin-top: 0 !important;
}

/* Kart içindeki Devamını Oku butonu yazıyla aynı sol hizada olsun */
.postCard .postFooter{
    text-align: left !important;
    margin-top: 5px;
}

/* Butonun kendi margin/padding’inden gelen kaymayı sıfırla */
.postCard .postFooter .btn{
    margin-left: 0 !important;
    display: inline-block;
}


/* ================================
   VIDEO EMBED (KESME YOK)
================================ */

.videoEmbedWrap{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    background: #000;
    overflow: hidden; 
}

/* iframe */
.videoEmbedWrap iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================================
   VIDEO OVERLAY
================================ */

.videoPlayOverlay{
    position: absolute;
    inset: 0;
    background: transparent;     
    pointer-events: none;
    transition: background .25s ease;
}

/* SADECE HOVER’DA */
.videoEmbedWrap:hover .videoPlayOverlay{
    background:
        radial-gradient(circle at center,
            rgba(0,0,0,.25) 0%,
            rgba(0,0,0,.45) 60%);
}

/* ================================
   VIDEO KARTLARINDA KESMEYİ KAPAT
================================ */

.postCard.videoCard .postThumbLink{
    max-height: none !important;
    overflow: visible !important;
}

/* Video overlay link */
.videoThumb{
    position: relative;
}

.videoLinkOverlay{
    position: absolute;
    inset: 0;
    z-index: 5;
}


