/* ─────────────────────────────────────────────────
       DESIGN TOKENS
    ───────────────────────────────────────────────── */
:root {
    --ink: #0C0C0B;
    --surface: #141410;
    --surface-2: #1E1E19;
    --linen: #F5F0E8;
    --linen-mute: #BDB5A6;
    --gold: #C4A882;
    --gold-mute: #8B7355;
    --border: rgba(255, 255, 255, 0.07);

    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-ui: 'Inter', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─────────────────────────────────────────────────
       RESET & BASE
    ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--linen-mute);
    font-family: var(--ff-ui);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─────────────────────────────────────────────────
       LAYOUT UTILITY
    ───────────────────────────────────────────────── */
.wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ─────────────────────────────────────────────────
       NAVIGATION
    ───────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem clamp(1.5rem, 5vw, 5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(12, 12, 11, 0.95) 0%, rgba(12, 12, 11, 0) 100%);
    transition: background 0.4s var(--ease-out);
}

.site-nav.scrolled {
    background: rgba(12, 12, 11, 0.97);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--linen);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--linen-mute);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--linen);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid var(--border);
    background: rgba(12, 12, 11, 0.28);
}

.language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 58px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--linen-mute);
    font-family: var(--ff-ui);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.language-btn:hover,
.language-btn.active {
    background: var(--gold);
    color: var(--ink);
}

.language-flag {
    font-size: 0.9rem;
    letter-spacing: 0;
    line-height: 1;
}

/* ─────────────────────────────────────────────────
       SECTION COMMON
    ───────────────────────────────────────────────── */
.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 300;
    color: var(--linen);
    line-height: 1.2;
}

/* ─────────────────────────────────────────────────
       BIO
    ───────────────────────────────────────────────── */
.bio-section {
    padding: clamp(5rem, 10vh, 9rem) 0;
    border-top: 1px solid var(--border);
}

.bio-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(3rem, 6vw, 8rem);
    align-items: start;
}

.bio-left {
    position: sticky;
    top: 6rem;
}

.bio-text {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 2;
    color: var(--linen-mute);
    font-weight: 300;
}

.bio-text-spaced {
    margin-top: 1.5rem;
}

.bio-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.bio-stat-num {
    font-family: var(--ff-display);
    font-size: 2.5rem;
    color: var(--linen);
    line-height: 1;
    font-weight: 300;
}

.bio-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-mute);
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────
       EXHIBITIONS
    ───────────────────────────────────────────────── */
.exh-section {
    padding: clamp(4rem, 8vh, 7rem) 0;
    border-top: 1px solid var(--border);
}

.exh-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(3rem, 6vw, 8rem);
    align-items: start;
}

.exh-list {
    margin-top: 0;
}

.exh-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.exh-item:first-child {
    border-top: 1px solid var(--border);
}

.exh-year {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    /* increased for better emphasis */
    color: var(--gold);
    font-weight: 400;
}

.exh-name {
    font-size: 1.05rem;
    /* slightly larger for readability */
    color: var(--linen-mute);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────
       GALLERY
    ───────────────────────────────────────────────── */
.gallery-section {
    padding: clamp(4rem, 8vh, 7rem) 0;
    border-top: 1px solid var(--border);
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: clamp(3rem, 5vh, 5rem);
    gap: 2rem;
}

.gallery-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--linen-mute);
    padding: 0.4rem 1.1rem;
    font-size: 0.65rem;
    font-family: var(--ff-ui);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

/* Masonry-feel grid using CSS columns */
.gallery-grid {
    columns: 3 320px;
    column-gap: 1.5rem;
}

.artwork-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}

.artwork-card:hover {
    border-color: var(--gold-mute);
    transform: translateY(-4px);
}

.artwork-card:hover .artwork-overlay {
    opacity: 1;
}

.artwork-card:hover .artwork-thumb img {
    transform: scale(1.04);
}

.artwork-thumb {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.artwork-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

/*
      No nth-child aspect-ratio overrides here.
      Real images: display at their true proportions (height: auto above).
      Placeholders: get aspect-ratio set inline via JS, derived from the
      artwork's boyut string (e.g. "120×80 cm" → 120/80 = landscape).
    */

/* placeholder — fills the aspect-ratio box set by JS */
.artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    /* aspect-ratio injected inline by JS */
}

.artwork-placeholder-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-mute);
    text-align: center;
    padding: 0 1rem;
    line-height: 1.8;
}

.artwork-placeholder-icon {
    opacity: 0.3;
    font-size: 2rem;
}

.artwork-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 12, 11, 0.9) 0%, rgba(12, 12, 11, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.artwork-overlay-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.artwork-meta {
    padding: 1.25rem 1.5rem 1.5rem;
}

.artwork-title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--linen);
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}

.artwork-sub {
    font-size: 0.7rem;
    color: var(--linen-mute);
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.artwork-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-mute);
    border: 1px solid rgba(196, 168, 130, 0.25);
    padding: 0.2rem 0.6rem;
}

/* hidden cards (filter) */
.artwork-card.hidden {
    display: none;
}

/* ─────────────────────────────────────────────────
       MODAL / LIGHTBOX
    ───────────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 10, 9, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-inner {
    display: flex;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    gap: 3rem;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out);
}

.modal.open .modal-inner {
    transform: translateY(0);
}

.modal-img-wrap {
    flex: 1 1 60%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* placeholder in modal */
.modal-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.modal-placeholder p {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-mute);
}

.modal-placeholder-icon {
    font-size: 3rem;
    opacity: 0.2;
}

.modal-details {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.modal-title {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--linen);
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.modal-field {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.modal-field-last {
    border-bottom: none;
}

.modal-field-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-mute);
    margin-bottom: 0.4rem;
}

.modal-field-value {
    font-size: 1rem;
    color: var(--linen);
    font-weight: 300;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: rgba(12, 12, 11, 0.72);
    color: var(--linen);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
}

.modal-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

/* ─────────────────────────────────────────────────
       FOOTER
    ───────────────────────────────────────────────── */
.site-footer {
    padding: clamp(4rem, 8vh, 7rem) 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.footer-name {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--linen);
    line-height: 1;
    letter-spacing: 0.03em;
}

.footer-name span {
    display: block;
    font-style: italic;
    color: var(--gold);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--linen-mute);
    transition: color 0.3s;
    letter-spacing: 0.03em;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-link-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: border-color 0.3s, background 0.3s;
}

.footer-link:hover .footer-link-icon {
    border-color: var(--gold);
    background: rgba(196, 168, 130, 0.1);
}

.footer-copy {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-mute);
}

/* ─────────────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bio-inner,
    .exh-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .bio-left {
        position: static;
    }

    .bio-stat-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links {
        align-items: flex-start;
    }

    .modal-inner {
        flex-direction: column;
        gap: 1.5rem;
        max-height: none;
    }

    .modal-details {
        flex: none;
        padding: 0;
    }

    .modal-img-wrap {
        flex: none;
    }

    .modal-img-wrap img {
        max-height: 55vh;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
    }

    .language-btn {
        min-width: 54px;
    }
}

@media (max-width: 600px) {
    .modal {
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        padding: calc(env(safe-area-inset-top, 0px) + 4.25rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
        -webkit-overflow-scrolling: touch;
    }

    .modal-inner {
        gap: 1rem;
    }

    .modal-close {
        top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
        right: calc(env(safe-area-inset-right, 0px) + 0.75rem);
        width: 42px;
        height: 42px;
    }

    .modal-title {
        font-size: 1.7rem;
        margin-bottom: 1.25rem;
    }

    .bio-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-copy {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ─────────────────────────────────────────────────
       REDUCED MOTION
    ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ─────────────────────────────────────────────────
       SUBTLE LOAD ANIMATION
    ───────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Modern intro styles (wide, site-aligned) */
.intro {
    background: linear-gradient(180deg, rgba(12, 12, 11, 0.0) 0%, rgba(12, 12, 11, 0.05) 100%);
}

.intro .intro-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.intro .intro-content {
    text-align: left;
}

.intro .eyebrow {
    color: var(--gold-mute);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.intro .intro-name {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    color: var(--linen);
    margin: 0 0 0.6rem 0;
    font-weight: 300;
    letter-spacing: 0.04em;
}

.intro .intro-tag {
    color: var(--linen-mute);
    max-width: 48ch;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--linen);
    background: transparent;
    transition: all .18s ease;
}

.btn-primary:hover {
    background: var(--linen);
    color: var(--ink);
}

.intro .intro-image {
    border-radius: 8px;
    overflow: hidden;
    min-height: 320px;
    background-image: url("../assets/resim25.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 3px var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-artwork-label {
    color: var(--linen-mute);
    font-weight: 300;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .intro .intro-inner {
        grid-template-columns: 1fr;
        padding: clamp(2rem, 6vw, 3rem);
    }

    .intro .intro-content {
        text-align: center;
    }

    .intro .intro-image {
        min-height: 220px;
    }

    .nav-links {
        display: none;
    }
}
