/* =========================================================
   DESIGNLAB CLONE - TEMEL STİLLER
   Değişkenleri kendi marka renklerine göre güncelle.
========================================================= */

/* =========================================================
   YAZI TİPLERİ (FONTLAR)
   Font dosyalarını assets/fonts/ klasörüne yükledikten sonra
   aşağıdaki url() yollarını dosya isimlerinle eşleştir.
   Dosya yoksa tarayıcı otomatik olarak yedek fonta (fallback) düşer,
   site bozulmaz.
========================================================= */
@font-face {
	font-family: 'Grotesk';
	src: url('../fonts/Grotesk-Regular.woff2') format('woff2'),
	     url('../fonts/Grotesk-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Grotesk';
	src: url('../fonts/Grotesk-Bold.woff2') format('woff2'),
	     url('../fonts/Grotesk-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Schnyder';
	src: url('../fonts/Schnyder-Regular.woff2') format('woff2'),
	     url('../fonts/Schnyder-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--dl-black: #111111;
	--dl-white: #ffffff;
	--dl-gray: #6b6b6b;
	--dl-bg-light: #f7f7f5;
	--dl-max-width: 1400px;

	/* TEMA RENKLERİ (açık mod varsayılan) */
	--dl-bg: #ffffff;
	--dl-text: #111111;
	--dl-border: #e5e5e5;
	--dl-surface: #f7f7f5;

	/* Ana font: menü, buton, gövde metni */
	--dl-font-primary: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	/* İkincil font: büyük başlıklar (hero, proje başlıkları) */
	--dl-font-secondary: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

	--dl-font: var(--dl-font-primary); /* geriye dönük uyumluluk için */
}

/* KOYU MOD (dark mode) - toggle butonuna basınca <html> etiketine eklenir */
:root[data-theme="dark"] {
	--dl-bg: #121212;
	--dl-text: #f2f2f2;
	--dl-border: #2e2e2e;
	--dl-surface: #1c1c1c;
	--dl-bg-light: #1c1c1c;
	--dl-gray: #a3a3a3;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--dl-font);
	color: var(--dl-text);
	background: var(--dl-bg);
	transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- HEADER ---------- */
.dl-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	background: transparent;
	transition: background .3s ease;
}
.dl-header.dl-header--scrolled {
	background: var(--dl-bg);
	box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.dl-header-inner {
	max-width: var(--dl-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 32px;
}
.dl-logo { flex-shrink: 0; }
.dl-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.dl-logo span { font-size: 20px; font-weight: 600; }
.dl-menu-toggle {
	display: none;
	background: none; border: none; cursor: pointer;
	width: 32px; height: 22px; flex-direction: column; justify-content: space-between;
}
.dl-menu-toggle span { display: block; height: 2px; background: currentColor; }

/* TEMA (Dark/Light) TOGGLE BUTONU */
.dl-theme-toggle {
	background: none;
	border: 1px solid var(--dl-border);
	border-radius: 50%;
	width: 40px; height: 40px;
	margin-left: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--dl-text);
	flex-shrink: 0;
	transition: background .2s ease, border-color .2s ease;
}
.dl-theme-toggle:hover { background: var(--dl-surface); }
.dl-theme-toggle svg { width: 18px; height: 18px; }
.dl-theme-icon-moon { display: none; }
:root[data-theme="dark"] .dl-theme-icon-sun { display: none; }
:root[data-theme="dark"] .dl-theme-icon-moon { display: block; }

/* DİL DEĞİŞTİRME (Polylang aktifse otomatik çıkar) */
.dl-lang-switcher {
	margin-left: 12px;
	display: flex;
	align-items: center;
}
.dl-lang-switcher ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.dl-lang-switcher li { display: flex; }
.dl-lang-switcher a {
	display: block;
	padding: 6px 10px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	border: 1px solid var(--dl-border);
	border-radius: 20px;
	transition: background .2s ease, color .2s ease;
}
.dl-lang-switcher a:hover { background: var(--dl-surface); }
.dl-lang-switcher .lang-item-current a,
.dl-lang-switcher li.lang-item-current a {
	background: var(--dl-text);
	color: var(--dl-bg);
	border-color: var(--dl-text);
}
.dl-nav .dl-menu {
	display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
.dl-nav .dl-menu li { position: relative; }
.dl-nav .dl-menu a { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.dl-nav .dl-menu ul { /* alt menü (dropdown) */
	position: absolute; top: 100%; left: 0;
	background: var(--dl-bg);
	min-width: 200px; padding: 12px 0; list-style: none;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
	display: none;
}
.dl-nav .dl-menu li:hover > ul { display: block; }
.dl-nav .dl-menu ul li a { display: block; padding: 8px 20px; }

/* ---------- HERO ---------- */
.dl-hero {
	position: relative;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}
.dl-hero-video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.dl-hero-overlay {
	position: relative; z-index: 2;
	color: var(--dl-white);
	padding: 64px;
	background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 60%);
	width: 100%;
}
.dl-hero-overlay h1 { font-family: var(--dl-font-secondary); font-size: clamp(32px, 6vw, 72px); margin: 0 0 12px; font-weight: 400; }
.dl-hero-overlay p { max-width: 560px; font-size: 16px; opacity: .9; }

/* HERO VİDEO SES BUTONU */
.dl-hero-sound-toggle {
	position: absolute;
	bottom: 32px;
	right: 32px;
	z-index: 3;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.5);
	background: rgba(0,0,0,.25);
	color: var(--dl-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease;
}
.dl-hero-sound-toggle:hover { background: rgba(0,0,0,.45); }
.dl-hero-sound-toggle svg { width: 18px; height: 18px; }
.dl-sound-icon-on { display: none; }
.dl-hero-sound-toggle.dl-sound-on .dl-sound-icon-off { display: none; }
.dl-hero-sound-toggle.dl-sound-on .dl-sound-icon-on { display: block; }

/* İç sayfa hero'ları (Nasıl Çalışıyoruz, Hakkımızda vb.) anasayfadan biraz daha kısa */
.dl-hero--page { height: 60vh; min-height: 420px; }

/* ---------- SECTIONS ---------- */
.dl-section { max-width: var(--dl-max-width); margin: 0 auto; padding: 80px 32px; }
.dl-section-header {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 32px;
}
.dl-section-header h2 { font-family: var(--dl-font-secondary); font-size: 28px; margin: 0; }
.dl-link-arrow { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }

.dl-page-header { max-width: var(--dl-max-width); margin: 120px auto 40px; padding: 0 32px; }
.dl-page-header h1 { font-family: var(--dl-font-secondary); font-size: clamp(28px, 5vw, 48px); font-weight: 400; }

/* ---------- PROJECTS GRID ---------- */
.dl-projects-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.dl-projects-grid--archive { grid-template-columns: repeat(3, 1fr); }
.dl-project-card { display: block; }
.dl-project-thumb {
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--dl-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
}
.dl-project-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* görsel her zaman kutuyu doldurur, hover'da değişmez */
}
.dl-project-meta { display: flex; justify-content: space-between; padding-top: 12px; font-size: 15px; }

/* ---------- SHOWREEL ---------- */
.dl-showreel-embed { position: relative; padding-top: 56.25%; background: #000; }
.dl-showreel-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- NEWS GRID ---------- */
.dl-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dl-news-grid--archive { grid-template-columns: repeat(3, 1fr); }
.dl-news-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--dl-bg-light); margin-bottom: 12px; }
.dl-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-news-date { font-size: 12px; color: var(--dl-gray); }
.dl-news-card h3 { font-size: 16px; margin: 6px 0 0; line-height: 1.4; }

/* ---------------------------------------------------
   REFERANSLAR - siyah-beyaz, otomatik kayan logo şeridi
--------------------------------------------------- */
.dl-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.dl-marquee-track {
	display: flex;
	align-items: center;
	gap: 64px;
	width: max-content;
	animation: dl-marquee-scroll 30s linear infinite;
}
.dl-marquee:hover .dl-marquee-track {
	animation-play-state: paused; /* fareyle üzerine gelince durur, logoyu incelemek kolaylaşır */
}
@keyframes dl-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); } /* logolar 2 kez basıldığı için tam yarısı kayınca döngü kusursuz tamamlanır */
}
.dl-marquee-logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
}
.dl-marquee-logo img {
	max-height: 100%;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: .5;
	transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.dl-marquee-logo:hover img {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.05);
}
.dl-marquee-text {
	font-family: var(--dl-font-secondary);
	font-size: 20px;
	color: var(--dl-gray);
	white-space: nowrap;
	transition: color .3s ease;
}
.dl-marquee-logo:hover .dl-marquee-text { color: var(--dl-text); }
@media (max-width: 700px) {
	.dl-marquee-track { gap: 40px; animation-duration: 20s; }
	.dl-marquee-logo { height: 40px; }
}

/* ---------------------------------------------------
   INSTAGRAM BÖLÜMÜ - Smash Balloon feed'i site stiline uydur
--------------------------------------------------- */
.dl-instagram-embed {
	max-width: var(--dl-max-width);
}
/* Instagram sekmeleri (2 hesap arasında geçiş) */
.dl-instagram-tabs {
	display: flex;
	gap: 8px;
}
.dl-instagram-tab {
	padding: 6px 16px;
	border-radius: 20px;
	border: 1px solid var(--dl-border);
	background: transparent;
	color: var(--dl-gray);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.dl-instagram-tab:hover { border-color: var(--dl-text); }
.dl-instagram-tab--active {
	background: var(--dl-text);
	color: var(--dl-bg);
	border-color: var(--dl-text);
}
/* Smash Balloon'un kendi köşe yuvarlaklığını/gölgesini sadeleştir,
   sitenin genel keskin/minimal görünümüne uysun */
.dl-instagram-embed .sbi_photo,
.dl-instagram-embed .sb_instagram_photos_container img {
	border-radius: 0 !important;
}

/* ---------- SINGLE PROJECT ---------- */
.dl-project-hero img { width: 100%; height: 60vh; object-fit: cover; }
.dl-project-hero h1 { padding: 32px; margin: 0; }
.dl-project-info-bar {
	display: flex; gap: 48px; padding: 0 32px 40px;
	border-bottom: 1px solid var(--dl-border); max-width: var(--dl-max-width); margin: 0 auto;
}
.dl-project-info-bar strong { display: block; font-size: 12px; text-transform: uppercase; color: var(--dl-gray); margin-bottom: 4px; }
.dl-project-content { max-width: 800px; margin: 0 auto; padding: 40px 32px; }
.dl-project-nav { display: flex; justify-content: space-between; max-width: var(--dl-max-width); margin: 0 auto; padding: 40px 32px 80px; }

/* ---------- CONTACT ---------- */
.dl-contact-people {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
.dl-contact-person-photo {
	aspect-ratio: 4/5;
	overflow: hidden;
	background: var(--dl-bg-light);
	margin-bottom: 20px;
}
.dl-contact-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.dl-contact-person-info h3 { font-family: var(--dl-font-secondary); font-size: 22px; margin: 0 0 8px; font-weight: 400; }
.dl-contact-person-info p { margin: 4px 0; }
.dl-contact-person-info a { color: var(--dl-gray); }
.dl-contact-person-info a:hover { color: var(--dl-black); }

/* ---------- FOOTER ---------- */
.dl-footer { background: var(--dl-black); color: var(--dl-white); margin-top: 80px; }
.dl-footer-inner { max-width: var(--dl-max-width); margin: 0 auto; padding: 64px 32px 32px; }
.dl-footer-nav ul { list-style: none; display: flex; gap: 24px; padding: 0; flex-wrap: wrap; }
.dl-footer-social { display: flex; gap: 20px; margin: 24px 0; }
.dl-footer-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.dl-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; font-size: 13px; opacity: .7; }

/* ---------------------------------------------------
   LINK BANDI (How We Work / Team / Contact gibi tam genişlik linkler)
--------------------------------------------------- */
.dl-link-bands { max-width: var(--dl-max-width); margin: 0 auto; padding: 0 32px; }
.dl-link-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 28px 0;
	border-top: 1px solid var(--dl-border);
	transition: padding-left .25s ease;
}
.dl-link-bands .dl-link-band:last-child { border-bottom: 1px solid var(--dl-border); }
.dl-link-band-label {
	font-family: var(--dl-font-secondary);
	flex-shrink: 0;
	min-width: 220px;
}
.dl-link-band-desc {
	font-family: var(--dl-font-primary);
	font-size: 16px;
	color: var(--dl-gray);
	flex-grow: 1;
}
.dl-link-band-arrow { width: 40px; height: 16px; display: block; flex-shrink: 0; transition: transform .25s ease; }
.dl-link-band:hover { padding-left: 12px; }
.dl-link-band:hover .dl-link-band-arrow { transform: translateX(6px); }
@media (max-width: 700px) {
	.dl-link-band { flex-wrap: wrap; }
	.dl-link-band-desc { order: 3; width: 100%; flex-basis: 100%; }
}

/* ---------------------------------------------------
   BÜYÜTEÇ BUTONU (proje kartlarında hover'da çıkar)
--------------------------------------------------- */
.dl-project-thumb, .dl-project-hero-wrap, .dl-content-img-wrap { position: relative; }
.dl-content-img-wrap { margin-bottom: 20px; }
.dl-content-img-wrap:hover .dl-project-zoom { opacity: 1; transform: translateY(0); }
.dl-project-zoom {
	position: absolute;
	top: 16px; right: 16px;
	width: 40px; height: 40px;
	background: rgba(255,255,255,.9);
	border: none; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease;
	color: var(--dl-black);
	z-index: 5;
}
.dl-project-zoom svg { width: 18px; height: 18px; }
.dl-project-card:hover .dl-project-zoom,
.dl-project-hero-wrap:hover .dl-project-zoom {
	opacity: 1;
	transform: translateY(0);
}
.dl-project-zoom:hover { background: var(--dl-white); }

/* ---------------------------------------------------
   LIGHTBOX (tam ekran görsel büyütücü)
--------------------------------------------------- */
.dl-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
}
.dl-lightbox--open { opacity: 1; visibility: visible; }
.dl-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.dl-lightbox-close {
	position: absolute;
	top: 24px; right: 32px;
	background: none; border: none;
	color: var(--dl-white);
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.dl-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.1);
	border: none;
	color: var(--dl-white);
	width: 56px; height: 56px;
	border-radius: 50%;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
	z-index: 2;
}
.dl-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.dl-lightbox-prev { left: 24px; }
.dl-lightbox-next { right: 24px; }
.dl-lightbox-counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--dl-white);
	font-size: 14px;
	opacity: .8;
	letter-spacing: .05em;
}
@media (max-width: 600px) {
	.dl-lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
	.dl-lightbox-prev { left: 8px; }
	.dl-lightbox-next { right: 8px; }
}

/* ---------------------------------------------------
   VİDEO GALERİSİ (Videolar Sayfası)
--------------------------------------------------- */
.dl-video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.dl-video-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: var(--dl-black);
	border: none;
	padding: 0;
	cursor: pointer;
}
.dl-video-thumb {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s ease, opacity .3s ease;
	opacity: .85;
}
.dl-video-card:hover .dl-video-thumb { transform: scale(1.05); opacity: 1; }
.dl-video-play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 56px; height: 56px;
	color: var(--dl-white);
	transition: transform .2s ease;
}
.dl-video-play svg { width: 100%; height: 100%; }
.dl-video-card:hover .dl-video-play { transform: translate(-50%, -50%) scale(1.1); }
.dl-video-title {
	font-family: var(--dl-font-secondary);
	font-size: 18px;
	font-weight: 400;
	margin: 14px 0 0;
}

/* Tam ekran video lightbox */
.dl-video-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.95);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
}
.dl-video-lightbox--open { opacity: 1; visibility: visible; }
.dl-video-lightbox-frame {
	width: 100%;
	max-width: 1100px;
	aspect-ratio: 16/9;
}
.dl-video-lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
	.dl-video-grid { grid-template-columns: 1fr; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
	.dl-project-zoom { opacity: 1; transform: none; } /* dokunmatik cihazlarda hover olmadığı için hep görünsün */
	.dl-menu-toggle { display: flex; }
	.dl-nav {
		position: fixed;
		top: 0; right: -100%;
		width: 100%; /* mobilde tam ekran kaplasın, arkadaki içerik hiç görünmesin */
		height: 100vh;
		background: var(--dl-bg);
		transition: right .3s ease;
		padding: 100px 32px 40px;
		overflow-y: auto; /* menü uzunsa kaydırılabilsin */
		z-index: 1001;
	}
	.dl-nav.dl-nav--open { right: 0; }
	.dl-nav .dl-menu { flex-direction: column; gap: 4px; }

	/* Alt menüler (dropdown) - mobilde hover değil, tıklama ile aç/kapa */
	.dl-nav .dl-menu ul {
		position: static; /* masaüstündeki gibi kutunun üstüne binmesin, normal akışta aşağı açılsın */
		box-shadow: none;
		background: var(--dl-surface);
		padding: 4px 0;
		margin: 4px 0 8px;
		display: none; /* JS ile "açık" sınıfı eklenince görünür */
	}
	.dl-nav .dl-menu li.dl-submenu-open > ul { display: block; }
	.dl-nav .dl-menu li:hover > ul { display: none; } /* mobilde hover'ı devre dışı bırak, sadece tıklama çalışsın */
	.dl-nav .dl-menu li.dl-submenu-open:hover > ul { display: block; }

	.dl-nav .dl-menu > li { border-bottom: 1px solid var(--dl-border); padding-bottom: 4px; }
	.dl-nav .dl-menu > li:last-child { border-bottom: none; }
	.dl-nav .dl-menu li { display: flex; flex-direction: column; }
	.dl-nav .dl-menu li > a { padding: 10px 0; }
	.dl-nav .dl-menu li.menu-item-has-children > a { padding-right: 40px; } /* ok butonuyla çakışmasın */

	/* Alt menüsü olan öğelerdeki açma/kapama oku */
	.dl-submenu-toggle {
		position: absolute;
		top: 4px; right: 0;
		width: 36px; height: 36px;
		background: none; border: none;
		display: flex; align-items: center; justify-content: center;
		color: var(--dl-text);
	}
	.dl-submenu-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
	.dl-submenu-open > .dl-submenu-toggle svg { transform: rotate(180deg); }

	.dl-projects-grid, .dl-projects-grid--archive, .dl-news-grid, .dl-news-grid--archive, .dl-contact-people, .dl-footer-offices {
		grid-template-columns: 1fr;
	}
}
