﻿/* ===========================
   Editions • Details (FINAL)
   =========================== */
:root {
    --ed-bordo: #6A1B1A;
    --ed-altin: #C49A3C;
    --ed-ivory: #F9F6F2;
    --ed-dark: #2E2E2E;
    --ed-muted: rgba(0,0,0,.6);
    --ed-brd: #eadfd2
}

.ed-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px
}

.ed-scope {
    color: var(--ed-dark)
}

.mt-4 {
    margin-top: 1.25rem
}

.mt-n3 {
    margin-top: -1rem
}

.bg-cover {
    background-size: cover;
    background-position: center
}

.card {
    background: #fff;
    border: 1px solid var(--ed-brd);
    border-radius: 14px
}

.text-muted {
    color: var(--ed-muted)
}

.small {
    font-size: .9rem
}

.mi {
    display: inline-block;
    line-height: 1;
    vertical-align: -2px;
    margin-right: 6px
}

.i-cal::before {
    content: "📅"
}

.i-clock::before {
    content: "⏰"
}

.i-building::before {
    content: "🏛️"
}

.i-pin::before {
    content: "📍"
}

.i-users::before {
    content: "👥"
}

/* ========= HERO – GÖRSEL, MERKEZLEME, YÜKSEKLİK ========= */

.ed-hero {
    position: relative;
    margin-top: 8px;
    /* FAB’in dışarı taşmasını engellememek için görünür bırak */
    overflow: visible;
    /* FAB için alttan güvenli boşluk */
    padding-bottom: 56px;
}

    .ed-hero .hero-img {
        width: 100%;
        /* yükseklik değişkenle kontrol (varsayılan: önceki değerlerin üstüne) */
        height: var(--hero-h, min(52vw,560px));
        background-color: #ddd;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: var(--hero-pos, center center);
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(0,0,0,.12);
    }

/* Full-bleed */
.ed-hero--full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* “Daha uzun” varyant */
.ed-hero--taller .hero-img {
    height: var(--hero-h, min(68vw,720px));
}

/* Kırpmadan sığdırmak için opsiyonel mod */
.ed-hero--fit .hero-img {
    background-size: contain !important; /* TAM sığdır */
    background-position: var(--hero-pos, center center) !important;
    /* üst/alt bantların rengi (tema tercihine göre değişebilir) */
    background-color: #F9F6F2;
}

/* Mobil yükseklik */
@media (max-width:768px) {
    .ed-hero .hero-img {
        height: var(--hero-h-sm, min(80vw,520px));
    }

    .ed-hero--full .ed-hero-fab {
        width: 94vw;
    }
}

/* ========= YÜZEN BAŞLIK (FAB) ========= */

.ed-hero-fab {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0; /* kapsayıcı altına bağla */
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border-radius: 999px;
    padding: .65rem .9rem;
    box-shadow: 0 14px 28px rgba(0,0,0,.15);
    max-width: clamp(320px, 92vw, 1140px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Görsel olarak yumuşak giriş */
    opacity: 0;
    transform: translate(-50%, 10px);
    animation: fab-in .5s ease-out .1s forwards;
}

.ed-hero--full .ed-hero-fab {
    right: auto;
}
/* spesifik kural: merkezde kal */

.fab-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    padding: .45rem .8rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
    font-weight: 700;
}

.fab-dot {
    opacity: .4;
}

.fab-title {
    font-weight: 700;
    letter-spacing: .1px;
}

/* FAB giriş animasyonu */
@keyframes fab-in {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ================== HERO ================== */

.ed-hero.ed-hero--full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible; /* FAB kesilmesin */
    padding-bottom: 56px; /* FAB için güvenli alan */
}

.ed-hero .hero-img {
    position: relative;
    width: 100%;
    height: var(--hero-h, min(52vw, 560px));
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    overflow: hidden; /* img taşarsa kes */
    background: #ddd; /* img yüklenmeden önce */
}

/* “daha uzun” varyantı (varsa) değişkeni kullanır */
.ed-hero--taller .hero-img {
    height: var(--hero-h, min(68vw, 720px));
}

/* Görsel: tam dolu (cover), odak ayarlanabilir */
.hero-img-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ⚡ tam dolu: boşluk yok */
    object-position: var(--hero-pos, 50% 50%); /* odak—örn 50% 38% */
    display: block;
    filter: none;
    transform: translateZ(0); /* perf. */
}

/* İsteğe bağlı: “tam sığdır” modu (kenarda bantlar olabilir) */
.ed-hero--fit .hero-img .hero-img-img {
    object-fit: contain !important; /* tamamını göster */
    background: #F9F6F2; /* bant rengi tema ile uyumlu */
}

/* Koyulaştırma / okunurluk (opsiyonel) */
.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.20) 100%);
    pointer-events: none;
}

/* Altta yumuşak fade (fab bölgesine) */
.ed-hero .hero-img::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 10%, rgba(0,0,0,.08) 100%);
    pointer-events: none;
}

/* Mobil yükseklik */
@media (max-width: 768px) {
    .ed-hero .hero-img {
        height: var(--hero-h-sm, min(80vw, 520px));
    }
}

/* ================== FAB (yüzen başlık) ================== */

.ed-hero .ed-hero-fab {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border-radius: 999px;
    padding: .65rem .9rem;
    box-shadow: 0 14px 28px rgba(0,0,0,.15);
    max-width: clamp(320px, 92vw, 1140px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translate(-50%, 10px);
    animation: fab-in .45s ease-out .05s forwards;
}

@keyframes fab-in {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.ed-hero .fab-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* ================== ALT ROZETLER ================== */
.hero-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .6rem .6rem;
    margin-top: 14px;
    margin-bottom: 6px;
    text-align: center;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    padding: .45rem .9rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
    font-weight: 600;
}

/* mevcut rozet renklerinle uyumlu; istersen olduğu gibi bırak */
.badge-announced {
    background: #ead9d9;
}

.badge-scheduled {
    background: #e9d99f;
}

.badge-completed {
    background: #d5e7d7;
}


/* ARTISTS */
.artist-box .artist-box-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ed-brd)
}

.artist-box .artist-box-title {
    display: flex;
    align-items: center;
    gap: 8px
}

    .artist-box .artist-box-title .dot {
        width: 10px;
        height: 10px;
        background: var(--ed-bordo);
        border-radius: 50%
    }

.artists-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: 12px
}

.artist-card, .ed-artist {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ed-brd);
    border-radius: 14px;
    background: #fff
}

.artist-photo, .ed-artist-photo {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    background: #ddd center/cover no-repeat
}

.artist-name, .ed-artist-name {
    font-weight: 700;
    color: var(--ed-dark);
    text-align: center;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

/* Section Head (Oturumlar) */
.sec-head {
    position: relative;
    margin: 28px 0 12px
}

    .sec-head .sec-rail {
        height: 4px;
        width: 220px;
        border-radius: 6px;
        background: linear-gradient(90deg,var(--ed-bordo),var(--ed-altin));
        opacity: .18;
        margin-bottom: 10px
    }

    .sec-head .sec-title {
        margin: 0;
        font-weight: 900;
        letter-spacing: .2px;
        color: var(--ed-dark);
        font-size: 1.6rem;
        display: flex;
        align-items: center;
        gap: 8px
    }

    .sec-head .sec-sub {
        margin: 6px 0 0;
        color: var(--ed-muted);
        font-size: .98rem
    }

@media (max-width:640px) {
    .sec-head {
        margin: 22px 0 10px
    }

        .sec-head .sec-title {
            font-size: 1.4rem
        }

        .sec-head .sec-rail {
            width: 160px
        }
}

/* Day */
.day-box {
    background: #fff;
    border: 1px solid var(--ed-brd);
    border-radius: 14px;
    overflow: hidden
}

.day-box-head {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ed-brd)
}

.day-badge {
    width: 56px;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(180deg,#f4ebe0,#fff);
    border: 1px solid var(--ed-brd)
}

    .day-badge .d1 {
        font: 800 20px/1 ui-sans-serif;
        padding-top: 6px
    }

    .day-badge .d2, .day-badge .d3 {
        font-weight: 800;
        font-size: 12px;
        opacity: .75
    }

.day-head-main .title {
    font-weight: 900;
    color: var(--ed-dark)
}

.day-head-main .sub {
    color: var(--ed-muted)
}

.pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--ed-brd);
    background: #fff
}

.sep {
    opacity: .5;
    margin: 0 6px
}

/* Sessions (accordion) */
.ed-session-row {
    border-top: 1px dashed var(--ed-brd)
}

.session-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer
}

    .session-summary::-webkit-details-marker {
        display: none
    }

    .session-summary .ss-left {
        flex: 1 1 auto;
        min-width: 0
    }

    .session-summary .ss-title {
        font-weight: 900;
        color: var(--ed-dark);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .session-summary .ss-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px
    }

    .session-summary .time-chip {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        padding: 6px 10px;
        border: 1px solid var(--ed-brd);
        border-radius: 999px;
        background: #fff;
        font-weight: 700;
        color: var(--ed-dark)
    }

    .session-summary .ss-venue {
        color: var(--ed-muted);
        white-space: nowrap
    }

.chev {
    margin-left: auto;
    transition: .2s transform;
    opacity: .6
}

.ed-session-row[open] .chev {
    transform: rotate(180deg)
}

@media (max-width:640px) {
    .session-summary {
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 6px
    }

        .session-summary .ss-right {
            width: 100%;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 8px
        }
}

.session-body {
    padding: 12px 16px 18px
}

.session-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 14px
}

@media (max-width:992px) {
    .session-grid {
        grid-template-columns: 1fr
    }
}

/* Readings (final) */
.readings {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.reading-item {
    background: #fff;
    border: 1px solid var(--ed-brd);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.reading-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0
}

.rl-badge.ord {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--ed-bordo);
    background: var(--ed-ivory);
    border: 1px solid var(--ed-brd)
}

.readings .sep {
    opacity: .45;
    margin: 0 2px
}

.rl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    line-height: 1;
    border: 1px solid var(--ed-brd);
    background: #fff;
    color: var(--ed-dark);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700
}

    .rl-chip.poem {
        background: #fff7e3;
        border-color: #f0e0b7
    }

        .rl-chip.poem::before {
            content: "📜"
        }

    .rl-chip.artist {
        background: var(--ed-ivory);
        color: var(--ed-bordo)
    }

        .rl-chip.artist::before {
            content: "👤"
        }

.reading-excerpt {
    color: var(--ed-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4
}

.rl-chip[href]:hover {
    filter: brightness(.98)
}

@media (max-width:640px) {
    .reading-line {
        gap: 8px
    }

    .rl-badge.ord {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: .95rem
    }
}

/* Venue */
.venue-col .card {
    border: 1px solid var(--ed-brd);
    border-radius: 14px;
    overflow: hidden
}

.v-head {
    padding: 10px 12px;
    font-weight: 900;
    background: #f7efe4;
    border-bottom: 1px solid var(--ed-brd)
}

.v-photo {
    width: 100%;
    height: 180px;
    background: #ddd center/cover no-repeat;
    border-radius: 10px
}

.v-attr {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

    .v-attr + .v-attr {
        margin-top: 10px
    }

.ico-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0ece6;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.v-col .k {
    font-weight: 700;
    color: var(--ed-muted)
}

.v-col .v {
    color: var(--ed-dark)
}

.map-embed {
    transition: opacity .2s ease
}

.d-none {
    display: none !important
}

.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--ed-bordo) !important;
    background: #fff !important;
    color: var(--ed-bordo) !important;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0,0,0,.06)
}

    .map-toggle:hover {
        filter: brightness(.98)
    }

a {
    text-decoration: none;
    color: inherit
}

h3 {
    margin: 0
}
/* ===========================
   Motion & Reveal (ADD-ON)
   =========================== */

/* — Kullanıcı erişilebilirliği: hareket kısıtlıysa animasyonları kapat — */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- Ken Burns (hero image için nazik zoom) ---- */
@media (prefers-reduced-motion: no-preference) {
    .ed-hero .hero-img .hero-img-img {
        transform-origin: var(--kb-origin, 50% 50%);
        animation: ed-kb-zoom 22s ease-out both;
    }

    @keyframes ed-kb-zoom {
        from {
            transform: scale(1.04);
        }

        to {
            transform: scale(1);
        }
    }

    /* Hero altındaki yumuşak fade hızlıca belirsin */
    .ed-hero .hero-img::after {
        animation: ed-fade-in .6s ease .15s both;
    }

    @keyframes ed-fade-in {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Hero meta rozetleri (başlık altı) hafif “reveal” */
    .hero-info {
        animation: ed-reveal-up .5s cubic-bezier(.2,.65,.2,1) .12s both;
    }

    /* Genel reveal alt yapısı (scroll ile tetiklenecek) */
    .ed-reveal {
        opacity: 0;
        transform: translateY(12px);
    }

    .ed-reveal-in {
        animation: ed-reveal-up .55s cubic-bezier(.2,.65,.2,1) var(--d, 0ms) both;
    }

    @keyframes ed-reveal-up {
        to {
            opacity: 1;
            transform: none;
        }
    }

    /* Section başlık rayı (sec-rail) sol’dan sağ’a dolsun */
    .sec-head .sec-rail {
        transform: scaleX(0);
        transform-origin: left center;
    }

    .sec-head.ed-reveal-in .sec-rail {
        animation: ed-rail-in .6s ease .05s both;
    }

    @keyframes ed-rail-in {
        to {
            transform: scaleX(1);
        }
    }
}

/* ---- Micro-interactions: hover “lift” & chips ---- */
.artist-card:hover,
.ed-artist:hover,
.reading-item:hover,
.day-box:hover,
.venue-col .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.meta-chip:hover,
.fab-chip:hover,
.pill:hover,
.session-summary .time-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.06);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

/* Session satırındaki ok (chev) hover’da biraz belirginleşsin */
.session-summary:hover .chev {
    opacity: .85;
    transform: translateY(-1px);
}

/* Artist grid & readings & sessions için hafif gecikmeli “stagger” görünüm */
.artists-wrap > * {
    will-change: transform, opacity;
}

.readings .reading-item {
    will-change: transform, opacity;
}

.ed-session-row {
    will-change: transform, opacity;
}

.session-summary {
    will-change: transform, opacity;
}

/* Yüzen badge zaten giriş animasyonuna sahip; küçük titreşim istemiyorsan dokunma */

/* (Opsiyonel) Map embed görünür yapılırken hafif fade */
.map-embed {
    transition: opacity .24s ease;
}

    .map-embed.d-none ~ .map-embed {
        opacity: 0;
    }
