/*
Theme Name: Lumina Portfolio
Theme URI: https://example.com/lumina-portfolio
Author: Lumina
Description: Fotoğraf portfolyoları için sıfırdan yazılmış, Özelleştirici (Customizer) ile tamamen düzenlenebilen tema. Tam ekran açılış, kaydırdıkça açılan kart destesi galeri, Hakkımda ve İletişim bölümleri.
Version: 1.3.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumina
*/

/* ==========================================================================
   1. Değişkenler (Özelleştirici değerleri functions.php ile bunların üzerine yazılır)
   ========================================================================== */
:root {
	--lm-bg: #e6e8e9;
	--lm-text: #17191a;
	--lm-accent: #a4271f;
	--lm-font-heading: "Cormorant Garamond", Georgia, serif;
	--lm-font-body: "Jost", system-ui, sans-serif;
	--lm-base-size: 18px;
	--lm-hero-color: #ffffff;
	--lm-hero-size: 120px;
	--lm-hero-overlay: 0.25;
	--lm-logo-width: 120px;
	--lm-fit: cover;
	--lm-vh: 100dvh; /* 100vh yerine 100dvh yaptık */
}
@supports not (height: 100dvh) {
	:root { --lm-vh: 100vh; }
}

/* ==========================================================================
   2. Temel
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { 
	-webkit-text-size-adjust: 100%;
	touch-action: manipulation;
}

body {
	margin: 0;
	background: var(--lm-bg);
	color: var(--lm-text);
	font-family: var(--lm-font-body);
	font-size: var(--lm-base-size);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--lm-accent); }

:focus-visible { outline: 2px solid var(--lm-accent); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 1rem; left: 1rem; z-index: 1000;
	padding: .75rem 1rem; background: #fff; color: #000;
}

/* ==========================================================================
   3. Header / Logo  (mix-blend-mode: difference)
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	display: flex;
	justify-content: center;
	padding: 1.25rem 1rem;
	color: #fff;                    /* difference ile beyaz = arka planın tersi */
	mix-blend-mode: difference;
	pointer-events: none;           /* header boşluğu tıklamayı engellemesin */
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-logo { line-height: 0; }
.site-logo a { pointer-events: auto; display: inline-block; color: inherit; text-decoration: none; }
.site-logo a:hover { color: inherit; }

.site-logo img,
.site-logo .custom-logo {
	display: block;
	width: var(--lm-logo-width);
	max-width: 60vw;
	height: auto;
}
/* Koyu/renkli logoyu da beyaza çevirir; böylece blend her zaman doğru çalışır */
.site-logo--invert img { filter: brightness(0) invert(1); }

.site-logo__text {
	font-family: var(--lm-font-heading);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .02em;
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
	position: relative; /* Görseli garanti altına almak için sticky'i kaldırdık */
	z-index: 1;
	height: var(--lm-vh);
	min-height: 460px;
	overflow: hidden;
	background: #2a2c2e;
	color: var(--lm-hero-color);
}
.hero__media { 
    position: absolute; 
    inset: 0; 
    z-index: 0; /* Görseli gri katmanın üstüne, overlay efektinin altına alır */
}
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(0, 0, 0, var(--lm-hero-overlay));
}
.hero__content {
	position: relative; z-index: 2;
	height: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 0 1.5rem;
	text-align: center;
	will-change: opacity, transform;
}
.hero__title {
	margin: 0;
	max-width: 18ch;
	font-family: var(--lm-font-heading);
	font-weight: 300;
	font-size: clamp(2.6rem, 9vw, var(--lm-hero-size));
	line-height: 1.02;
	letter-spacing: -.01em;
	color: var(--lm-hero-color);
	text-wrap: balance;
}
.hero__hint {
	position: absolute; z-index: 2;
	left: 0; right: 0; bottom: 1.5rem;
	text-align: center;
	font-size: .9rem;
	will-change: opacity, transform;
}
.hero__hint::after {
	content: "";
	display: block;
	width: 1px; height: 2.5rem;
	margin: .6rem auto 0;
	background: currentColor;
	opacity: .7;
}

/* ==========================================================================
   5. Kart Destesi (GSAP Animasyonlu Küçük Kartlar)
   ========================================================================== */
.deck {
	position: relative;
	z-index: 200; /* Logonun (100) üstüne çıkmasını sağlar, logo kartların arkasında kalır */
	background: #131415;
}

.deck__stage {
	position: relative;
	height: var(--lm-vh);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #131415;
}

.deck__card {
	position: absolute;
	width: clamp(300px, 80vw, 450px);
	height: clamp(400px, 70vh, 600px);
	border-radius: 20px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 60px rgba(0,0,0,0.6);
	will-change: transform, filter, opacity;
}

.deck__link {
	display: block; position: relative;
	width: 100%; height: 100%;
	color: #fff; text-decoration: none;
}
.deck__link:hover { color: #fff; }
.deck__link:focus-visible { outline-color: #fff; outline-offset: -8px; }

.deck__img {
	position: absolute; 
	width: 100%; 
	height: 100%;
	object-fit: cover;
}

.deck__shade {
	position: absolute; inset: 0;
	background: #000;
	opacity: 0;
	pointer-events: none;
}

.deck__caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
	padding: 4rem 1.5rem 1.5rem;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
}
.deck__title {
	font-family: var(--lm-font-heading);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.1;
}
.deck__count {
	flex: none;
	font-size: .9rem;
	opacity: .85;
	font-variant-numeric: tabular-nums;
}

.deck-empty {
	padding: 6rem 1.5rem;
	text-align: center;
	background: var(--lm-bg);
}

/* ==========================================================================
   6. Bölümler (Hakkımda / İletişim)
   ========================================================================== */
.section {
	position: relative;
	background: var(--lm-bg);
	color: var(--lm-text);
	padding: clamp(4rem, 12vw, 10rem) clamp(1.25rem, 5vw, 4rem);
}
.section__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}
.section__title {
	margin: 0;
	font-family: var(--lm-font-heading);
	font-weight: 300;
	font-size: clamp(2.6rem, 6.5vw, 5.5rem);
	line-height: 1;
	letter-spacing: -.01em;
}

.about__text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.75; max-width: 60ch; }
.about__text > :first-child { margin-top: 0; }
.about__text p { margin: 0 0 1.2em; }
.about__figure { margin: 2.5rem 0 0; }
.about__figure img { display: block; width: 100%; height: auto; }

.section--contact {
	border-top: 1px solid rgba(0, 0, 0, .15);
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.contact__intro { margin: 0 0 1.5rem; max-width: 46ch; }
.contact__mail {
	display: inline-block;
	font-family: var(--lm-font-heading);
	font-weight: 300;
	font-size: clamp(1.6rem, 4.2vw, 3.4rem);
	line-height: 1.1;
	overflow-wrap: anywhere;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.contact__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem 2rem;
	margin: 2.5rem 0 0;
}
.contact__item dt { margin: 0 0 .2rem; font-size: .85rem; opacity: .65; }
.contact__item dd { margin: 0; }
.contact__item a { text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }
.contact__social {
	display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
	list-style: none; margin: 2.5rem 0 0; padding: 0;
}
.contact__social a { text-decoration: none; border-bottom: 1px solid transparent; }
.contact__social a:hover { border-bottom-color: currentColor; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
	padding: 2rem clamp(1.25rem, 5vw, 4rem);
	background: var(--lm-bg);
	color: var(--lm-text);
	font-size: .85rem;
	border-top: 1px solid rgba(0, 0, 0, .15);
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.site-footer p { margin: 0; max-width: 1200px; margin-inline: auto; opacity: .75; }

/* ==========================================================================
   8. Tekil yazı (single.php) ve arşiv (index.php)
   ========================================================================== */
.single__figure { margin: 0; background: #131415; }
.single__img { display: block; width: 100%; height: var(--lm-vh); object-fit: contain; }

.single__inner, .archive__inner, .page__inner { max-width: 760px; margin: 0 auto; }
.single__title, .page__title, .archive__title {
	margin: 0 0 .5rem;
	font-family: var(--lm-font-heading);
	font-weight: 300;
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.05;
}
.single__meta { margin: 0 0 2rem; opacity: .65; font-size: .9rem; }
.single__content, .page__content { line-height: 1.75; }
.single__content img { height: auto; }

.single__nav {
	display: flex; justify-content: space-between; gap: 1.5rem;
	margin-top: 4rem; padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, .15);
}
.single__nav a { display: block; text-decoration: none; }
.single__nav small { display: block; opacity: .6; }
.single__nav-next { margin-left: auto; text-align: right; }

.section--top { padding-top: clamp(7rem, 14vw, 10rem); }
.archive__inner { max-width: 1200px; }
.archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-top: 2.5rem;
}
.archive__item { display: block; text-decoration: none; }
.archive__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.archive__item span { display: block; margin-top: .6rem; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 800px) {
	.section__inner { grid-template-columns: 1fr; gap: 1.75rem; }
	.deck__caption { padding-top: 3rem; }
	.hero__title { max-width: 14ch; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__content, .hero__hint { transition: none; }
}
