/*
Theme Name: eindra
Theme URI: https://eindra.com/
Tags: photography, blog, grid-layout, block-patterns, translation-ready, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments

/*
 * Font smoothing
 * https://github.com/WordPress/gutenberg/issues/35934
 */

/*
 * Font smoothing
 * https://github.com/WordPress/gutenberg/issues/35934
 */
body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--secondary);
}

/**
 * Currently table styles are only available with 'wp-block-styles' 
 * theme support (block css) thus the following needs to be included
 * since 'wp-block-styles' aren't used for this theme.
 * https://github.com/WordPress/gutenberg/issues/45065
 */
.wp-block-table thead {
	border-bottom: 3px solid;
}
.wp-block-table tfoot {
	border-top: 3px solid;
}
.wp-block-table td,
.wp-block-table th {
	padding: var(--wp--preset--spacing--30);
	border: 1px solid;
	word-break: normal;
}
.wp-block-table figcaption {
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}

/* === Carbon Typewriter Effect === */

body {
	background-color: #1f1f1e;
}

body,
p, h1, h2, h3, h4, h5, h6,
li, td, th, dt, dd, blockquote, cite, figcaption,
a, label, button, nav,
.wp-block-navigation a,
.wp-block-post-title,
.wp-block-site-title {
	font-family: 'Outfit', sans-serif !important;
}

/* Text shadow applies to text only — safe to put on body */
body {
	text-shadow:
		0.4px  0.3px 0.6px rgba(10, 6, 0, 0.35),
		-0.3px -0.2px 0.5px rgba(10, 6, 0, 0.20),
		0px    0px   1.0px rgba(10, 6, 0, 0.25);
}

/* Carbon ink SVG filter on content containers only — avoids z-index issues on nav/modals */
.wp-block-post-content,
.wp-block-post-excerpt,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-comments {
	filter: url(#carbon-ink);
}

.wp-block-post-title {
	filter: url(#carbon-ink);
}

/* Remove inherited text-shadow from images */
img, video, iframe, svg:not([aria-hidden]) {
	text-shadow: none;
}

/* === Content Icon Overlay (home page) === */

.thumbnail-wrapper .post-content-icon-overlay {
	position: absolute;
	top: 0px;
	right: 8px;
	background: transparent;
	color: #d6d6dc;
	border-radius: 4px;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 10;
	line-height: 0;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* === Thumbnail Caption Overlay === */

.thumbnail-wrapper {
	position: relative !important;
	display: block !important;
	overflow: hidden;
	isolation: isolate;
}

.thumbnail-wrapper .wp-block-post-featured-image {
	display: block !important;
	margin: 0;
	width: 100%;
}

.thumbnail-wrapper .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}


/* === Alt Text Overlay (halaman post tunggal) === */

/* Wrapper untuk featured image */
.featured-image-alt-wrapper {
	position: relative;
	overflow: hidden;
	display: block;
}

/* Gambar konten (core/image) */
.wp-block-image {
	position: relative;
	overflow: hidden;
}

/* Gradient + teks overlay */
.image-alt-overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 40px 16px 14px;
	background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
	pointer-events: none;
	z-index: 2;
}

.image-alt-overlay span {
	display: block;
	font-family: 'Outfit', sans-serif;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	color: var(--wp--preset--color--secondary);
	text-shadow:
		0 1px 4px rgba(0, 0, 0, 0.95),
		0 2px 10px rgba(0, 0, 0, 0.8);
	line-height: 1.3;
	filter: none;
}

.highlight {
	background-color: #92c8c6;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	padding: 1px 3px;
	text-shadow:
		0.3px 0.3px 0.5px rgba(0, 50, 48, 0.3),
		-0.2px 0px  0.4px rgba(0, 50, 48, 0.15);
}
