/* =========================================
   1. GENEL AYARLAR VE FONTLAR
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Ruthie&family=Montserrat:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --color-primary: #2c2c2c; /* Koyu antrasit */
    --color-bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Sisli arka plan */
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1.8;
    background-image: var(--color-bg-gradient);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .font-playfair {
    font-family: var(--font-heading);
    color: #1a1a1a;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   2. CAM ETKİSİ (GLASSMORPHISM)
   ========================================= */
.glass-effect, .navbar, .card, footer {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================================
   3. NAVBAR VE LOGO
   ========================================= */
.navbar {
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333 !important;
    font-weight: 500;
    margin-left: 15px;
}

.nav-link:hover {
    color: #000 !important;
    opacity: 0.6;
}

/* LOGO (RUTHIE İMZASI + IŞIK EFEKTİ) */
.navbar-brand {
    font-family: 'Ruthie', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.2;
    padding-top: 5px;
    padding-bottom: 5px;
    display: inline-block;
    white-space: nowrap;
    
    /* Işık Efekti */
    background: linear-gradient(
        to right, 
        #2c2c2c 0%,       
        #2c2c2c 40%,      
        #fff 50%,         
        #2c2c2c 60%,      
        #2c2c2c 100%      
    );
    background-size: 200% auto;
    
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: shine 8s linear infinite; 
}

@keyframes shine {
    to { background-position: 200% center; }
}

@media (max-width: 768px) {
    .navbar-brand { font-size: 2.2rem; }
}

/* =========================================
   4. BUTONLAR
   ========================================= */
.btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    padding: 15px 35px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-dark {
    background-color: #2c2c2c;
    border: 1px solid #2c2c2c;
    opacity: 0.9;
    color: #fff;
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 1px solid #2c2c2c;
    color: #2c2c2c;
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: #2c2c2c;
    color: #fff;
}

/* =========================================
   5. ANA SAYFA SLIDER (HERO)
   ========================================= */
/* --- SADECE 3D KÜRE ALANI --- */

.hero-slider-area {
    width: 100%;
    height: 90vh; /* Ekranın %90'ı */
    background: radial-gradient(circle at center, #ffffff 0%, #eef2f3 100%);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    
    /* İçeriği ortalamak için Flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas'ı kapsayan kutu - EN ÜSTTE OLMALI */
#myCanvasContainer {
    position: relative; /* Absolute değil! */
    width: 100%;
    height: 100%;
    z-index: 999; /* En üst katman */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas (Tuval) */
#myCanvas {
    max-width: 100%;
    height: auto; /* Oranı korusun */
}

/* Mobilde yükseklik ayarı */
@media (max-width: 768px) {
    .hero-slider-area {
        height: 50vh;
    }
}

/* Ana sayfa: küre altındaki söz */
.hero-soz {
    padding: 3.5rem 0 1.5rem;
}

.hero-soz blockquote {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.35rem;
    line-height: 1.7;
    color: #555;
}

.hero-soz blockquote::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #333;
    margin: 0 auto 1.25rem;
}

@media (max-width: 768px) {
    .hero-soz { padding: 2.5rem 0 1rem; }
    .hero-soz blockquote { font-size: 1.1rem; }
}

/* =========================================
   6. BASINDA BİZ (HARF MASKESİ - KADER)
   ========================================= */
.press-letter-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 50px 0;
}

.letter-box {
    position: relative;
    width: 200px;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    /* Çerçeveyi kaldırdık ki izi kalmasın */
    border: none;
}

.letter-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.letter-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 180px;
    font-weight: 900;
    color: #000;

    /* --- SİHİRLİ KISIM (KUTUYU GİZLEME) --- */
    /* Arka planı sayfanın kendi rengi yapıyoruz; fixed ile sayfa arka planıyla hizalanır */
    background-color: #fff;
    background-image: var(--color-bg-gradient);
    background-attachment: fixed;

    /* Mix-blend-mode ile siyah harfin içini deliyoruz */
    mix-blend-mode: screen;
    transition: all 0.5s ease;
}

/* Hover Efektleri */
.letter-box:hover .letter-mask {
    opacity: 0; /* Üzerine gelince maske kalkar, resim netleşir */
    transform: scale(1.2);
}

.letter-box:hover .letter-bg-image {
    transform: scale(1.05); /* Resim hafif büyür */
}

/* Dikey "İnceleyiniz" Yazısı */
.vertical-text {
    position: absolute;
    top: 20px;
    left: -20px;
    transform: rotate(-90deg);
    transform-origin: left top;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .press-letter-container { flex-wrap: wrap; }
    .letter-box { width: 150px; height: 220px; }
    .letter-mask { font-size: 120px; }
}

/* =========================================
   7. ESERLER GALERİ (DÜZENLİ & HOVER SWAP)
   ========================================= */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.9);
}

/* Eser kartı görseli: sabit oranlı kutu, eser KIRPILMAZ (contain) */
.work-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f4f3ef;
    background-image: radial-gradient(circle at center, #fbfaf8 0%, #efede8 100%);
}

@supports not (aspect-ratio: 1 / 1) {
    .work-img-container { height: 440px; }
}

.work-main-img,
.work-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.work-main-img {
    transition: transform 0.6s ease;
}

.work-hover-img {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 2;
}

/* Fareli cihazlarda üzerine gelince; dokunmatikte site.js "alt-goster" sınıfını ekler */
@media (hover: hover) {
    .work-img-container:hover .work-hover-img {
        opacity: 1;
        transform: scale(1.03);
    }

    .work-img-container:hover .work-main-img {
        transform: scale(1.03);
    }
}

.work-img-container.alt-goster .work-hover-img {
    opacity: 1;
}

/* Dokunmatik ipucu: iki nokta (hangi görsel gösteriliyor) */
.alt-nokta {
    display: none;
}

@media (hover: none) {
    .alt-nokta {
        display: flex;
        position: absolute;
        right: 10px;
        bottom: 10px;
        gap: 5px;
        z-index: 3;
    }
    .alt-nokta i {
        display: block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.25);
    }
    .alt-nokta i:first-child { background: rgba(0, 0, 0, 0.7); }
    .alt-goster .alt-nokta i:first-child { background: rgba(0, 0, 0, 0.25); }
    .alt-goster .alt-nokta i:last-child { background: rgba(0, 0, 0, 0.7); }
}

/* Durum rozeti (satıldı / özel koleksiyon / taslak) */
.durum-rozet {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 10px;
    font-size: 0.6rem;
    line-height: 1.6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(44, 44, 44, 0.85);
}

.durum-rozet.rozet-taslak {
    background: #8a6d00;
}

/* Kategori süzme çubuğu */
.galeri-giris {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.kat-cubugu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.kat-chip {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.7rem;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2c2c2c;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(44, 44, 44, 0.25);
    transition: all 0.3s ease;
}

.kat-chip:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #2c2c2c;
}

.kat-chip.aktif {
    color: #fff;
    background: #2c2c2c;
    border-color: #2c2c2c;
}

@media (max-width: 768px) {
    .kat-chip { padding: 8px 14px; letter-spacing: 1.5px; }
}

/* =========================================
   8. FOOTER VE SOSYAL MEDYA
   ========================================= */
footer {
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: auto;
}

.social-links a {
    color: #2c2c2c;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background-color: #2c2c2c;
    transform: translateY(-3px);
}

/* =========================================
   DETAY SAYFASI: ZOOM, GÖRSEL ŞERİDİ, BİLGİLER
   ========================================= */

/* Resmin içinde duracağı çerçeve */
.zoom-container {
    width: 100%;
    overflow: hidden; /* Resim büyüyünce dışarı taşmasın */
    position: relative;
    cursor: crosshair; /* Fare imleci artı şeklini alır (Profesyonel his) */
    border-radius: 4px; /* Hafif yumuşak köşe */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Hafif gölge */
    background-color: #f8f8f8;
    touch-action: pan-y; /* dikey kaydırma sayfada kalsın, yatay hareketi site.js alsın */
}

/* Resmin kendisi */
.zoom-img {
    width: 100%;
    height: auto;
    display: block;
    /* Büyüme ve hareketin pürüzsüz olması için geçiş ayarları */
    transition: transform 0.1s ease-out, opacity 0.2s ease;
    transform-origin: center center;
    will-change: transform;
}

/* Fare üzerine gelince büyüme başlasın (dokunmatikte :hover kalıcı takılmasın diye yalnızca fareli cihazlarda) */
@media (hover: hover) {
    .zoom-container:hover .zoom-img {
        transform: scale(2.5); /* 2.5 kat büyüt (İstersen 2.0 veya 3.0 yap) */
    }
}

/* Dokunmatik: dokununca yakınlaştırılmış durum (site.js "yakin" sınıfını ekler) */
.zoom-container.yakin {
    cursor: zoom-out;
    touch-action: none; /* yakınken parmakla gezinirken sayfa kaymasın */
}

.zoom-container.yakin .zoom-img {
    transform: scale(2.5);
}

.zoom-container.yukleniyor .zoom-img {
    opacity: 0.5;
}

/* İpucu metni: fareli cihazda "üzerine geliniz", dokunmatikte "dokunun" */
.zoom-ipucu .ipucu-dokunmatik { display: none; }

@media (hover: none) {
    .zoom-ipucu .ipucu-fare { display: none; }
    .zoom-ipucu .ipucu-dokunmatik { display: inline; }
    .zoom-container { cursor: zoom-in; }
}

/* Ek resim şeridi */
.kucuk-seridi {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 4px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kucuk {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 2px;
    background: #f4f3ef;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.kucuk img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kucuk:hover { opacity: 1; }

.kucuk.aktif {
    opacity: 1;
    border-color: #2c2c2c;
}

/* Eser bilgileri */
.durum-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 12px;
    font-size: 0.65rem;
    line-height: 1.8;
    letter-spacing: 1.5px;
    vertical-align: middle;
    color: #fff;
    background: #2c2c2c;
}

.durum-badge.durum-musait { background: #3d6b4f; }
.durum-badge.durum-satildi { background: #8b3a3a; }
.durum-badge.durum-ozel { background: #5a5a6e; }
.durum-badge.durum-taslak { background: #8a6d00; }

.eser-bilgi {
    margin: 0 0 1.75rem;
}

.eser-bilgi > div {
    display: flex;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
}

.eser-bilgi dt {
    flex: 0 0 90px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
    line-height: 2;
}

.eser-bilgi dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eser-bilgi .eser-fiyat {
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

/* Önceki / sonraki eser */
.eser-gezin {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.eser-gezin a {
    display: block;
    min-width: 0;
    max-width: 48%;
}

.eser-gezin a small {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

.eser-gezin a span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eser-gezin .gezin-sonraki { margin-left: auto; text-align: right; }
.eser-gezin a:hover { opacity: 0.6; }

/* Yönetici önizleme şeridi */
.onizleme-seridi {
    padding: 6px 16px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-align: center;
    color: #664d03;
    background: #fff3cd;
}

@media (max-width: 768px) {
    .kucuk { width: 60px; height: 60px; }
    .eser-bilgi dt { flex-basis: 76px; }
}
