/*
Theme Name: Atlas Tiyatro
Theme URI: https://atlastiyatro.com
Author: Atlas Tiyatro Araştırmaları
Description: Atlas Tiyatro Araştırmaları için sade, hızlı ve eklentisiz özgün tema. Geniş sahne görselleri, kısa metinler ve yalın gezinme üzerine kurulu.
Version: 1.2.0
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: atlas-tiyatro
*/

/* ---------- Tasarım değişkenleri ---------- */
:root {
	color-scheme: dark;
	--ink: #ECEDF3;
	--ink-soft: #A4A9BE;
	--paper: #0E1120;
	--stage: #161B36;
	--curtain: #C4495C;
	--lamp: #F0B84B;
	--line: #2A3050;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--maxw: 80rem;
	--read: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .75rem 1rem;
	background: var(--lamp); color: #111; text-decoration: none;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }

/* ---------- Üst bölüm ---------- */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header--over { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom: 0; color: #fff; }
.site-header--over::before {
	content: ""; position: absolute; inset: 0 0 -2.5rem; z-index: -1;
	background: linear-gradient(rgba(10, 13, 28, .6), rgba(10, 13, 28, 0));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.1rem; }
.brand { margin: 0; }
.brand a { display: inline-block; font-family: var(--serif); font-size: 1.3rem; line-height: 0; text-decoration: none; }
.brand img { height: 3.4rem; width: auto; }
.nav-list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-block; padding: .4rem 0; text-decoration: none; font-size: .97rem; border-bottom: 1px solid transparent; }
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a { border-bottom-color: currentColor; }
.nav-toggle {
	display: none; align-items: center; gap: .5rem; padding: .55rem .9rem;
	background: transparent; color: inherit; border: 1px solid currentColor; font: inherit; font-size: .95rem; cursor: pointer;
}

@media (max-width: 52rem) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		padding: 1rem var(--gutter) 2rem; background: var(--stage); color: #fff;
	}
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: .8rem 0; font-family: var(--serif); font-size: 1.35rem; }
}

/* ---------- Açılış (hero) ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--stage);
	min-height: min(92vh, 56rem); display: flex; align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero--placeholder .hero__media {
	background:
		radial-gradient(48% 62% at 74% 14%, rgba(240, 184, 75, .5), rgba(240, 184, 75, 0) 62%),
		radial-gradient(70% 60% at 12% 100%, rgba(142, 47, 59, .55), rgba(142, 47, 59, 0) 65%),
		linear-gradient(180deg, #1d2447, var(--stage));
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(8, 10, 22, .92), rgba(8, 10, 22, .55) 38%, rgba(8, 10, 22, .1) 68%, rgba(8, 10, 22, .45));
}
.hero__inner { padding-block: clamp(6rem, 14vh, 9rem) clamp(2.5rem, 8vh, 5rem); }
.hero__title { margin: 0; max-width: 13ch; font-size: clamp(2.7rem, 8.4vw, 6.8rem); line-height: .98; letter-spacing: -.025em; }
.hero__text { max-width: 34rem; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; opacity: .92; }
.hero .btn { margin-top: 2rem; }

/* ---------- Düğme ---------- */
.btn {
	display: inline-block; padding: .85rem 1.5rem; border: 1px solid currentColor;
	text-decoration: none; font-size: .98rem; transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Bölümler ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section__title { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section__more { font-size: .97rem; }

.intro { max-width: 52rem; margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.38; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile {
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
	aspect-ratio: 1 / 1; padding: 1.6rem; color: #fff; text-decoration: none; background: var(--stage);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 13, 28, .88), rgba(10, 13, 28, 0) 62%); }
.tile--1 { background: linear-gradient(160deg, #2b3263, var(--stage) 62%); }
.tile--2 { background: linear-gradient(160deg, #5d2531, var(--stage) 66%); }
.tile--3 { background: linear-gradient(160deg, #6b5322, var(--stage) 66%); }
.tile:hover img { transform: scale(1.04); }
.tile__title { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tile__text { margin: 0; max-width: 26ch; font-size: .96rem; line-height: 1.45; opacity: .92; }

@media (max-width: 52rem) {
	.tiles { grid-template-columns: 1fr; }
	.tile { aspect-ratio: 4 / 3; }
}

.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.event {
	display: grid; grid-template-columns: 11rem 1fr auto; gap: 1.5rem; align-items: baseline;
	padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.event__date { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.event__title { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.event__title a { text-decoration: none; }
.event__title a:hover { text-decoration: underline; }
.event__venue { margin: .15rem 0 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 40rem) {
	.event { grid-template-columns: 1fr; gap: .3rem; }
}

/* ---------- İç sayfalar ---------- */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) 1.5rem; }
.page-title { margin: 0; max-width: 18ch; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; }
.lede { max-width: var(--read); margin: 1.25rem 0 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); }
.page-banner { margin: 1rem 0 2.5rem; }
.page-banner img { width: 100%; max-height: 34rem; object-fit: cover; }

.entry-content { max-width: var(--read); padding-bottom: clamp(3rem, 8vw, 6rem); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { margin-top: 2em; font-size: 1.8rem; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.4rem; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--curtain); font-family: var(--serif); font-size: 1.25rem; }
.entry-content .alignwide { width: min(var(--maxw), 100vw - 2 * var(--gutter)); max-width: none; }
.entry-content .alignwide, .entry-content .alignfull { position: relative; left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; }
.entry-content figcaption { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); }

.meta-list { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--ink-soft); }

/* ---------- Oyun arşivi ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2.5rem 1.5rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
.card a { display: block; text-decoration: none; }
.card__img { overflow: hidden; min-height: 14rem; background: linear-gradient(160deg, #2b3263, var(--stage) 70%); }
.card__img img { width: 100%; height: auto; transition: transform .5s ease; }
.card-grid--posters { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); align-items: start; padding-bottom: 0; }
.card a:hover .card__img img { transform: scale(1.03); }
.card__date { margin: .9rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.card__title { margin: .15rem 0 0; font-size: 1.5rem; }
.card__venue { margin: .15rem 0 0; font-size: .95rem; color: var(--ink-soft); }

.pagination { padding-bottom: 4rem; }
.pagination .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Alt bölüm ---------- */
.site-footer { background: var(--stage); color: #E9EBF3; padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-title { margin: 0 0 .75rem; font-size: 1.15rem; color: #fff; }
.footer-brand { margin: 0; font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; color: #fff; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer a:hover { text-decoration-color: var(--lamp); }
.footer-base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; color: #B9BED2; }
@media (max-width: 52rem) {
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.not-found { padding-block: clamp(4rem, 12vw, 9rem); }

/* ---------- v1.1: gerçek site yapısı ---------- */
.hero__quote { max-width: 38rem; margin: 1.75rem 0 0; }
.hero__quote blockquote { margin: 0; }
.hero__quote p { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 2.1vw, 1.4rem); line-height: 1.5; opacity: .94; }
.hero__quote figcaption { margin-top: .75rem; font-size: .95rem; opacity: .8; }

.events--page { margin-bottom: clamp(3rem, 8vw, 6rem); }
.entry-content--wide { max-width: none; padding-bottom: 1rem; }

/* Oyun sayfası */
.play { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(2rem, 6vw, 4.5rem); }
.play__poster { position: sticky; top: 1.5rem; background: linear-gradient(160deg, #2b3263, var(--stage) 70%); min-height: 12rem; }
.play__poster img { width: 100%; height: auto; }
.play__body .page-title { max-width: none; }
.play__body .entry-content { max-width: none; padding-bottom: 1.5rem; }
.kunye { list-style: none; margin: 0 0 1.5rem; padding: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
.kunye li { margin: .15rem 0; }
.kunye strong { color: var(--ink); font-weight: 600; }
@media (max-width: 52rem) {
	.play { grid-template-columns: 1fr; }
	.play__poster { position: static; max-width: 28rem; }
}

/* Ekip */
.team { display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding-block: 1rem clamp(2rem, 5vw, 3rem); }
.member { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: start; }
.member__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.member__name { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.member__body p { max-width: var(--read); margin: 0 0 1em; }
.entry-content--after { padding-top: 1rem; }

/* İletişim */
.contact-list { display: grid; gap: 1.75rem; margin: 0; padding: 0 0 clamp(3rem, 8vw, 6rem); list-style: none; }
.contact-list h2 { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--ink-soft); }
.contact-list p { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; }
.section__more-wrap { margin-top: 2rem; }
@media (max-width: 40rem) {
	.member { grid-template-columns: 7rem minmax(0, 1fr); }
}
