/* ==========================================================================
   Lindy Hop TR — tema stilleri
   Renkler ve tipografi theme.json içindedir; burada yalnızca bileşen stilleri var.
   ========================================================================== */

:root {
	--lh-radius: 14px;
	--lh-border: 1px solid rgba(28, 26, 46, 0.1);
}

/* ---------- Üst alan ---------- */
.lh-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 3px solid var(--wp--preset--color--brass);
}

.lh-site-header .wp-block-site-title a,
.lh-site-footer .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.lh-brand .wp-block-site-title a::before {
	content: "";
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	margin-right: 0.55rem;
	vertical-align: -0.3rem;
	background: url("../images/mark.svg") center / contain no-repeat;
}

.lh-site-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--cream);
	text-decoration: none;
	padding: 0.25rem 0.1rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.lh-site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.lh-site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--brass);
	border-bottom-color: var(--wp--preset--color--brass);
}

.lh-site-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--ink) !important;
	border: 1px solid rgba(217, 164, 65, 0.4) !important;
	border-radius: 10px;
	padding: 0.4rem 0.6rem;
}

/* ---------- Kahraman alanları ---------- */
.lh-hero,
.lh-page-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.lh-hero::before,
.lh-page-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: min(900px, 140vw);
	aspect-ratio: 1;
	right: -18%;
	top: 50%;
	transform: translateY(-50%);
	background: url("../images/sunburst.svg") center / contain no-repeat;
	pointer-events: none;
}

.lh-page-hero::before {
	width: min(620px, 120vw);
	right: -10%;
	opacity: 0.8;
}

.lh-hero h1,
.lh-page-hero h1 {
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.lh-page-lead {
	max-width: 44rem;
	margin-left: auto !important;
	margin-right: auto !important;
	opacity: 0.9;
	text-wrap: pretty;
}

.lh-page-content {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.lh-page-content > .alignfull:last-child {
	margin-bottom: calc(-1 * var(--wp--preset--spacing--60));
}

.lh-page-content > .alignfull:first-child {
	margin-top: calc(-1 * var(--wp--preset--spacing--60));
}

/* ---------- Geniş sayfa düzeni ----------
   Sayfa içeriği 1200px'lik kutuya yerleşir; kartlar ve tablolar bu genişliği kullanırken
   uzun metinler okunabilir genişlikte kalır ve aynı sol kenara hizalanır. */
/* Seçiciler, çekirdeğin yerleşim (layout) stillerini geçmek için çift sınıflıdır. */
.lh-page-content.lh-wide > :where(p:not(.has-text-align-center), ul, ol, .wp-block-details, .wp-block-quote, .lh-note, .lh-timeline) {
	max-width: 820px;
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
}

.lh-page-content.lh-wide > p.has-text-align-center {
	max-width: 820px;
}

.wp-block-group.lh-note > *,
.wp-block-group.lh-timeline > *,
.wp-block-group.lh-timeline-item > *,
.wp-block-group.lh-glossary > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.lh-page-content.lh-wide > .lh-glossary {
	columns: 2 22rem;
	column-gap: var(--wp--preset--spacing--60);
}

.lh-glossary > h3 {
	break-after: avoid;
}

.lh-glossary > p {
	break-inside: avoid;
}

.lh-glossary > h3:first-child {
	margin-top: 0;
}

/* ---------- Üst başlık (eyebrow) ---------- */
.is-style-eyebrow,
.lh-eyebrow-terms {
	font-family: var(--wp--preset--font-family--marquee);
	font-size: 1.15rem !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brass);
	margin-bottom: 0.25rem;
}

.is-style-eyebrow::before {
	content: "✦ ";
}

.lh-eyebrow-terms a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Kartlar ---------- */
.is-style-card {
	background: var(--wp--preset--color--paper);
	border: var(--lh-border);
	border-radius: var(--lh-radius);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.is-style-card:hover {
	transform: translateY(-3px);
}

.is-style-card:not([style*="padding"]) {
	padding: var(--wp--preset--spacing--40);
}

.is-style-card h3 {
	margin-top: 0.2rem;
	margin-bottom: 0.2rem;
}

.is-style-card h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.is-style-card h3 a:hover {
	color: var(--wp--preset--color--brick);
}

.lh-card-meta,
.wp-block-post-date.lh-card-meta {
	color: var(--wp--preset--color--muted);
}

.lh-festival {
	border-top: 4px solid var(--wp--preset--color--brass);
}

.lh-festival.lh-tr {
	border-top-color: var(--wp--preset--color--brick);
}

.lh-badge {
	display: inline-block;
	width: fit-content;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--marquee);
	font-size: 1rem;
	letter-spacing: 0.08em;
}

.lh-badge.lh-level-2 {
	background: #F3D9A0;
}

.lh-badge.lh-level-3 {
	background: #EDB9A9;
}

/* ---------- İstatistik ---------- */
.lh-stat {
	text-align: center;
}

.lh-stat .lh-stat-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	line-height: 1;
	color: var(--wp--preset--color--brick);
	margin-bottom: 0.3rem;
}

/* ---------- Zaman çizelgesi ---------- */
.wp-block-group.lh-timeline {
	position: relative;
	padding-left: 2rem;
}

.lh-timeline::before {
	content: "";
	position: absolute;
	left: 0.45rem;
	top: 0.4rem;
	bottom: 0.4rem;
	width: 2px;
	background: linear-gradient(var(--wp--preset--color--brass), var(--wp--preset--color--brick));
}

.lh-timeline-item {
	position: relative;
}

.lh-timeline-item::before {
	content: "";
	position: absolute;
	left: -1.95rem;
	top: 0.45rem;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	border: 3px solid var(--wp--preset--color--brass);
}

.lh-timeline-item .is-style-eyebrow {
	color: var(--wp--preset--color--brick);
	margin-bottom: 0;
}

.lh-timeline-item .is-style-eyebrow::before {
	content: "";
}

.lh-timeline-item h3 {
	margin-top: 0;
}

/* ---------- Tablolar ---------- */
.wp-block-table.is-style-festival table,
.lh-page-content .wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	background: var(--wp--preset--color--paper);
	border: var(--lh-border);
	border-radius: var(--lh-radius);
	overflow: hidden;
}

.wp-block-table.is-style-festival thead,
.lh-page-content .wp-block-table thead {
	border-bottom: 0;
}

.wp-block-table.is-style-festival th,
.lh-page-content .wp-block-table th {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--marquee);
	font-weight: 400;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-align: left;
	border: 0;
	padding: 0.7rem 0.9rem;
}

.wp-block-table.is-style-festival td,
.lh-page-content .wp-block-table td {
	border: 0;
	border-top: var(--lh-border);
	padding: 0.7rem 0.9rem;
	vertical-align: top;
}

.wp-block-table.is-style-festival tbody tr:nth-child(even) td,
.lh-page-content .wp-block-table tbody tr:nth-child(even) td {
	background: rgba(241, 228, 201, 0.35);
}

.wp-block-table.is-style-festival td:first-child {
	font-weight: 600;
	white-space: nowrap;
}

.wp-block-table figcaption,
.wp-block-table .wp-element-caption {
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	text-align: left;
}

@media (max-width: 700px) {
	.wp-block-table.is-style-festival td:first-child {
		white-space: normal;
	}
}

/* ---------- Bilgi kutusu ---------- */
.lh-note {
	border-left: 4px solid var(--wp--preset--color--teal);
	background: rgba(47, 127, 122, 0.08);
	border-radius: 0 var(--lh-radius) var(--lh-radius) 0;
}

.wp-block-group.lh-note:not([style*="padding"]),
.wp-block-column.lh-note:not([style*="padding"]) {
	padding: 1rem 1.25rem;
}

/* ---------- SSS ---------- */
.wp-block-details {
	background: var(--wp--preset--color--paper);
	border: var(--lh-border);
	border-radius: 12px;
	padding: 0.9rem 1.2rem;
}

.wp-block-details + .wp-block-details {
	margin-top: 0.75rem;
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.1rem;
	cursor: pointer;
}

.wp-block-details[open] summary {
	margin-bottom: 0.6rem;
	color: var(--wp--preset--color--brick);
}

/* ---------- Ayırıcı ---------- */
.wp-block-separator.is-style-deco {
	border: 0;
	height: 14px;
	opacity: 1;
	background:
		radial-gradient(circle, var(--wp--preset--color--brass) 3px, transparent 4px) center / 14px 14px no-repeat,
		linear-gradient(var(--wp--preset--color--brass), var(--wp--preset--color--brass)) left center / calc(50% - 18px) 1px no-repeat,
		linear-gradient(var(--wp--preset--color--brass), var(--wp--preset--color--brass)) right center / calc(50% - 18px) 1px no-repeat;
}

/* ---------- Sözlük ---------- */
.lh-glossary h3 {
	font-size: 1.15rem;
	margin-bottom: 0.2rem;
	color: var(--wp--preset--color--midnight);
}

.lh-glossary h3 + p {
	margin-top: 0;
}

/* ---------- Butonlar ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--brass);
	border-color: var(--wp--preset--color--brass);
	color: var(--wp--preset--color--ink);
}

.wp-block-read-more {
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Alt alan ---------- */
.lh-site-footer {
	border-top: 3px solid var(--wp--preset--color--brass);
}

.lh-site-footer a {
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

.lh-site-footer a:hover {
	color: var(--wp--preset--color--brass);
}

.lh-footer-heading {
	font-family: var(--wp--preset--font-family--marquee) !important;
	font-weight: 400 !important;
	font-size: 1.3rem !important;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--brass);
}

.lh-footer-pages,
.lh-footer-posts {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.lh-footer-pages li,
.lh-footer-posts li {
	margin-bottom: 0.4rem;
}

.lh-footer-pages .wp-block-navigation__submenu-container,
.lh-footer-pages ul {
	list-style: none;
	padding-left: 1rem;
	margin-top: 0.4rem;
}

.lh-footer-note {
	opacity: 0.75;
}

/* ---------- Genel ---------- */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

.lh-page-content a:where(:not(.wp-element-button)) {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.wp-block-post-template.is-layout-grid {
	gap: var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.lh-hero::before,
	.lh-page-hero::before {
		right: -45%;
		opacity: 0.6;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-card {
		transition: none;
	}
	.is-style-card:hover {
		transform: none;
	}
}
