/* ============================================================
   Pickytidy Blog Grid v2.0.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

.pbg-wrap {
    --pbg-cream  : #fdf8f2;
    --pbg-cream2 : #f5efe6;
    --pbg-brown  : #3d2b1f;
    --pbg-gold   : #9b7e5a;
    --pbg-gold2  : #c8a882;
    --pbg-muted  : #7a6050;
    --pbg-border : rgba(155,126,90,.14);
    --pbg-ease   : cubic-bezier(0.4,0,0.2,1);
    --pbg-radius : 20px;

    background: var(--pbg-cream);
    padding: 60px 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
}
.pbg-wrap *, .pbg-wrap *::before, .pbg-wrap *::after { box-sizing: border-box; }

.pbg-no-posts { text-align:center; color:var(--pbg-muted); padding:40px; }

/* ════════════════════════════════════════
   KART ORTAK
════════════════════════════════════════ */
.pbg-card {
    background: #fff;
    border-radius: var(--pbg-radius);
    border: 1px solid var(--pbg-border);
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(61,43,31,.06);
    transition: transform .35s var(--pbg-ease), box-shadow .35s var(--pbg-ease);
    position: relative;
}
.pbg-card::before {
    content: '';
    position: absolute; top:0; left:0; right:0;
    height: 3px;
    background: linear-gradient(90deg, var(--pbg-gold), #e8c89a, var(--pbg-gold));
    opacity: 0; z-index: 2;
    transition: opacity .3s;
}
.pbg-card:hover { transform: translateY(-5px); box-shadow: 0 14px 44px rgba(61,43,31,.11); }
.pbg-card:hover::before { opacity: 1; }

/* ─── Görsel sütunu ─── */
.pbg-card-img-col {
    display: block; text-decoration: none; overflow: hidden;
    flex-shrink: 0;
}
.pbg-img-wrap {
    position: relative; width: 100%; overflow: hidden;
}
.pbg-img {
    display: block; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .55s var(--pbg-ease);
}
.pbg-card:hover .pbg-img { transform: scale(1.06); }

/* Overlay */
.pbg-img-overlay {
    position: absolute; inset: 0;
    background: rgba(61,43,31,.28);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .35s;
}
.pbg-card:hover .pbg-img-overlay { opacity: 1; }
.pbg-overlay-btn {
    background: #fff; color: var(--pbg-brown);
    font-family: 'Jost', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .06em;
    padding: 9px 20px; border-radius: 50px; text-transform: uppercase;
}

/* ─── İçerik alanı ─── */
.pbg-card-body {
    display: flex; flex-direction: column;
    gap: 12px; flex: 1;
    padding: 28px 32px;
}

/* Üst satır: kategori + meta */
.pbg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Kategori etiketi */
.pbg-cat-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--pbg-gold); border: 1.5px solid var(--pbg-gold);
    padding: 3px 11px; border-radius: 50px;
    text-decoration: none;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.pbg-cat-badge:hover { background: var(--pbg-gold); color: #fff; }

/* Meta */
.pbg-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pbg-meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--pbg-muted); white-space: nowrap;
}
.pbg-meta-item svg { opacity: .7; flex-shrink: 0; }

/* Başlık */
.pbg-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600; line-height: 1.3;
    margin: 0;
}
.pbg-title a {
    color: var(--pbg-brown); text-decoration: none;
    transition: color .25s;
}
.pbg-card:hover .pbg-title a { color: var(--pbg-gold); }

/* Özet */
.pbg-excerpt {
    font-size: 14px; font-weight: 300; line-height: 1.8;
    color: var(--pbg-muted); margin: 0; flex: 1;
}

/* Devamını Oku */
.pbg-read-more {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600;
    color: var(--pbg-gold); text-decoration: none;
    position: relative; padding-bottom: 2px;
    transition: gap .25s, color .25s;
    align-self: flex-start;
    margin-top: auto;
}
.pbg-read-more::after {
    content: '';
    position: absolute; bottom: -1px; left: 0;
    width: 0; height: 1.5px;
    background: var(--pbg-gold);
    transition: width .3s var(--pbg-ease);
}
.pbg-read-more:hover { gap: 11px; color: var(--pbg-brown); }
.pbg-read-more:hover::after { width: 100%; }
.pbg-read-more svg { transition: transform .25s; }
.pbg-read-more:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════
   LAYOUT 1: YATAY — Görsel Sol, Yazı Sağ
════════════════════════════════════════ */
.pbg-outer-layout-horizontal .pbg-list {
    display: flex; flex-direction: column;
    gap: 24px;
}

.pbg-layout-horizontal {
    display: flex; flex-direction: row;
    align-items: stretch;
    min-height: 200px;
}

.pbg-layout-horizontal .pbg-card-img-col {
    flex: 0 0 40%; /* Elementor'dan override edilebilir */
    max-width: 60%;
}
.pbg-layout-horizontal .pbg-img-wrap {
    height: 100%;
}
.pbg-layout-horizontal .pbg-img-wrap::before {
    /* padding-bottom trick yerine tam yükseklik */
    content: none;
}
.pbg-layout-horizontal .pbg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.pbg-layout-horizontal .pbg-img-wrap {
    position: relative; height: 100%; min-height: 220px;
}

/* Görsel sol → kart border-radius sol kısma */
.pbg-layout-horizontal .pbg-card-img-col {
    border-radius: var(--pbg-radius) 0 0 var(--pbg-radius);
}
.pbg-layout-horizontal .pbg-card-body {
    padding: 32px 36px;
    justify-content: center;
}

/* Tek/çift sıra: alternating — çift sıralarda görsel sağ */
.pbg-outer-layout-horizontal .pbg-list > .pbg-card:nth-child(even) {
    flex-direction: row-reverse;
}
.pbg-outer-layout-horizontal .pbg-list > .pbg-card:nth-child(even) .pbg-card-img-col {
    border-radius: 0 var(--pbg-radius) var(--pbg-radius) 0;
}

/* ════════════════════════════════════════
   LAYOUT 2: DİKEY — Görsel Üst, Yazı Alt
════════════════════════════════════════ */
.pbg-outer-layout-vertical .pbg-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pbg-layout-vertical {
    display: flex; flex-direction: column;
}
.pbg-layout-vertical .pbg-card-img-col {
    width: 100%;
}
.pbg-layout-vertical .pbg-img-wrap {
    padding-bottom: 62%;
    position: relative;
}
.pbg-layout-vertical .pbg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.pbg-layout-vertical .pbg-card-img-col {
    border-radius: var(--pbg-radius) var(--pbg-radius) 0 0;
}
.pbg-layout-vertical .pbg-card-body {
    padding: 22px 24px 26px;
}
.pbg-layout-vertical .pbg-title { font-size: 18px; }

/* ════════════════════════════════════════
   LAYOUT 3: ÖNE ÇIKAN
════════════════════════════════════════ */
.pbg-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 24px;
}

/* İlk kart: tam sol sütun, büyük */
.pbg-featured-layout .pbg-featured {
    grid-column: 1;
    grid-row: 1 / span 3;
    flex-direction: column;
}
.pbg-featured.pbg-card .pbg-card-img-col {
    flex: none; width: 100%;
    border-radius: var(--pbg-radius) var(--pbg-radius) 0 0;
}
.pbg-featured.pbg-card .pbg-img-wrap {
    padding-bottom: 65%; position: relative;
}
.pbg-featured.pbg-card .pbg-img {
    position: absolute; inset: 0; width:100%;height:100%;
}
.pbg-featured.pbg-card .pbg-title {
    font-size: clamp(22px, 2.5vw, 30px);
}
.pbg-featured.pbg-card .pbg-card-body {
    padding: 28px 32px;
}

/* Diğer kartlar: sağ sütunda yatay küçük */
.pbg-featured-layout .pbg-card:not(.pbg-featured) {
    grid-column: 2;
    display: flex; flex-direction: row;
    min-height: 140px;
}
.pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-card-img-col {
    flex: 0 0 36%;
    border-radius: var(--pbg-radius) 0 0 var(--pbg-radius);
}
.pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-img-wrap {
    height: 100%; position: relative; min-height: 130px;
}
.pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-img {
    position: absolute; inset: 0; width:100%;height:100%;
}
.pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-card-body {
    padding: 18px 22px;
}
.pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-title {
    font-size: 16px;
}
.pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-excerpt {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ════════════════════════════════════════
   SAYFALAMA
════════════════════════════════════════ */
.pbg-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; flex-wrap: wrap; margin-top: 44px;
}
.pbg-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 600;
    color: var(--pbg-brown); text-decoration: none;
    background: #fff; border: 1.5px solid var(--pbg-border);
    border-radius: 10px; transition: all .25s var(--pbg-ease);
}
.pbg-pagination .page-numbers:hover,
.pbg-pagination .page-numbers.current {
    background: var(--pbg-gold); border-color: var(--pbg-gold); color: #fff;
    transform: translateY(-2px); box-shadow: 0 4px 14px rgba(155,126,90,.3);
}
.pbg-pagination .dots { border: none; background: none; box-shadow: none; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Yatay → dikey */
    .pbg-outer-layout-horizontal .pbg-list > .pbg-card,
    .pbg-outer-layout-horizontal .pbg-list > .pbg-card:nth-child(even) {
        flex-direction: column !important;
    }
    .pbg-layout-horizontal .pbg-card-img-col,
    .pbg-outer-layout-horizontal .pbg-list > .pbg-card:nth-child(even) .pbg-card-img-col {
        flex: none; width: 100%; max-width: 100%;
        border-radius: var(--pbg-radius) var(--pbg-radius) 0 0 !important;
    }
    .pbg-layout-horizontal .pbg-img-wrap { min-height: 220px; }

    /* Dikey grid → 2 sütun */
    .pbg-outer-layout-vertical .pbg-list { grid-template-columns: repeat(2,1fr); }

    /* Öne çıkan */
    .pbg-featured-layout { grid-template-columns: 1fr; }
    .pbg-featured-layout .pbg-featured { grid-row: auto; }
    .pbg-featured-layout .pbg-card:not(.pbg-featured) { grid-column: 1; }
}

@media (max-width: 560px) {
    .pbg-wrap { padding: 40px 0; }
    .pbg-outer-layout-vertical .pbg-list { grid-template-columns: 1fr; }
    .pbg-card-body { padding: 20px 20px 24px !important; }
    .pbg-featured-layout .pbg-card:not(.pbg-featured) { flex-direction: column; }
    .pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-card-img-col {
        flex: none; width: 100%; max-width: 100%;
        border-radius: var(--pbg-radius) var(--pbg-radius) 0 0;
    }
    .pbg-featured-layout .pbg-card:not(.pbg-featured) .pbg-img-wrap { min-height: 180px; }
}
