/*
Theme Name: Evanescence Fan Site
Theme URI: https://example.com/evanescence-fan-site
Author: Telex
Description: A dark, atmospheric single-page fan website dedicated to Evanescence, featuring gothic elegance with deep voids, crimson accents, and hauntingly beautiful typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evanescence-fan-site
Tags: one-column, custom-colors, custom-fonts, editor-style, full-site-editing, block-themes, dark, gothic
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ---------- Base & Reset polish ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	overflow-x: hidden;
}

::selection {
	background: var(--wp--preset--color--crimson);
	color: var(--wp--preset--color--ghost);
}

::-moz-selection {
	background: var(--wp--preset--color--crimson);
	color: var(--wp--preset--color--ghost);
}

/* ---------- Typography polish ---------- */

p {
	line-height: var(--wp--custom--line-height--normal);
}

h1, h2, h3, h4, h5, h6 {
	line-height: var(--wp--custom--line-height--tight);
	text-wrap: balance;
}

h1,
h2 {
	font-style: normal;
}

h5,
h6 {
	letter-spacing: var(--wp--custom--letter-spacing--wide);
}

/* Accent font for blockquotes and pullquotes — add subtle glow */
.wp-block-quote p,
.wp-block-pullquote p {
	font-family: var(--wp--preset--font-family--accent);
}

.wp-block-pullquote {
	text-align: center;
}

.wp-block-pullquote cite,
.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	color: var(--wp--preset--color--smoke);
}

/* ---------- Link styles ---------- */

a {
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
	text-decoration: none;
}

/* Underline offset for body links */
.entry-content a,
.wp-block-group a:not(.wp-block-button__link):not(.wp-block-navigation-item__content) {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

/* ---------- Button styles ---------- */

.wp-block-button__link,
.wp-element-button {
	transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
	padding: 0.85em 2em;
	display: inline-block;
	cursor: pointer;
	border: none;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	box-shadow: 0 0 24px rgba(194, 24, 91, 0.35);
	transform: translateY(-1px);
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: translateY(0);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--crimson);
	color: var(--wp--preset--color--crimson);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--crimson);
	color: var(--wp--preset--color--ghost);
	box-shadow: 0 0 28px rgba(194, 24, 91, 0.4);
}

/* ---------- Image treatments ---------- */

.wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	filter: grayscale(15%) contrast(1.05);
	transition: filter 0.5s ease, box-shadow 0.5s ease;
}

.wp-block-image:hover img {
	filter: grayscale(0%) contrast(1.1);
	box-shadow: 0 0 40px rgba(194, 24, 91, 0.15);
}

/* Cover block overlay subtle darkening */
.wp-block-cover {
	position: relative;
}

.wp-block-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, var(--wp--preset--color--void) 100%);
	pointer-events: none;
	z-index: 1;
	opacity: 0.5;
}

.wp-block-cover > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Gallery dark theme polish */
.wp-block-gallery .wp-block-image {
	overflow: hidden;
}

.wp-block-gallery .wp-block-image img {
	transition: transform 0.6s ease, filter 0.5s ease;
}

.wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.04);
}

/* ---------- Separator / Divider polish ---------- */

.wp-block-separator {
	opacity: 1;
}

.wp-block-separator.is-style-wide {
	border-bottom-color: var(--wp--preset--color--ash);
}

.wp-block-separator.is-style-dots::before {
	color: var(--wp--preset--color--crimson);
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 80px;
	margin-left: auto;
	margin-right: auto;
	border-bottom-color: var(--wp--preset--color--crimson);
}

/* ---------- Navigation polish ---------- */

.wp-block-navigation {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-navigation a {
	position: relative;
	transition: color 0.3s ease;
}

.wp-block-navigation a::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--wp--preset--color--crimson);
	transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after {
	width: 100%;
}

/* Mobile navigation overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--void);
}

/* ---------- Site title ---------- */

.wp-block-site-title a {
	position: relative;
}

/* ---------- Code block ---------- */

.wp-block-code {
	font-family: 'Courier New', monospace;
}

/* ---------- Scrollbar styling ---------- */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--obsidian);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--ash);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--smoke);
}

/* ---------- Atmospheric glow accents ---------- */

/* Subtle glow behind hero headings */
.has-display-font-size {
	text-shadow: 0 0 60px rgba(194, 24, 91, 0.12);
}

/* Ambient glow on crimson background elements */
[class*="has-crimson-background-color"] {
	box-shadow: 0 0 80px rgba(194, 24, 91, 0.2);
}

[class*="has-amethyst-background-color"] {
	box-shadow: 0 0 80px rgba(123, 31, 162, 0.2);
}

/* ---------- Columns responsive ---------- */

@media (max-width: 782px) {
	.wp-block-columns {
		flex-wrap: wrap;
	}

	.wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Spacer block visibility (editor hint) ---------- */

.wp-block-spacer {
	opacity: 0;
}

/* ---------- Group / Section transitions ---------- */

.wp-block-group {
	transition: opacity 0.3s ease;
}

/* ---------- Captions ---------- */

figcaption {
	text-align: center;
	margin-top: var(--wp--preset--spacing--10);
}

/* ---------- Table styling ---------- */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--wp--preset--color--ash);
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
}

.wp-block-table thead {
	border-bottom: 2px solid var(--wp--preset--color--crimson);
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ghost);
}

.wp-block-table tr:nth-child(even) {
	background: var(--wp--preset--color--obsidian);
}

/* ---------- Footer credit ---------- */

footer .wp-block-paragraph a,
.wp-block-template-part footer .wp-block-paragraph a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* ---------- Loop layout utilities ---------- */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--ash);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--crimson);
	opacity: 0.25;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--crimson);
	border-radius: 50%;
	background: var(--wp--preset--color--void);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}