/* ════════════════════════════════════════════════
   ESERLER SAYFASI — eserler.css
════════════════════════════════════════════════ */

/* ── HERO ── */
.ep-hero {
    position: relative;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--void);
}

.ep-hero__video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.ep-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.38) saturate(.6) sepia(.15);
}

.ep-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(21,32,24,.98) 0%, rgba(21,32,24,.5) 45%, rgba(21,32,24,.2) 100%),
        linear-gradient(to right, rgba(21,32,24,.4) 0%, transparent 60%);
}

.ep-hero__inner {
    position: relative;
    z-index: 2;
    padding: 0 64px 80px;
}

.ep-hero__tag {
    font-family: var(--O);
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .28em;
    color: var(--accent);
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ep-hero__tag::before {
    content: '';
    display: block;
    width: 18px;
    height: 1px;
    background: var(--accent);
}

.ep-hero__h1 {
    font-family: var(--I);
    font-size: clamp(4rem, 8vw, 8rem);
    color: var(--cream);
    line-height: .9;
    margin-bottom: 24px;
}

.ep-hero__h1 em {
    font-style: italic;
    color: var(--accent3);
}

.ep-hero__desc {
    font-family: var(--O);
    font-size: .9rem;
    font-weight: 300;
    color: var(--cream3);
    line-height: 1.6;
}

.ep-hero__desc strong {
    color: var(--accent2);
    font-weight: 500;
}

.ep-hero__scroll {
    position: absolute;
    bottom: 32px;
    right: 64px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ep-hero__scroll span {
    font-family: var(--O);
    font-size: .5rem;
    letter-spacing: .22em;
    color: var(--cream4);
    text-transform: lowercase;
}

.ep-hero__scroll-bar {
    width: 48px;
    height: 1px;
    background: rgba(122,171,90,.15);
    position: relative;
    overflow: hidden;
}

.ep-hero__scroll-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 50%;
    background: var(--accent);
    animation: scrollBar 2s ease-in-out infinite;
}

@keyframes scrollBar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* ── FİLTRE BAR — masaüstü ── */
.ep-filter {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(21,32,24,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ep-filter__inner {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 64px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ep-filter__inner::-webkit-scrollbar { display: none; }

.ep-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    font-family: var(--O);
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--cream3);
    text-transform: lowercase;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
}

.ep-filter__btn:hover { color: var(--cream2); }

.ep-filter__btn.active {
    color: var(--accent2);
    border-bottom-color: var(--accent);
}

.ep-filter__cnt {
    font-size: .58rem;
    color: var(--cream4);
    background: rgba(122,171,90,.1);
    padding: 1px 6px;
    border-radius: 10px;
    transition: background .2s, color .2s;
}

.ep-filter__btn.active .ep-filter__cnt {
    background: rgba(122,171,90,.2);
    color: var(--accent3);
}

/* MOBİL FİLTRE — hamburger dropdown */
.ep-filter__mob-toggle {
    display: none;
    width: 100%;
    padding: 13px 20px;
    background: none;
    border: none;
    color: var(--cream2);
    font-family: var(--O);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: lowercase;
    text-align: left;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}

.ep-filter__mob-toggle svg {
    transition: transform .25s;
    flex-shrink: 0;
}

.ep-filter__mob-toggle.open svg {
    transform: rotate(180deg);
}

.ep-filter__mob-panel {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px 16px;
    max-height: 55dvh;
    overflow-y: auto;
}

.ep-filter__mob-panel.open {
    display: flex;
}

.ep-filter__mob-panel .ep-filter__btn {
    border-bottom: 1px solid var(--line);
    padding: 12px 4px;
    text-align: left;
    justify-content: space-between;
}

.ep-filter__mob-panel .ep-filter__btn.active {
    border-bottom-color: var(--line);
    color: var(--accent2);
}

.ep-filter__mob-panel .ep-filter__btn::after {
    display: none;
}

/* ── WRAP & COUNT ── */
.ep-wrap {
    background: var(--void);
    padding: 48px 64px 80px;
    min-height: 60vh;
}

.ep-count {
    font-family: var(--O);
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--cream4);
    text-transform: lowercase;
    margin-bottom: 28px;
    transition: opacity .3s;
}

/* ── GRID ── */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2px;
    min-height: 200px;
    position: relative;
}

/* ── KART ── */
.ep-card {
    position: relative;
    background: var(--void2);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 3/4;
    animation: cardIn .5s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ep-card__img {
    position: absolute;
    inset: 0;
}

.ep-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.45) saturate(.55) sepia(.12);
    transition: filter .6s ease, transform .8s cubic-bezier(.16,1,.3,1);
    display: block;
}

.ep-card:hover .ep-card__img img {
    filter: brightness(.7) saturate(.85) sepia(0);
    transform: scale(1.06);
}

.ep-card__ph {
    width: 100%;
    height: 100%;
    background: var(--void3);
}

.ep-card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(21,32,24,.97) 0%,
        rgba(21,32,24,.5)  45%,
        rgba(21,32,24,.1)  75%,
        transparent        100%
    );
    transition: background .5s;
}

.ep-card:hover .ep-card__veil {
    background: linear-gradient(
        to top,
        rgba(21,32,24,.92) 0%,
        rgba(21,32,24,.3)  55%,
        transparent        100%
    );
}

.ep-card__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(122,171,90,.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s, transform .3s;
}

.ep-card:hover .ep-card__zoom {
    opacity: 1;
    transform: scale(1);
}

.ep-card__zoom svg {
    stroke: var(--accent2);
    fill: none;
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ep-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px;
    transform: translateY(4px);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.ep-card:hover .ep-card__info { transform: none; }

.ep-card__num {
    display: block;
    font-family: var(--O);
    font-size: .5rem;
    font-weight: 400;
    letter-spacing: .18em;
    color: rgba(122,171,90,.55);
    margin-bottom: 5px;
    text-transform: lowercase;
}

.ep-card__name {
    display: block;
    font-family: var(--I);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 5px;
}

.ep-card__cat {
    display: inline-block;
    font-family: var(--O);
    font-size: .56rem;
    font-weight: 300;
    letter-spacing: .1em;
    color: var(--accent3);
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .3s .05s, transform .3s .05s;
    margin-bottom: 4px;
}

.ep-card:hover .ep-card__cat {
    opacity: 1;
    transform: none;
}

.ep-card__acik {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--O);
    font-size: .72rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--cream3);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .3s .08s, transform .3s .08s;
}

.ep-card:hover .ep-card__acik {
    opacity: 1;
    transform: none;
}

/* ── LOADING ── */
.ep-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ep-loading__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .4;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.ep-loading__dot:nth-child(2) { animation-delay: .2s; }
.ep-loading__dot:nth-child(3) { animation-delay: .4s; }

@keyframes dotPulse {
    0%, 100% { opacity: .2; transform: scale(.8); }
    50%       { opacity: 1;  transform: scale(1.2); }
}

.ep-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    font-family: var(--O);
    font-size: .88rem;
    color: var(--cream4);
}

/* ── LİGHTBOX ── */
.ep-lb {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ep-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,16,11,.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ep-lb__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    max-height: 90dvh;
    display: grid;
    grid-template-rows: 1fr auto;
    background: var(--void2);
    border: 1px solid var(--line2);
    overflow: hidden;
    animation: lbIn .22s ease;
}

@keyframes lbIn {
    from { opacity: 0; transform: scale(.97) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ep-lb__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(21,32,24,.8);
    border: 1px solid var(--line2);
    color: var(--cream3);
    font-family: var(--O);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: lowercase;
    padding: 7px 14px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.ep-lb__close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ep-lb__img-wrap {
    position: relative;
    background: #0a100b;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 58dvh;
    overflow: hidden;
}

.ep-lb__img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 58dvh;
}

.ep-lb__img-inner img {
    max-width: 100%;
    max-height: 58dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity .25s;
}

.ep-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(21,32,24,.7);
    border: 1px solid var(--line2);
    color: var(--cream3);
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    line-height: 1;
}

.ep-lb__nav:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(21,32,24,.9);
}

.ep-lb__nav--prev { left: 12px; }
.ep-lb__nav--next { right: 12px; }

.ep-lb__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
}

.ep-lb__dot {
    width: 18px;
    height: 2px;
    background: rgba(235,240,230,.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .25s;
}

.ep-lb__dot.on {
    background: var(--accent);
    width: 32px;
}

.ep-lb__info {
    padding: 18px 28px 22px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 24px;
    align-items: start;
}

.ep-lb__kat {
    grid-column: 1;
    font-family: var(--O);
    font-size: .56rem;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--accent);
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-lb__kat::before {
    content: '';
    display: block;
    width: 12px;
    height: 1px;
    background: var(--accent);
}

.ep-lb__ad {
    grid-column: 1;
    font-family: var(--I);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    color: var(--cream);
    line-height: 1.1;
    margin: 2px 0 6px;
}

.ep-lb__acik {
    grid-column: 1;
    font-family: var(--O);
    font-size: .84rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--cream3);
    margin: 0;
}

.ep-lb__sayac {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    font-family: var(--I);
    font-size: 2.4rem;
    color: rgba(122,171,90,.2);
    line-height: 1;
    white-space: nowrap;
    text-align: right;
}

/* ── MOBİL ── */
@media (max-width: 960px) {
    .ep-hero__inner  { padding: 0 24px 64px; }
    .ep-hero__scroll { right: 24px; }

    /* Filtre bar mobil */
    .ep-filter { top: 64px; } /* mobil nav daha kısa */
    .ep-filter__inner { display: none; } /* masaüstü satır gizle */
    .ep-filter__mob-toggle { display: flex; }

    .ep-wrap  { padding: 28px 14px 60px; }
    .ep-grid  {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    .ep-card  { aspect-ratio: 2/3; }

    /* Lightbox mobil */
    .ep-lb { padding: 10px; }
    .ep-lb__box { max-width: 100%; max-height: 96dvh; }
    .ep-lb__img-wrap  { max-height: 44dvh; min-height: 200px; }
    .ep-lb__img-inner { max-height: 44dvh; }
    .ep-lb__img-inner img { max-height: 44dvh; }
    .ep-lb__info {
        grid-template-columns: 1fr;
        padding: 14px 18px 18px;
    }
    .ep-lb__sayac { display: none; }
    .ep-lb__nav { width: 36px; height: 36px; font-size: 1.2rem; }
}
