/*
Theme Name: Azteko
Theme URI: https://azteko.com.mx/
Author: Azteko
Description: Tema personalizado para Azteko – Gaming en México. Estética "Códice HUD": obsidiana y dorado con grecas aztecas, mosaicos bento y etiquetas tipo telemetría, portada con destacados, tarjetas por categoría, tiempo de lectura, entradas relacionadas y compatibilidad total con Elementor.
Version: 1.0.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: azteko
Tags: blog, news, dark, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	/* Paleta "Códice HUD": obsidiana + dorado (contraste verificado WCAG AA/AAA) */
	--az-bg: #09090b;
	--az-surface: #111114;
	--az-surface-2: #17171b;
	--az-border: #26252a;
	--az-text: #ece7dc;       /* 16.1:1 sobre fondo */
	--az-muted: #a19c91;      /* 6.9:1 sobre superficie */
	--az-gold: #e3b54f;       /* 9.9:1 sobre superficie */
	--az-red: #ff5a5f;        /* 6.2:1 sobre superficie */
	--az-jade: #2bb98f;
	--az-on-gold: #09090b;    /* 10.4:1 sobre dorado */
	--az-accent: var(--az-gold);
	--az-radius: 4px;
	--az-max: 1280px;
	--az-font-head: "Rajdhani", "Segoe UI", system-ui, sans-serif;
	--az-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--az-font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--az-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	--az-greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 11h6V7h4V3h4V1h12v2h4v4h4v4h6' fill='none' stroke='%23E3B54F' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--az-bg);
	color: var(--az-text);
	font-family: var(--az-font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--az-accent); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--az-gold); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--az-font-head);
	font-weight: 700;
	line-height: 1.2;
	margin: 1.6em 0 .6em;
	color: #fff;
	letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.45rem; }

:focus-visible { outline: 2px solid var(--az-gold); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--az-gold); color: #000;
}

.az-container { width: 100%; max-width: var(--az-max); margin: 0 auto; padding: 0 20px; }

.az-greca {
	height: 12px;
	background: var(--az-greca) repeat-x left center;
	opacity: .85;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.az-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(9, 9, 11, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--az-border);
}
.admin-bar .az-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .az-header { top: 0; position: relative; } }

.az-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: 70px;
}

.az-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.az-brand .custom-logo { max-height: 46px; width: auto; display: block; }
.az-brand__title {
	font-family: var(--az-font-head);
	font-size: 1.75rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .08em;
	color: #fff; margin: 0; line-height: 1;
}
.az-brand__title span { color: var(--az-accent); }
.az-brand__tagline { display: block; font-size: .72rem; color: var(--az-muted); letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

.az-nav { margin-left: auto; }
.az-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.az-nav li { position: relative; }
.az-nav a {
	display: block; padding: 10px 12px;
	font-family: var(--az-font-mono); font-weight: 600; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .06em;
	color: var(--az-muted); border-radius: 2px;
}
.az-nav a:hover,
.az-nav .current-menu-item > a,
.az-nav .current-menu-ancestor > a { color: var(--az-accent); background: var(--az-surface-2); }

.az-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	flex-direction: column; padding: 8px;
	background: var(--az-surface); border: 1px solid var(--az-border);
	border-radius: var(--az-radius); box-shadow: var(--az-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .2s;
}
.az-nav li:hover > .sub-menu,
.az-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.az-nav .sub-menu .sub-menu { top: 0; left: 100%; }
/* Los submenús de los últimos elementos se abren hacia la izquierda para no salirse de la pantalla. */
.az-nav > ul > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.az-nav > ul > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; }
/* Red de seguridad contra desbordes horizontales (p. ej. secciones de Elementor a 100vw). clip no rompe position: sticky. */
html, body { overflow-x: clip; }

.az-header__actions { display: flex; align-items: center; gap: 8px; }
.az-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0;
	background: var(--az-surface-2); color: var(--az-text);
	border: 1px solid var(--az-border); border-radius: 8px; cursor: pointer;
}
.az-icon-btn:hover { color: var(--az-accent); border-color: var(--az-accent); }
.az-icon-btn svg { width: 20px; height: 20px; }
.az-menu-toggle { display: none; }

.az-search-panel {
	display: none; padding: 16px 0;
	border-top: 1px solid var(--az-border);
}
.az-search-panel.is-open { display: block; }

@media (max-width: 960px) {
	/* backdrop-filter crea un bloque contenedor que recorta el menú fijo: se quita en móvil. */
	.az-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--az-bg); }
	.az-menu-toggle { display: inline-flex; }
	.az-nav {
		position: fixed; inset: 70px 0 0 0; z-index: 20;
		background: var(--az-bg); padding: 20px;
		overflow-y: auto; display: none;
	}
	.az-nav.is-open { display: block; }
	.az-nav ul { flex-direction: column; }
	.az-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding-left: 16px; background: transparent;
	}
	.az-header__actions { margin-left: auto; }
}

/* ==========================================================================
   4. Forms / search
   ========================================================================== */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field,
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%; padding: 12px 14px;
	background: var(--az-surface-2); color: var(--az-text);
	border: 1px solid var(--az-border); border-radius: 8px;
	font: inherit;
}
.search-field:focus, input:focus, textarea:focus { border-color: var(--az-accent); outline: none; }

.az-btn, .search-submit, button[type="submit"], input[type="submit"], .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px;
	background: var(--az-accent); color: var(--az-on-gold);
	border: 0; border-radius: 8px; cursor: pointer;
	font-family: var(--az-font-head); font-weight: 700; font-size: 1rem;
	text-transform: uppercase; letter-spacing: .06em;
	transition: transform .15s, background .2s;
}
.az-btn:hover, .search-submit:hover, button[type="submit"]:hover, input[type="submit"]:hover {
	background: #f0c66a; color: var(--az-on-gold); transform: translateY(-1px);
}
.az-btn--ghost { background: transparent; color: var(--az-text); border: 1px solid var(--az-border); }

/* ==========================================================================
   5. Códice HUD: ticker, bento, filas numeradas
   ========================================================================== */
.az-ticker {
	background: var(--az-surface);
	border-bottom: 1px solid var(--az-border);
	font: 400 .75rem/1 var(--az-font-mono);
	color: var(--az-muted);
}
.az-ticker__row { display: flex; align-items: center; gap: 16px; height: 36px; }
.az-ticker__label {
	flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 100%;
	padding-right: 16px; border-right: 1px solid var(--az-border);
	color: var(--az-red); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.az-ticker__label::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%;
	background: var(--az-red); animation: az-pulse 1.6s ease-in-out infinite;
}
.az-ticker__track {
	flex: 1; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.az-ticker__inner { display: inline-flex; gap: 48px; white-space: nowrap; animation: az-marquee 45s linear infinite; }
.az-ticker:hover .az-ticker__inner,
.az-ticker:focus-within .az-ticker__inner { animation-play-state: paused; }
.az-ticker a { color: var(--az-muted); }
.az-ticker a:hover, .az-ticker a:focus { color: var(--az-gold); }
.az-ticker a b { color: var(--az-gold); font-weight: 600; margin-right: 8px; }
@keyframes az-marquee { to { transform: translateX(-50%); } }
@keyframes az-pulse { 50% { opacity: .3; } }

.az-band { height: 12px; background: var(--az-greca) repeat-x center; opacity: .4; margin: 20px 0 4px; }

/* Bento */
.az-bento {
	display: grid; gap: 12px;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 260px 220px;
	padding-top: 24px;
}
.az-tile {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 20px;
	background: var(--az-surface);
	border: 1px solid var(--az-border);
	border-radius: var(--az-radius);
	color: var(--az-text);
	transition: border-color .25s;
}
.az-tile:hover { border-color: var(--az-tile-color, var(--az-gold)); color: var(--az-text); }
.az-tile::before {
	content: ""; position: absolute; top: 0; left: 0; z-index: 2;
	width: 100%; height: 3px;
	background: var(--az-tile-color, var(--az-gold));
	transform: scaleX(.18); transform-origin: left;
	transition: transform .4s ease;
}
.az-tile:hover::before { transform: scaleX(1); }

/* Imagen de fondo: se atenúa y se cubre con degradado obsidiana para garantizar contraste
   (medido con imagen 100% blanca: todo el texto ≥ 4.5:1). */
.az-tile__img {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
	opacity: .5; transition: transform .6s ease, opacity .3s;
}
.az-tile:hover .az-tile__img { transform: scale(1.04); opacity: .62; }
.az-tile.has-img::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(9, 9, 11, .88) 0%, rgba(9, 9, 11, .5) 32%, rgba(9, 9, 11, .9) 62%, #09090b 100%);
}

.az-tile__lbl {
	position: absolute; top: 14px; left: 20px; right: 20px; z-index: 3;
	display: flex; justify-content: space-between; gap: 12px;
	font: 400 .7rem/1.4 var(--az-font-mono);
	color: var(--az-muted); letter-spacing: .06em; text-transform: uppercase;
}
.az-tile__lbl b { color: var(--az-gold); font-weight: 600; }
.az-tile__lbl a { color: inherit; position: relative; z-index: 4; }
.az-tile__lbl a:hover { color: var(--az-gold); }
.az-new { color: var(--az-red); font-weight: 600; }

.az-tile__title { margin: 0; font-family: var(--az-font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.az-tile__title a { color: var(--az-text); }
.az-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.az-tile:hover .az-tile__title a { color: #fff; }

.az-tile--main {
	grid-row: span 2; padding: 28px;
	background:
		radial-gradient(circle at 75% 30%, rgba(227, 181, 79, .22), transparent 50%),
		linear-gradient(180deg, var(--az-surface-2), var(--az-surface));
}
.az-tile--main .az-tile__title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; margin-bottom: 12px; }
.az-tile__excerpt { color: #cbc5b8; margin: 0 0 20px; max-width: 560px; }
.az-tile__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.az-stats { display: flex; flex-wrap: wrap; gap: 16px; font: 400 .72rem var(--az-font-mono); color: var(--az-muted); text-transform: uppercase; letter-spacing: .04em; }

.az-btn--hud {
	position: relative; z-index: 3;
	padding: 10px 18px; border-radius: 2px;
	font: 600 .8rem var(--az-font-mono); letter-spacing: .08em;
}
.az-btn--outline { background: transparent; color: var(--az-gold); box-shadow: inset 0 0 0 1px var(--az-gold); }
.az-btn--outline:hover { background: var(--az-gold); color: var(--az-on-gold); }

.az-tile--cta { background: var(--az-gold); border-color: var(--az-gold); color: var(--az-on-gold); }
.az-tile--cta::before { background: var(--az-on-gold); }
.az-tile--cta .az-tile__lbl,
.az-tile--cta .az-tile__lbl b { color: #2a2414; }
.az-tile--cta .az-tile__title { font-size: 1.5rem; color: var(--az-on-gold); }
.az-tile--cta:hover { background: #f0c66a; border-color: #f0c66a; color: var(--az-on-gold); }

/* Filas numeradas */
.az-rows { margin: 0; padding: 0; list-style: none; }
.az-row {
	position: relative;
	display: grid; grid-template-columns: 64px 150px minmax(0, 1fr) 90px; gap: 16px; align-items: center;
	padding: 14px 0; border-bottom: 1px dashed var(--az-border);
}
.az-row__n { font: 600 .8rem var(--az-font-mono); color: var(--az-gold); }
.az-row__c { font: 400 .72rem var(--az-font-mono); color: var(--az-muted); text-transform: uppercase; letter-spacing: .04em; }
.az-row__c a { color: inherit; position: relative; z-index: 3; }
.az-row__t { margin: 0; font: 600 1.1rem/1.3 var(--az-font-head); }
.az-row__t a { color: var(--az-text); }
.az-row__t a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.az-row:hover .az-row__t a { color: var(--az-gold); }
.az-row__m { font: 400 .72rem var(--az-font-mono); color: var(--az-muted); text-align: right; text-transform: uppercase; }

@media (max-width: 960px) {
	.az-bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.az-tile { min-height: 210px; }
	.az-tile--main { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
}
@media (max-width: 640px) {
	.az-bento { grid-template-columns: 1fr; }
	.az-row { grid-template-columns: 48px minmax(0, 1fr); }
	.az-row__c, .az-row__m { display: none; }
	.az-ticker__label { font-size: 0; gap: 0; padding-right: 12px; }
}

/* ==========================================================================
   6. Section headings & badges
   ========================================================================== */
.az-section { padding: 36px 0; }
.az-section__head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-bottom: 22px; padding-bottom: 12px;
	border-bottom: 1px solid var(--az-border);
	position: relative;
}
.az-section__head::after {
	content: ""; position: absolute; left: 0; bottom: -1px;
	width: 90px; height: 3px; background: var(--az-accent);
}
.az-section__title { margin: 0; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .05em; }
.az-section__title::before { content: "// "; color: var(--az-accent); font-family: var(--az-font-mono); font-size: .75em; }
.az-section__more { font-family: var(--az-font-mono); font-weight: 600; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }

.az-card__lbl {
	display: flex; justify-content: space-between; gap: 12px;
	font: 400 .7rem/1.4 var(--az-font-mono); color: var(--az-muted);
	text-transform: uppercase; letter-spacing: .06em;
}
.az-card__lbl a { color: var(--az-gold); font-weight: 600; position: relative; z-index: 3; }
.az-card .az-meta, .az-single-head .az-meta { font-family: var(--az-font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }

.az-badge {
	display: inline-block; padding: 3px 10px;
	background: var(--az-badge, var(--az-accent)); color: var(--az-on-gold);
	border-radius: 4px;
	font-family: var(--az-font-head); font-weight: 700; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .08em; line-height: 1.5;
	position: relative; z-index: 2;
}
.az-badge:hover { color: #000; filter: brightness(1.1); }

.az-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	font-size: .85rem; color: var(--az-muted);
}
.az-meta a { color: inherit; }
.az-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; opacity: .8; }

/* ==========================================================================
   7. Layout + cards
   ========================================================================== */
.az-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 36px 0 60px; }
.az-layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .az-layout { grid-template-columns: minmax(0, 1fr); } }

.az-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.az-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--az-surface);
	border: 1px solid var(--az-border);
	border-radius: var(--az-radius);
	overflow: hidden;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.az-card:hover { transform: translateY(-4px); border-color: var(--az-accent); box-shadow: var(--az-shadow); }
.az-card::before {
	content: ""; position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: 3px;
	background: var(--az-tile-color, var(--az-gold)); transform: scaleX(.18); transform-origin: left; transition: transform .4s;
}
.az-card:hover::before { transform: scaleX(1); }
.az-card__media { aspect-ratio: 16 / 9; background: var(--az-surface-2); overflow: hidden; position: relative; }
.az-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.az-card__media .az-badge { position: absolute; top: 12px; left: 12px; }
.az-card__placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 30% 20%, rgba(227, 181, 79, .25), transparent 60%), var(--az-surface-2);
	font-family: var(--az-font-head); font-size: 2rem; font-weight: 700; color: rgba(255,255,255,.15);
	text-transform: uppercase; letter-spacing: .1em;
}
.az-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.az-card__title { margin: 0; font-size: 1.3rem; }
.az-card__title a { color: #fff; }
.az-card__title a::before { content: ""; position: absolute; inset: 0; }
.az-card__title a:hover { color: var(--az-accent); }
.az-card__excerpt { margin: 0; color: var(--az-muted); font-size: .95rem; line-height: 1.6; }
.az-card .az-meta { margin-top: auto; }

/* List variant (archives) */
.az-list .az-card { flex-direction: row; }
.az-list .az-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 200px; }
.az-list { display: grid; gap: 22px; }
@media (max-width: 640px) {
	.az-list .az-card { flex-direction: column; }
	.az-list .az-card__media { aspect-ratio: 16/9; min-height: 0; }
}

/* Archive header */
.az-archive-head {
	padding: 48px 0 36px;
	background:
		radial-gradient(800px 300px at 10% 0%, rgba(227, 181, 79, .14), transparent 70%),
		radial-gradient(600px 300px at 90% 100%, rgba(255, 90, 95, .10), transparent 70%),
		var(--az-surface);
	border-bottom: 1px solid var(--az-border);
}
.az-archive-head h1 { margin: 8px 0; }
.az-archive-head .archive-description { color: var(--az-muted); max-width: 760px; }
.az-kicker {
	font-family: var(--az-font-head); font-weight: 700;
	text-transform: uppercase; letter-spacing: .18em;
	color: var(--az-gold); font-size: .85rem;
}

/* Pagination */
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-flex; min-width: 44px; height: 44px; padding: 0 14px;
	align-items: center; justify-content: center;
	background: var(--az-surface); border: 1px solid var(--az-border);
	border-radius: 8px; color: var(--az-text);
	font-family: var(--az-font-head); font-weight: 700;
}
.page-numbers.current, .page-numbers:hover { background: var(--az-accent); color: var(--az-on-gold); border-color: var(--az-accent); }

/* ==========================================================================
   8. Single post
   ========================================================================== */
.az-single-head { padding: 40px 0 0; }
.az-single-head .az-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.az-single-head h1 { margin: 16px 0 14px; max-width: 920px; }
.az-single-thumb { margin: 28px 0 0; border-radius: var(--az-radius); overflow: hidden; }
.az-single-thumb img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.az-single-thumb figcaption { font-size: .85rem; color: var(--az-muted); padding: 8px 2px; }

.az-progress {
	position: fixed; top: 0; left: 0; z-index: 200;
	height: 3px; width: 0;
	background: linear-gradient(90deg, var(--az-gold), var(--az-red));
}

.az-breadcrumbs { font-size: .85rem; color: var(--az-muted); margin-bottom: 16px; }
.az-breadcrumbs a { color: var(--az-muted); }
.az-breadcrumbs a:hover { color: var(--az-accent); }
.az-breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: .5; }

/* Content typography */
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content h2 { padding-left: 14px; border-left: 4px solid var(--az-accent); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--az-accent); }
.entry-content blockquote, .wp-block-quote {
	margin: 1.8em 0; padding: 18px 24px;
	background: var(--az-surface); border-left: 4px solid var(--az-gold);
	border-radius: 0 var(--az-radius) var(--az-radius) 0;
	font-size: 1.1rem; font-style: italic;
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: .9rem; color: var(--az-muted); font-style: normal; }
.entry-content img, .entry-content .wp-block-image img { border-radius: 8px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-element-caption { font-size: .85rem; color: var(--az-muted); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--az-border); text-align: left; }
.entry-content th { background: var(--az-surface-2); font-family: var(--az-font-head); text-transform: uppercase; letter-spacing: .04em; }
.entry-content tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.entry-content code { background: var(--az-surface-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: var(--az-surface); padding: 18px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--az-border); }
.entry-content hr { border: 0; height: 12px; background: var(--az-greca) repeat-x center; opacity: .6; margin: 2.5em 0; }
.entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: 8px; }

.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignwide, .alignfull { clear: both; }

/* Review box */
.az-review {
	display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
	margin: 2em 0; padding: 24px;
	background: linear-gradient(135deg, rgba(227, 181, 79, .12), rgba(255, 90, 95, .08)), var(--az-surface);
	border: 1px solid var(--az-border); border-radius: var(--az-radius);
}
.az-review__score {
	width: 110px; height: 110px; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: conic-gradient(var(--az-accent) calc(var(--score) * 10%), var(--az-surface-2) 0);
	position: relative;
}
.az-review__score::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--az-surface); }
.az-review__score strong { position: relative; font-family: var(--az-font-head); font-size: 2.2rem; line-height: 1; color: #fff; }
.az-review__score small { position: relative; font-size: .7rem; color: var(--az-muted); text-transform: uppercase; letter-spacing: .1em; }
.az-review__title { margin: 0 0 6px; font-size: 1.3rem; }
.az-review__verdict { margin: 0 0 12px; color: var(--az-muted); }
.az-review__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: .92rem; }
.az-review__cols ul { margin: 6px 0 0; padding-left: 1.2em; }
.az-review__pros strong { color: var(--az-jade); }
.az-review__cons strong { color: var(--az-red); }
@media (max-width: 600px) { .az-review, .az-review__cols { grid-template-columns: 1fr; } .az-review__score { margin: 0 auto; } }

/* Tags, share, author */
.az-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.az-tags a {
	padding: 5px 12px; font-size: .85rem;
	background: var(--az-surface); border: 1px solid var(--az-border);
	border-radius: 999px; color: var(--az-muted);
}
.az-tags a:hover { border-color: var(--az-accent); color: var(--az-accent); }

.az-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.az-share__label { font-family: var(--az-font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.az-share a, .az-share button {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; font-size: .85rem; font-weight: 600;
	background: var(--az-surface-2); color: var(--az-text);
	border: 1px solid var(--az-border); border-radius: 8px; cursor: pointer; font-family: inherit;
}
.az-share a:hover, .az-share button:hover { border-color: var(--az-accent); color: var(--az-accent); }

.az-author {
	display: flex; gap: 20px; align-items: flex-start;
	padding: 24px; margin: 32px 0;
	background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius);
}
.az-author img { border-radius: 50%; flex-shrink: 0; }
.az-author h3 { margin: 0 0 6px; }
.az-author p { margin: 0; color: var(--az-muted); font-size: .95rem; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a {
	display: block; height: 100%; padding: 18px 20px;
	background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius);
	color: #fff; font-family: var(--az-font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.3;
}
.post-navigation a:hover { border-color: var(--az-accent); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .az-nav-label { display: block; font-size: .8rem; color: var(--az-gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } }

/* ==========================================================================
   9. Sidebar / widgets
   ========================================================================== */
.az-sidebar { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1025px) { .az-sidebar__sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; } }
.widget {
	padding: 22px; background: var(--az-surface);
	border: 1px solid var(--az-border); border-radius: var(--az-radius);
	font-size: .95rem;
}
.widget-title, .widget .wp-block-heading {
	margin: 0 0 16px; padding-bottom: 10px;
	font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em;
	border-bottom: 1px solid var(--az-border); position: relative;
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 3px; background: var(--az-accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--az-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--az-text); }
.widget a:hover { color: var(--az-accent); }

.az-mini { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; position: relative; }
.az-mini img, .az-mini .az-card__placeholder { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; font-size: .8rem; }
.az-mini__title { font-family: var(--az-font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.25; margin: 0 0 4px; }
.az-mini__title a { color: #fff; }
.az-mini__title a::before { content: ""; position: absolute; inset: 0; }
.az-mini .az-meta { font-size: .75rem; }
.az-mini__num {
	font-family: var(--az-font-head); font-size: 2rem; font-weight: 700;
	color: transparent; -webkit-text-stroke: 1px var(--az-gold);
}

/* ==========================================================================
   10. Comments
   ========================================================================== */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--az-border); }
.comment-body { padding: 18px 20px; margin-bottom: 16px; background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .85rem; color: var(--az-muted); margin-bottom: 8px; }
.comment-author { display: flex; gap: 10px; align-items: center; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: #fff; font-style: normal; }
.comment-metadata a { color: var(--az-muted); }
.reply a { font-size: .85rem; font-weight: 600; }
.comment-respond { padding: 24px; background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius); }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--az-muted); }
.comment-form-cookies-consent label { display: inline; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.az-footer { margin-top: 40px; background: #060607; border-top: 1px solid var(--az-border); }
.az-footer__widgets { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 48px 0 24px; }
.az-footer .widget { background: transparent; border: 0; padding: 0; }
.az-footer__about p { color: var(--az-muted); font-size: .95rem; }
.az-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.az-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 8px;
	background: var(--az-surface-2); border: 1px solid var(--az-border); color: var(--az-text);
}
.az-social a:hover { color: var(--az-accent); border-color: var(--az-accent); }
.az-social svg { width: 18px; height: 18px; }
.az-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
	padding: 20px 0; border-top: 1px solid var(--az-border);
	font-size: .85rem; color: var(--az-muted);
}
.az-footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.az-footer__bottom a { color: var(--az-muted); }
.az-footer__bottom a:hover { color: var(--az-accent); }

.az-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	opacity: 0; visibility: hidden; transition: all .25s;
}
.az-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   12. 404 / empty
   ========================================================================== */
.az-404 { text-align: center; padding: 80px 0; }
.az-404__code {
	font-family: var(--az-font-head); font-weight: 700;
	font-size: clamp(6rem, 18vw, 11rem); line-height: 1;
	background: linear-gradient(135deg, var(--az-gold), var(--az-red));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.az-404 .search-form { max-width: 520px; margin: 28px auto; }

/* ==========================================================================
   13. Elementor compatibility
   ========================================================================== */
.az-elementor-full .site-main { padding: 0; }
.elementor-page .az-page-content { max-width: none; }

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