/* Proje detay — tam sayfa kapak + sol alt thumbnail + sağ alt iPhone künye */

/* Sayfa üst padding body'de mevcut; stage tüm görünen alanı kaplasın */
.project-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 640px;
    overflow: hidden;
    background: #000;
    margin: 0;
}

.project-stage__canvas {
    position: absolute; inset: 0;
}
.project-stage__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}
.project-stage__img.is-active {
    opacity: 1;
    transform: scale(1);
}

.project-stage__vignette {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.7) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.45) 0%, transparent 55%);
    pointer-events: none;
}

/* Sol üst: başlık bloğu */
.project-stage__heading {
    position: absolute;
    top: 40px; left: 40px;
    z-index: 3;
    max-width: 640px;
    color: #fff;
}
.project-stage__back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    transition: background var(--transition);
}
.project-stage__back:hover { background: rgba(255,255,255,0.22); color: #fff; }

.project-stage__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--site-accent);
    margin-bottom: 10px;
}

.project-stage__title {
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
    margin: 0;
}

/* Sol alt: thumbnail tepsisi */
.project-stage__thumbs {
    position: absolute;
    bottom: 32px; left: 40px;
    z-index: 3;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    max-width: calc(100% - 480px);
    overflow-x: auto;
    scrollbar-width: thin;
}
.project-thumb {
    flex-shrink: 0;
    width: 78px; height: 56px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    opacity: 0.55;
}
.project-thumb:hover { opacity: 1; transform: translateY(-2px); }
.project-thumb.is-active {
    opacity: 1;
    border-color: var(--site-accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 2px var(--site-accent);
    transform: translateY(-3px);
}
.project-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}

/* === iPhone tarzı bildirim künyesi (sağ alt) === */
.project-credit {
    position: absolute;
    bottom: 32px; right: 32px;
    z-index: 3;
    width: 380px;
    max-width: calc(100vw - 48px);
    border-radius: 22px;
    padding: 16px 18px 18px;
    color: #fff;
    font-size: 0.92rem;

    /* iOS bildirim efekti — hafif şeffaf */
    background: rgba(28, 28, 32, 0.55);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 0.5px solid rgba(255,255,255,0.18);
    box-shadow:
        0 12px 32px rgba(0,0,0,0.35),
        0 2px 10px rgba(0,0,0,0.25),
        inset 0 0.5px 0 rgba(255,255,255,0.15);

    animation: creditSlide 0.8s 0.4s var(--ease-out) both;
}

@keyframes creditSlide {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

.project-credit__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.project-credit__app {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.project-credit__app-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--site-color);
    display: grid; place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.project-credit__app-name {
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.1;
}
.project-credit__app-sub {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    margin-top: 2px;
}
.project-credit__time {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
}

.project-credit__body { }
.project-credit__title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.25;
}
.project-credit__summary {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.45;
    margin-bottom: 12px;
}

.project-credit__grid {
    display: grid;
    gap: 2px;
    padding-top: 10px;
    border-top: 0.5px solid rgba(255,255,255,0.14);
}
.project-credit__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    gap: 16px;
    font-size: 0.82rem;
}
.project-credit__label {
    color: rgba(255,255,255,0.55);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.project-credit__value {
    color: #fff;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

/* Açıklama & filtre barları */
.project-description {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}
.project-description p { margin: 0 0 1em; }

.page-hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}
.page-hero__title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    margin: 12px 0 12px;
    position: relative; z-index: 1;
}
.page-hero__lead {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    position: relative; z-index: 1;
}

.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-chip {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    transition: all var(--transition);
}
.filter-chip:hover { color: var(--color-text); border-color: var(--site-accent); }
.filter-chip.is-active {
    background: var(--site-accent);
    color: #000;
    border-color: var(--site-accent);
}

@media (max-width: 900px) {
    .project-stage {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .project-stage__canvas {
        position: relative;
        aspect-ratio: 4 / 3;
        height: auto;
    }
    .project-stage__heading {
        position: relative;
        top: auto; left: auto;
        padding: 20px;
        background: #0b0f14;
    }
    .project-stage__thumbs {
        position: relative;
        bottom: auto; left: auto;
        margin: 0 auto;
        max-width: 100%;
    }
    .project-credit {
        position: relative;
        bottom: auto; right: auto;
        width: calc(100% - 32px);
        margin: -40px auto 20px;
    }
}
