﻿/* ===== Editions Base (ortak) ===== */
:root {
    --ed-bordo: #6A1B1A;
    --ed-altin: #C49A3C;
    --ed-ivory: #F9F6F2;
    --ed-dark: #2E2E2E;
    --ed-muted: rgba(0,0,0,.60);
    --ed-brd: #efe7db;
    --ed-shadow: 0 10px 24px rgba(0,0,0,.12);
    --ed-radius: .9rem;
}

/* Layout */
.ed-container {
    max-width: 1200px;
    margin-inline: auto;
    padding: clamp(12px,2vw,24px)
}

.ed-scope {
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--ed-dark)
}

.bg-cover {
    background: #ddd center/cover no-repeat
}

/* Headings & text */
.ed-section-title, .ed-list-title {
    margin: 0 0 8px;
    font-weight: 900;
    font-size: clamp(1.4rem,2.2vw,1.8rem);
    color: var(--ed-dark)
}

.ed-section-sub, .ed-list-sub {
    margin: 0 0 18px;
    color: var(--ed-muted)
}

/* Buttons / chips / pills */
.ed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: .66rem;
    padding: 8px 12px;
    border: 1px solid transparent;
    font-weight: 700;
    background: #fff;
    color: var(--ed-dark);
    text-decoration: none
}

    .ed-btn.ghost {
        border: 1px solid #eadfd2
    }

    .ed-btn.primary {
        background: var(--ed-bordo);
        border-color: var(--ed-bordo);
        color: #fff
    }

.ed-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #eadfd2;
    background: #fff;
    color: var(--ed-dark);
    font-weight: 600
}

.ed-pill--muted {
    background: #F9F6F2
}

/* Badge */
.ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--ed-bordo);
    color: #fff;
    padding: 6px 10px;
    font-weight: 700;
    box-shadow: var(--ed-shadow)
}

    .ed-badge.alt {
        background: var(--ed-altin);
        color: #1c1c1c
    }

/* Side card (details sayfasında da kullanılıyor) */
.ed-side {
    border: 1px solid var(--ed-brd);
    border-radius: .75rem;
    background: #fff;
    padding: 14px;
    box-shadow: var(--ed-shadow)
}

/* Generic card */
.ed-card {
    position: relative;
    background: #fff;
    border-radius: var(--ed-radius);
    overflow: hidden;
    box-shadow: var(--ed-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ed-brd);
    transition: transform .16s ease, box-shadow .16s ease
}

    .ed-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(0,0,0,.18)
    }

.ed-card-cover {
    background: #ddd center/cover no-repeat
}

.ed-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px
}

.ed-card-title {
    margin: 0;
    line-height: 1.22
}

.ed-card-title__text {
    font-weight: 800;
    color: var(--ed-dark);
    text-decoration: none
}

.ed-card-title__year {
    font-weight: 700;
    color: var(--ed-muted);
    margin-left: 6px
}

.ed-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.ed-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto
}
/* ===== Galeri: iç scroll alanı ===== */
.eg-grid-scroll {
    /* yükseklik sınırı: masaüstünde daha geniş, mobilde daha dar */
    max-height: 560px;
    overflow: auto; /* hem dikey hem yatay gerekirse */
    padding-right: 6px; /* scrollbar için min boşluk */
    border-radius: 16px;
}

/* Mobil/tablet’te sınırı biraz düşür */
@media (max-width: 992px) {
    .eg-grid-scroll {
        max-height: 480px;
    }
}

@media (max-width: 576px) {
    .eg-grid-scroll {
        max-height: 380px;
    }
}

/* Scrollbar tema uyumu */
.eg-grid-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.eg-grid-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,.08);
    border-radius: 999px;
}

.eg-grid-scroll::-webkit-scrollbar-thumb {
    background: rgba(196,154,60,.55);
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,.10);
}

.eg-grid-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(196,154,60,.65) rgba(0,0,0,.08);
}

    /* Grid içerideyken alt fazla boşluk olmasın */
    .eg-grid-scroll .eg-grid {
        margin-bottom: 0;
    }

    /* (İsteğe bağlı) altta "fade" efekti – içerik var hissi verir */
    .eg-grid-scroll::after {
        content: "";
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 14px;
        display: block;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.12));
    }
