﻿
/* ############## */

.postGrid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* DataList kırılımı */
.postGrid > tbody,
.postGrid > tbody > tr{
    display: contents;
}

.postGrid > tbody > tr > td{
    display: flex;
}


/* ############## */

.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 */
}

/* ############## */

/* Kart üstündeki imaj alanı */
.postThumbLink{
    position: relative;
    display: block;
    width: 100%;
  /*  max-height: 280px;   
    overflow: hidden;  */  
  aspect-ratio:4/3;
    object-fit:contain;
    object-position:center;
    
}

.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: 100%;
    object-fit: cover;
    display: block;
}


/* ############## */

.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;
}

/* ############## */

.categoryCounterRow{
    margin: 6px -12px 10px -12px;   /* postBody padding’ini iptal eder */
    padding: 6px 12px;

    width: calc(100% + 24px);       /* kart içini tam kaplasın */
    
    background: rgba(0,0,0,0.03);   /* transparan zemin */
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);

    display: flex;
    align-items: center;
}

.categoryCounterRow.empty{
    margin: 6px -12px 10px -12px;
    padding: 6px 12px;                 /* 🔴 normalle aynı */

    background:
        repeating-linear-gradient(
            45deg,
            rgba(0,0,0,0.06),
            rgba(0,0,0,0.06) 6px,
            rgba(0,0,0,0.02) 6px,
            rgba(0,0,0,0.02) 12px
        );

    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);

    box-sizing: border-box;
}

/* ############## */

@media (max-width: 1200px){
    .postGrid{
        grid-template-columns: repeat(2, 1fr);
    }
}

/*@media (max-width: 768px){
    .postGrid{
        grid-template-columns: 1fr;
    }
}*/

@media (max-width: 768px){
    .postTitleLink{

        font-size:14px;
    }

    .CategoryCounter {
        font-size:14px;
    }
}



