/* Main Layout & Header Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 2.1 Header Structure */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    background-color: transparent;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    height: 80px;
    background-color: var(--ubit-white);
    /* Lab White */
    box-shadow: var(--shadow-header);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo Area */
.site-branding .logo-link {
    display: flex;
    align-items: center;
    color: var(--ubit-white);
    transition: color 0.4s ease;
}

.site-header.scrolled .site-branding .logo-link {
    color: var(--ubit-green);
}

.site-logo {
    height: 60px;
    width: auto;
}

.logo-divider {
    display: inline-block;
    width: 2px;
    height: 40px;
    background-color: currentColor;
    margin: 0 15px;
}

.site-title-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

/* Desktop Navigation */
.main-navigation.desktop-only {
    margin-left: auto;
    display: none;
}

@media (min-width: 992px) {
    .main-navigation.desktop-only {
        display: block;
    }
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu li a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--ubit-white);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.site-header.scrolled .nav-menu li a {
    color: var(--ubit-green);
    /* Dark Green on scroll */
}

/* Expanding Underline Effect */
.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--ubit-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: position;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: var(--ubit-white);
    /* White default */
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Mobile Drawer (Off-Canvas) */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background-color: var(--ubit-green);
    z-index: 1001;
    /* Above header */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.drawer-logo {
    height: 40px;
}

.drawer-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1.5rem;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-drawer.active .mobile-nav-menu li {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger delay would be done in JS or advanced CSS, basic CSS here */
.mobile-nav-menu li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-menu li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav-menu li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-menu li a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--ubit-white);
    padding-left: 20px;
    /* Indent */
    display: block;
}

/* Reading Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--ubit-green), var(--ubit-gold));
    width: 0%;
    z-index: 9999;
}

/* Mobile Header Override */
@media (max-width: 991px) {
    .site-header {
        background-color: var(--ubit-green);
        /* Always solid green on mobile */
        height: 60px;
    }

    .site-logo {
        height: 40px;
    }

    .site-title-text {
        font-size: 20px;
    }

    .logo-divider {
        display: none;
        /* Removed on mobile */
    }

    .logo-link {
        gap: 8px;
    }
}

/* Hero Slider Logic */
.slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1 !important;
    /* Override Tailwind opacity-0 */
    pointer-events: auto;
}

/* Lift / Fade Up Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    /* Start hidden */
    animation: fadeUp 0.8s ease-out forwards;
}

/* 2.2 Global Typography Overrides for Post Content (Matches Editor) */

/* --- Float Containment & WordPress Block Alignment Fixes --- */
/* Contain floats inside post content to prevent height collapse and overlapping with footer */
/* NOTE: .container intentionally excluded to avoid breaking Tailwind flex/grid layouts site-wide */
.prose,
article.prose,
.wp-block-post-content {
    display: flow-root;
}

/* Bulletproof clearfix fallback */
.prose::after,
article.prose::after,
.wp-block-post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Clear floats before major structural block elements to prevent text from wrapping awkwardly */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
.prose hr,
.prose blockquote,
.prose .wp-block-quote,
.prose ol,
.prose ul,
.prose pre,
.prose table,
.prose iframe,
.prose figure,
.prose .wp-block-image.aligncenter,
.prose h2.is-style-ubit-ref-title,
.prose h2.ubit-ref-title {
    clear: both !important;
}

/* Gutenberg Image Alignments & Float Styling */
.prose .alignleft,
.prose .wp-block-image.alignleft,
.wp-block-image.alignleft {
    float: left !important;
    margin: 0.5rem 2rem 1.5rem 0 !important;
    max-width: 50% !important;
}

.prose .alignright,
.prose .wp-block-image.alignright,
.wp-block-image.alignright {
    float: right !important;
    margin: 0.5rem 0 1.5rem 2rem !important;
    max-width: 50% !important;
}

.prose .aligncenter,
.prose .wp-block-image.aligncenter,
.wp-block-image.aligncenter {
    display: block !important;
    float: none !important;
    margin: 2rem auto !important;
    text-align: center !important;
    clear: both !important;
}

.prose .alignwide,
.wp-block-image.alignwide {
    max-width: 100% !important;
    clear: both !important;
}

.prose .alignfull,
.wp-block-image.alignfull {
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    clear: both !important;
}

/* Reset image margins when wrapped inside figure blocks */
.prose figure.wp-block-image img {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Varsayılan ortalama: alignleft/alignright olmayan resimler ortalayԀ ── */
.wp-block-image:not(.alignleft):not(.alignright) {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ── Figcaption — sade, tematik, ok işaretsiz ───────────────────────────── */
.prose figcaption,
.prose .wp-block-image figcaption,
figcaption,
.wp-block-image figcaption {
    display: block !important;
    font-size: 0.78rem !important;
    font-family: var(--font-heading) !important;
    font-style: normal !important;
    color: #999 !important;
    line-height: 1.55 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: static !important;
    letter-spacing: 0.01em;
    white-space: normal !important;
}

/* Base Typography Sync */
.prose,
.prose p {
    font-family: var(--font-body) !important;
    font-size: 1.125rem !important;
    /* Match editor 1.125rem */
    line-height: 1.7777778 !important;
    /* Match editor line-height */
    color: #374151 !important;
    /* Match editor color */
}

/* ── Paragraf Blokları Arası Boşluk ──────────────────────────────────
   Enter = yeni <p> bloğu → araya belirgin boşluk
   Shift+Enter = aynı <p> içi <br> → satır aralığı kadar, ekstra boşluk yok */
.prose p {
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;
}

.prose p:last-child {
    margin-bottom: 0 !important;
}

/* Headings Sync */
/* Headings Sync */
.prose h1,
.prose h4,
.prose h5,
.prose h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--ubit-green) !important;
    line-height: 1.2 !important;
    margin-top: 2em !important;
    margin-bottom: 1em !important;
}

/* H2 Style: Modern Underline */
.prose h2 {
    font-family: var(--font-heading) !important;
    color: var(--ubit-green) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    position: relative !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.prose h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--ubit-gold) !important;
    border-radius: 2px;
}

/* H3 Style: Left Block */
.prose h3 {
    font-family: var(--font-heading) !important;
    color: var(--ubit-green) !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 1rem !important;
    border-left: 4px solid var(--ubit-gold) !important;
    line-height: 1.3 !important;
}

/* Captions: Stronger Selectors */
/* (Figcaption stili yukarıda tanımlandı) */

/* ── Makale İçi Görsel: Çerçeve .ubit-image-wrapper'a aittir ──────────────
   Figüre (figure.wp-block-image) sadece margin ve layout için kullanılır.
   Altın ring + gölge + overflow:hidden → .ubit-image-wrapper (JS ile oluşturulur)
   Bu sayede figcaption ve detaylı açıklama çerçeve DIŞINDA kalır.
   ─────────────────────────────────────────────────────────────────────── */

/* Figure: yalnızca boşluk ve temizlik — çerçeve YOK */
.prose .wp-block-image,
figure.wp-block-image {
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    transition: none !important;
}

/* İmg: temiz — çerçeve wrapper'a aittir */
.prose img,
.prose .wp-block-image img,
.wp-block-image img {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
    transition: transform 0.5s cubic-bezier(.25,.46,.45,.94) !important;
}

/* Figüre margin + phantom space fix */
.wp-block-image,
figure.wp-block-image {
    margin-top: 1.75rem !important;
    margin-bottom: 1.75rem !important;
    clear: both;
    line-height: 0;
    font-size: 0;
}

/* Restore normal line-height/font-size for figcaption */
.wp-block-image figcaption,
figure.wp-block-image figcaption {
    display: block !important;
    line-height: 1.55 !important;
    font-size: 0.78rem !important;
    color: #999 !important;
    font-style: normal !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
}


/* ── .ubit-telif-info — Wrapper içinde sol alt köşe sabit telif etiketi ────
   Yalnızca telif bilgisi girilmişse JS tarafından oluşturulur.
   Wrapper'ın overflow:hidden'ı sayesinde resimle birlikte kesilir.
   ─────────────────────────────────────────────────────────────────────── */
.ubit-telif-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    /* Glassmorphism — yeşil zemin */
    background: linear-gradient(
        135deg,
        rgba(19, 78, 43, 0.82) 0%,
        rgba(10, 40, 22, 0.92) 100%
    ) !important;
    backdrop-filter: blur(6px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(6px) saturate(1.3) !important;
    /* Sol alt köşe — sağ üst köşesi yuvarlatılmış */
    border-top-right-radius: 8px !important;
    /* İç boşluk */
    padding: 5px 12px 5px 8px !important;
    /* Taşma engeli */
    max-width: 80% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
    /* Tipografi */
    font-family: var(--font-heading), 'Montserrat', sans-serif !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: rgba(255, 255, 255, 0.88) !important;
    line-height: 1 !important;
    /* Her zaman görünür */
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* © sembolü — altın sarısı */
.ubit-telif-sym {
    color: var(--ubit-gold, #F1C40F) !important;
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* Editör panel başlık rozeti */
.ubit-image-meta-panel .components-panel__body-title button {
    font-weight: 700 !important;
}


.prose p a,
.prose ul a,
.prose ol a,
.wp-block-post-content a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 2px solid var(--ubit-green) !important;
    transition: all 0.3s ease;
    font-weight: inherit !important;
}

.prose a:not(.no-underline):hover,
.prose p a:hover,
.prose ul a:hover,
.prose ol a:hover,
.wp-block-post-content a:hover {
    color: var(--ubit-green) !important;
    border-bottom-color: var(--ubit-gold) !important;
    background-color: rgba(241, 196, 15, 0.1) !important;
}

/* Custom Quote Block: Strict Editor Match */
.prose blockquote,
.prose .wp-block-quote,
blockquote.wp-block-quote,
.wp-block-quote,
.wp-block-pullquote,
.wp-block-pullquote blockquote {
    padding: 1.5rem !important;
    /* p-6 */
    background-color: rgba(232, 245, 233, 0.3) !important;
    /* bg-softGreen/30 */
    border-left: 4px solid var(--ubit-gold) !important;
    /* border-l-4 border-microGold */
    border-radius: 0 0.75rem 0.75rem 0 !important;
    /* rounded-r-xl */
    margin: 2rem 0 !important;
    /* my-8 */
    box-shadow: none !important;
    quotes: none !important;
    display: block !important;
    /* Ensure visibility */
    position: relative !important;
}

/* Ensure inner blockquote of pullquote doesn't double pad */
.wp-block-pullquote blockquote {
    background-color: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.prose blockquote p,
.prose .wp-block-quote p,
.wp-block-pullquote p {
    font-family: var(--font-body) !important;
    font-style: italic !important;
    /* italic */
    color: var(--ubit-green) !important;
    /* text-deepForest */
    font-weight: 500 !important;
    /* font-medium */
    font-size: 1.25rem !important;
    /* text-xl */
    line-height: 1.75rem !important;
    /* text-xl leading */
    margin-bottom: 1rem !important;
    /* mb-4 */
}

.prose blockquote cite,
.prose blockquote footer,
.prose .wp-block-quote cite,
.prose .wp-block-quote footer,
.wp-block-pullquote cite,
.wp-block-pullquote footer {
    display: block !important;
    font-family: var(--font-heading) !important;
    /* font-montserrat */
    font-size: 0.875rem !important;
    /* text-sm */
    line-height: 1.25rem !important;
    /* text-sm leading */
    font-weight: 700 !important;
    /* font-bold */
    color: var(--ubit-gold) !important;
    /* text-microGold */
    text-transform: uppercase !important;
    /* uppercase */
    letter-spacing: 0.025em !important;
    /* tracking-wide */
    font-style: normal !important;
}


/* --- REFERENCES (KAYNAKÇA) BLOCK STYLES --- */

/* Title Style: RESTRICTED TO H2 ONLY */
h2.is-style-ubit-ref-title,
h2.ubit-ref-title {
    font-family: var(--font-heading) !important;
    color: #4B5563 !important;
    /* Technical Grey */
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    /* text-transform kaldırıldı — Türkçe uyumlu büyük harf JS ile uygulanır */
    letter-spacing: 0.1em !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid #E5E7EB !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    border-left: none !important;
    /* Override H3 specific */
    padding-left: 0 !important;
    /* Override H3 specific */
    padding-bottom: 0 !important;
    /* Override H2 underline spacing if needed */
}

h2.is-style-ubit-ref-title::before,
h2.ubit-ref-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--ubit-gold) !important;
    margin-right: 0.75rem;
    border-radius: 0 !important;
    /* Square */
}

/* Override the default H2 gold underline */
h2.is-style-ubit-ref-title::after,
h2.ubit-ref-title::after {
    display: none !important;
}

/* --- TOC STYLES --- */
/* Simple numbered list used now, custom classes removed */

/* .toc-h2 and .toc-h3 styling is handled by JS-injected Tailwind classes */

/* List Style: .is-style-ubit-ref-list OR .ubit-ref-list */
ul.is-style-ubit-ref-list,
ol.is-style-ubit-ref-list,
.ubit-ref-list {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Ensure OL has numbers enabled but custom styled */
ol.is-style-ubit-ref-list {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    letter-spacing: normal;
}

/* Common List Item Styles */
ul.is-style-ubit-ref-list li,
ol.is-style-ubit-ref-list li,
.ubit-ref-list li {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    color: #6B7280 !important;
    margin-bottom: 0.75rem !important;
    padding-left: 1.5rem !important;
    position: relative !important;
    line-height: 1.6 !important;
}

/* OL Specific Reset: Remove padding-left on LI since numbers take space typically, but here we custom align */
ol.is-style-ubit-ref-list li {
    padding-left: 0.5rem !important;
    /* Adjust for number */
    margin-left: 1rem !important;
}

/* UL Specific: Em Dash */
ul.is-style-ubit-ref-list li::before,
.ubit-ref-list li::before {
    content: '—';
    /* Em dash */
    position: absolute;
    left: 0;
    color: var(--ubit-gold) !important;
    font-weight: bold !important;
}

/* OL Specific: Marker Color */
ol.is-style-ubit-ref-list::marker,
ol.is-style-ubit-ref-list li::marker {
    color: var(--ubit-gold) !important;
    font-weight: bold !important;
    font-family: var(--font-heading) !important;
}

/* Common Link Styles */
ul.is-style-ubit-ref-list li a,
ol.is-style-ubit-ref-list li a,
.ubit-ref-list li a {
    color: var(--ubit-green) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--ubit-gold) !important;
    transition: all 0.2s;
    border-bottom: none !important;
    /* Override default link style */
}

ul.is-style-ubit-ref-list li a:hover,
ol.is-style-ubit-ref-list li a:hover,
.ubit-ref-list li a:hover {
    color: var(--ubit-gold) !important;
    background-color: var(--ubit-green) !important;
    text-decoration: none !important;
    padding: 0 4px !important;
}

/* ── GLOBAL PAGE HERO (Ekibimiz, Hakkımızda, vb. tüm sayfa başlıkları) ── */
.page-hero {
    background-color: var(--ubit-green);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(241,196,15,.08) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(241,196,15,.05) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.8) 40px, rgba(255,255,255,.8) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.8) 40px, rgba(255,255,255,.8) 41px);
    pointer-events: none;
}

/* ── GLOBAL BREADCRUMB (Hero içi navigasyon) ──────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-heading);
    font-size: .8rem;
    color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--ubit-gold); }
.breadcrumb-sep { color: rgba(255,255,255,.4); }

/* ── GLOBAL SECTION LABEL ─────────────────────────────────────────────── */
.section-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ubit-gold);
    display: block;
}

/* ── FADE-UP ANIMATION (Hero içi öğeler için) ────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .7s ease-out forwards; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }

/* ── UBIT TELİF + ALT YAZI STİLİ ─────────────────────────────────────────
   Gutenberg: Resim bloğu → Stiller → "Telif + Alt Yazı"

   Telif bilgisi: Gutenberg sağ panel → Gelişmiş → "Başlık niteliği" (title)
   alanına girilir. Fare resmin üzerine gelince sağ alt köşede küçük
   yarı saydam rozet olarak belirir.

   Alt yazı: Gutenberg'deki standart "Alt yazı ekle" alanına girilir.
   Resmin hemen altında ince altın çizgi + sade gri metin olarak görünür.
   ─────────────────────────────────────────────────────────────────────── */

/* Mobil taşma önlemi (tüm resim blokları için) */
.wp-block-image {
    max-width: 100% !important;
    box-sizing: border-box;
}
.wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Kapsayıcı ve Telif Konumlandırma Kuralları */
.wp-block-image,
.prose .wp-block-image {
    max-width: 100% !important;
}

/* ── .ubit-image-wrapper — Altın Çerçeve + Zoom Clip ──────────────────────
   JS tarafından her img'in etrafına sarılır.
   Figüre'den bağımsız olduğu için figcaption ve desc kutusu DIŞARIDA kalır.
   ─────────────────────────────────────────────────────────────────────── */
.ubit-image-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    /* Altın ring + yeşil gölge */
    box-shadow:
        0 0 0 2px var(--ubit-gold),
        0 10px 28px rgba(19, 78, 43, 0.12) !important;
    transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(.25,.46,.45,.94) !important;
}

.ubit-image-wrapper:hover {
    box-shadow:
        0 0 0 2px var(--ubit-gold),
        0 18px 42px rgba(19, 78, 43, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Float hizalamalarında yukarı kalkma olmasın */
.wp-block-image.alignleft .ubit-image-wrapper:hover,
.wp-block-image.alignright .ubit-image-wrapper:hover {
    transform: none !important;
}

.ubit-image-wrapper img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transition: transform 0.5s cubic-bezier(.25,.46,.45,.94) !important;
}

.ubit-image-wrapper:hover img {
    transform: scale(1.04) !important;
}



/* Alt yazı (figcaption) — resmin altında altın çizgi + ince metin */
.wp-block-image.is-style-ubit-foto-info figcaption,
.prose .wp-block-image.is-style-ubit-foto-info figcaption {
    display: block !important;
    font-family: var(--font-heading) !important;
    font-size: 0.72rem !important;
    line-height: 1.55 !important;
    font-style: italic !important;
    color: #888 !important;
    text-align: left !important;
    padding: 0.4rem 0.25rem 0 0.25rem !important; /* ok için yer yok */
    margin: 0 !important;
    border-top: 1px solid var(--ubit-gold) !important;
    letter-spacing: 0.01em;
    white-space: normal !important;
}

/* ubit-foto-info'da ok işareti yok — altın çizgi zaten ayırıcı görevini görüyor */
.wp-block-image.is-style-ubit-foto-info figcaption::before,
.prose .wp-block-image.is-style-ubit-foto-info figcaption::before {
    content: none !important;
}

/* Mobil: tam genişliğe dön */
@media (max-width: 640px) {
    .wp-block-image.is-style-ubit-foto-info,
    .prose .wp-block-image.is-style-ubit-foto-info {
        display: block !important;
        width: 100% !important;
    }
    .wp-block-image.is-style-ubit-foto-info[data-telif]::after {
        font-size: 0.6rem;
        max-width: 80%;
    }
}