/* ── CSS Variables ── */
:root {
    --bg: #f8f7f3;
    --ink: #111318;
    --muted: #8d929a;
    --line: rgba(17, 19, 24, 0.12);
    --glass: rgba(255, 255, 255, 0.25);
    --glass-line: rgba(255, 255, 255, 0.42);
    --shadow: rgba(20, 24, 35, 0.16);
    --max: 1160px;
    --bs-body-bg: var(--bg);
}

.page-content p {
    font-size: 18px;
}

.entry-content p {
    font-size: 18px;
    line-height: 1.5;
}

/* Category badge colors */
.text-bg-cat1   { background-color: rgba(26, 129, 207, 0.7);  /* Mavi    */ }
.text-bg-cat2   { background-color: rgba(54, 175, 56, 0.7);   /* Yeşil   */ }
.text-bg-cat3   { background-color: rgba(248, 171, 0, 0.7);   /* Sarı    */ }
.text-bg-cat4   { background-color: rgba(138, 40, 83, 0.7);   /* Mor     */ }
.text-bg-cat5   { background-color: rgba(204, 94, 58, 0.7);   /* Turuncu */ }
.text-bg-cat6   { background-color: rgba(61, 72, 86, 0.7);    /* Füme    */ }
.text-bg-catDef { background-color: rgba(197, 197, 197, 0.7); /* Gri     */ }

a.text-bg-cat3   { color: black; }
a.text-bg-catDef { color: black; }

/* Read more link */
a.moretag {
    font-size: 18px;
}

/* ── Typography (Olympus Google Fonts replication) ── */

/* Site title in navbar */
.navbar-brand span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
}

/* Per-link navbar accent colors (logo palette) */
.nav-blog:hover,
.nav-blog.active { color: #35ae36 !important; } /* logo yeşil */

.nav-photography:hover,
.nav-photography.active { color: #f8aa00 !important; } /* logo sarı */

.nav-books:hover,
.nav-books.active { color: #1880ce !important; } /* logo mavi */

/* Post & page H1 */
.entry-title,
.page-header h1 {
    font-family: "PP Neue Montreal", "Neue Montreal", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: clamp(-0.03em, -0.18vw, -0.015em);
    font-optical-sizing: auto;
    font-kerning: normal;
    font-synthesis-weight: none;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Page / blog listing title – same size & typography as the home hero */
.page-hero-title {
    font-size: clamp(38px, 5.1vw, 70px);
    line-height: 0.985;
    letter-spacing: clamp(-0.072em, -0.42vw, -0.045em);
}

/* Post content body text */
.entry-content,
.entry-content p,
.page-content,
.page-content p {
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
}

/* H2 – H6 */
h2 { font-family: 'Poppins', sans-serif; font-weight: 400; }
h3 { font-family: 'Poppins', sans-serif; font-weight: 400; }
h4 { font-family: 'Poppins', sans-serif; font-weight: 300; }
h5 { font-family: 'Poppins', sans-serif; font-weight: 300; }
h6 { font-family: 'Poppins', sans-serif; font-weight: 200; }

/* Footer */
.site-footer,
.site-footer p {
    font-family: 'Encode Sans', sans-serif;
    font-weight: 100;
}

/* Pagination */
.blog-pagination .page-link {
    border: none;
    color: #555;
    background: transparent;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.blog-pagination .page-link:hover {
    background-color: rgba(0, 0, 0, 0.07);
    color: #111;
}

.blog-pagination .page-item.active .page-link {
    background-color: rgba(0, 0, 0, 0.08);
    color: #111;
    font-weight: 700;
}

.blog-pagination .page-item.disabled .page-link {
    color: #bbb;
    background: transparent;
}

.page {
    width: min(var(--max), calc(100% - 42px));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 84% 22%, rgba(140, 117, 155, 0.16), transparent 32%),
        radial-gradient(circle at 20% 60%, rgba(112, 140, 155, 0.12), transparent 28%),
        var(--bg);
}

/* ── Home page font ── */
body.home {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

/* ── Home page main ── */
main {
    position: relative;
    min-height: 690px;
    padding: 70px 0 84px;
    isolation: isolate;
}

/* ── Background elements ── */
.field {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(20, 24, 35, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 24, 35, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 48%, black 0 58%, transparent 85%);
}

.ambient {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 18% 18%, rgba(51, 90, 122, .12), transparent 28%),
        radial-gradient(circle at 76% 36%, rgba(105, 66, 94, .13), transparent 27%),
        radial-gradient(circle at 52% 78%, rgba(78, 117, 112, .10), transparent 30%);
    filter: blur(10px);
}

/* ── Hero text ── */
.hero {
    max-width: 576px;
    margin-left: 56px;
    position: relative;
    z-index: 0;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: "PP Neue Montreal", "Neue Montreal", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(38px, 5.1vw, 70px);
    line-height: 0.985;
    letter-spacing: clamp(-0.072em, -0.42vw, -0.045em);
    font-weight: 700;
    max-width: 576px;
    text-wrap: balance;
    font-optical-sizing: auto;
    font-kerning: normal;
    font-synthesis-weight: none;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

.credit {
    margin-top: 28px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* ── Bubbles container ── */
.bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
    touch-action: none;
    overflow: hidden;
}

/* ── Bubble base ── */
.bubble {
    --size: 272px;
    --x: 50%;
    --y: 50%;
    --delay: 0s;
    --dur: 12s;
    position: absolute;
    width: min(var(--size), calc(100vw - 36px));
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: clamp(16px, 7.8%, 28px);
    border-radius: 52% 48% 43% 57% / 50% 42% 58% 50%;
    color: white;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,.72), transparent 0 13%, rgba(255,255,255,.08) 26%, transparent 48%),
        linear-gradient(132deg, rgba(255,255,255,.38), rgba(255,255,255,.06) 42%, rgba(255,255,255,.24)),
        var(--tint, rgba(80, 96, 110, .32));
    border: none;
    box-shadow:
        inset 14px 18px 34px rgba(255,255,255,.28),
        inset -22px -26px 50px rgba(0,0,0,.13),
        0 36px 90px rgba(90, 90, 100, 0.32),
        0 12px 30px rgba(70, 70, 80, 0.22);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    overflow: hidden;
    appearance: none;
    cursor: grab;
    user-select: none;
    animation: morph calc(var(--dur) * 1.2) cubic-bezier(.42, 0, .18, 1) infinite;
    animation-delay: var(--delay);
    will-change: transform, border-radius;
}

.bubble.is-dragging {
    cursor: grabbing;
}

.bubble::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.35) 42%, transparent 58%);
    transform: translateX(-55%) rotate(12deg);
    animation: shimmer 7s ease-in-out infinite;
    mix-blend-mode: screen;
}

.bubble span {
    position: relative;
    z-index: 1;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: .14em;
    text-shadow: 0 2px 18px rgba(0,0,0,.22);
}

.bubble small {
    display: block;
    margin-top: 10px;
    text-transform: lowercase;
    font-size: 14px;
    font-weight: 560;
    letter-spacing: .02em;
    opacity: .84;
}

/* ── Individual bubbles ── */
.photography { --size: 306px; --x: 20%; --y: 54%; --tint: rgba(74, 103, 132, .36); --delay: -1s; --dur: 22s; }
.blog        { --size: 272px; --x: 71%; --y: 30%; --tint: rgba(115, 72, 101, .32); --delay: -4s; --dur: 24s; }
.books       { --size: 255px; --x: 56%; --y: 73%; --tint: rgba(75, 111, 109, .34); --delay: -2s; --dur: 23s; }
.vinyl       { --size: 187px; --x: 86%; --y: 58%; --tint: rgba(94, 88, 81, .30); --delay: -7s; --dur: 21s; }
.about       { --size: 144px; --x: 38%; --y: 34%; --tint: rgba(89, 92, 101, .23); --delay: -5s; --dur: 20s; }

/* ── Keyframes ── */
@keyframes morph {
    0%, 100% { border-radius: 52% 48% 43% 57% / 50% 42% 58% 50%; }
    33%      { border-radius: 44% 56% 62% 38% / 43% 56% 44% 57%; }
    66%      { border-radius: 60% 40% 46% 54% / 58% 44% 56% 42%; }
}

@keyframes shimmer {
    0%, 22% { transform: translateX(-72%) rotate(12deg); opacity: 0; }
    45%     { opacity: .62; }
    78%, 100% { transform: translateX(72%) rotate(12deg); opacity: 0; }
}

/* ── Responsive ── */
@media (min-width: 1040px) {
    .hero h1 {
        font-size: clamp(51px, 4.9vw, 74px);
        letter-spacing: -0.068em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bubble, .bubble::after { animation: none; }
}

@media (max-width: 860px) {
    body.home { width: min(100% - 28px, var(--max)); }
    main { min-height: clamp(720px, 92svh, 820px); padding-top: 50px; padding-bottom: 62px; }
    .hero { margin-left: 0; max-width: 620px; }
    .bubbles { inset: 170px -6px 0; }
    .bubble {
        box-shadow:
            inset 10px 14px 26px rgba(255,255,255,.25),
            inset -16px -20px 38px rgba(0,0,0,.12),
            0 24px 64px rgba(90, 90, 100, 0.26),
            0 8px 22px rgba(70, 70, 80, 0.18);
        backdrop-filter: blur(18px) saturate(130%);
        -webkit-backdrop-filter: blur(18px) saturate(130%);
    }
    .photography { --size: clamp(151px, 28vw, 196px); --x: 26%; --y: 42%; }
    .blog        { --size: clamp(136px, 25vw, 173px); --x: 72%; --y: 34%; }
    .books       { --size: clamp(128px, 24vw, 165px); --x: 46%; --y: 70%; }
    .vinyl       { --size: clamp(100px, 19vw, 129px); --x: 78%; --y: 66%; }
    .about       { --size: clamp(88px, 16vw, 110px); --x: 22%; --y: 76%; }
}

@media (max-width: 560px) {
    body.home { width: min(100% - 22px, var(--max)); }
    main { min-height: clamp(680px, 94svh, 760px); padding-top: 42px; }
    .bubbles { inset: clamp(210px, 34svh, 248px) -4px 8px; }
    .hero h1 {
        font-size: clamp(32px, 9.6vw, 43px);
        line-height: 1.015;
        letter-spacing: -0.048em;
        max-width: 94vw;
    }
    .credit { margin-top: 22px; font-size: 11px; }
    .bubble span { font-size: clamp(11px, 3.2vw, 13px); letter-spacing: .105em; }
    .bubble small { margin-top: 7px; font-size: clamp(10px, 2.9vw, 12px); }
    .photography { --size: clamp(116px, 39vw, 139px); --x: 27%; --y: 31%; }
    .blog        { --size: clamp(107px, 36vw, 129px); --x: 72%; --y: 30%; }
    .books       { --size: clamp(105px, 35vw, 126px); --x: 46%; --y: 64%; }
    .vinyl       { --size: clamp(87px, 29vw, 105px); --x: 76%; --y: 72%; }
    .about       { --size: clamp(78px, 26vw, 95px); --x: 20%; --y: 76%; }
}

@media (max-width: 380px) {
    main { min-height: 700px; }
    .photography { --size: 132px; --x: 28%; --y: 30%; }
    .blog        { --size: 122px; --x: 72%; --y: 32%; }
    .books       { --size: 120px; --x: 48%; --y: 62%; }
    .vinyl       { --size: 96px;  --x: 76%; --y: 76%; }
    .about       { --size: 88px;  --x: 20%; --y: 78%; }
}

/* Post content images */
.entry-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

.entry-content img.img-portrait {
    max-width: 80%;
}

/* About page – profile photo */
.about-photo {
    float: right;
    width: clamp(180px, 34%, 280px);
    margin: 4px 0 24px 36px;
    shape-outside: circle(50%);
}

.about-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(1);
}

/* About page – contact line */
.about-contact {
    clear: both;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.about-contact i {
    color: var(--muted);
}

.about-contact a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.about-contact a:hover {
    border-bottom-color: var(--ink);
}

/* About page – pull quote */
.entry-content blockquote {
    margin: 32px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--ink);
    font-family: "PP Neue Montreal", "Neue Montreal", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.entry-content blockquote p {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
}

@media (max-width: 575.98px) {
    .about-photo {
        float: none;
        width: 70%;
        margin: 0 auto 28px;
    }
}

/* ── Photography ── */
.photography-index,
.gallery-page,
.photo-page {
    width: min(var(--max), calc(100% - 42px));
    margin-inline: auto;
}

/* Footer'a nefes payı bırak (özellikle dikey fotoğraflarda) */
.gallery-page,
.photo-page {
    padding-bottom: clamp(64px, 11vh, 132px);
}

/* Justified tiles (gallery detail – Flickr-style rows, aspect preserved) */
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tiles .tile {
    position: relative;
    height: 260px;
    flex: var(--ar) 1 calc(var(--ar) * 260px);
    overflow: hidden;
    border-radius: 6px;
    background: rgba(17, 19, 24, 0.05);
}

.tiles .tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tiles .tile:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .tiles .tile {
        height: 180px;
        flex-basis: calc(var(--ar) * 180px);
    }
}

/* ── Photography index – editorial feature flow ── */
.photography-features {
    display: flex;
    flex-direction: column;
    gap: clamp(56px, 9vw, 128px);
    margin-top: clamp(28px, 5vw, 64px);
    margin-bottom: clamp(60px, 10vh, 120px);
}

.feature {
    display: flex;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    text-decoration: none;
    color: var(--ink);
}

.feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-media {
    position: relative;
    flex: 1 1 58%;
}

.feature-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 22px 55px -30px var(--shadow);
    transition: transform 0.5s ease;
}

.feature:hover .feature-media img {
    transform: translateY(-5px);
}

/* Series → stacked "pile of prints" peeking behind the cover */
.feature.is-series .feature-media::before,
.feature.is-series .feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px -24px var(--shadow);
    z-index: -1;
}

.feature.is-series .feature-media::before {
    transform: rotate(-2.6deg) translate(-16px, 12px);
}

.feature.is-series .feature-media::after {
    transform: rotate(3deg) translate(18px, 18px);
}

.feature-text {
    flex: 1 1 42%;
}

.feature:nth-child(even) .feature-text {
    text-align: right;
}

.feature-title {
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.05;
    margin: 0 0 0.5rem;
}

.feature-meta {
    font-family: 'Didact Gothic', sans-serif;
    color: var(--muted);
    font-size: 1.05rem;
}

.feature-kind {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink);
    margin-top: 0.95rem;
}

@media (max-width: 768px) {
    .feature,
    .feature:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .feature:nth-child(even) .feature-text {
        text-align: left;
    }
}

/* Gallery & single-photo headers */
.gallery-meta,
.photo-single-meta {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.95rem;
}

.gallery-desc {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 18px;
    max-width: 640px;
    color: var(--ink);
}

/* Single photo page */
.photo-wrap {
    max-width: 1100px;
}

.photo-figure {
    margin: 0;
    text-align: center;
}

.photo-figure-img {
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    display: inline-block;
}

.photo-figure-caption {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    margin-top: 1rem;
}

/* Per-photo short note (below image + EXIF) */
.photo-note {
    max-width: 640px;
    margin: clamp(1.6rem, 3vw, 2.4rem) auto 0;
    text-align: left;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
}

.photo-note p {
    margin-bottom: 1rem;
}

.photo-note p:last-child {
    margin-bottom: 0;
}

.photo-note a {
    color: inherit;
    text-decoration: underline;
}

.photo-exif {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    margin-top: 0.75rem;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
}

.photo-exif span {
    white-space: nowrap;
}

.photo-exif .exif-b {
    font-weight: 700;
    color: var(--ink);
}

/* Breadcrumb (site-wide) */
.crumb {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: clamp(22px, 3.5vw, 44px);
    font-family: 'Didact Gothic', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
}

.crumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.crumb a:hover {
    color: var(--ink);
}

.crumb .sep {
    color: var(--line);
}

.crumb .crumb-current {
    color: var(--ink);
}

.crumb .crumb-count {
    margin-left: auto;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

/* Photo viewer – image flanked by large chevrons */
.photo-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2vw, 30px);
}

.photo-main {
    flex: 0 1 auto;
    min-width: 0;
}

.photo-chevron {
    flex: none;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1;
    color: var(--muted);
    opacity: 0.35;
    text-decoration: none;
    user-select: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.photo-chevron:hover {
    color: var(--ink);
    opacity: 1;
}

.photo-chevron.is-disabled {
    opacity: 0.15;
    pointer-events: none;
}


/* ── Photography dark theme (warm anthracite) ── */
body.theme-photo {
    --bg: #1f2022;
    --ink: #e8e6e1;
    --muted: #9a9690;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.55);
    --bs-body-bg: #1f2022;
    background: var(--bg);
}

/* Footer feather (monochrome dark art) → light on dark bg */
body.theme-photo footer img {
    filter: invert(1) brightness(1.5);
    opacity: 0.7;
}

/* Series "pile of prints" cards → dark stock */
body.theme-photo .feature.is-series .feature-media::before,
body.theme-photo .feature.is-series .feature-media::after {
    background: #2a2b2e;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Tile placeholder background while images load */
body.theme-photo .tiles .tile {
    background: rgba(255, 255, 255, 0.05);
}
