/**
 * GoC Design Tokens — "Forged" (master-plan-ui-ux 1.1-1.3, 7.2).
 * Definite O SINGURA DATA aici; orice stil din platforma le consuma.
 * Zero valori hardcodate in componente — totul prin var(--goc-*).
 */

/* Fallback cu metrice ajustate: swap-ul la Cinzel nu mai creeaza un paint
   mai mare, deci LCP ramane PRIMUL paint al titlului, nu repaint-ul. */
@font-face {
	font-family: "Cinzel Fallback";
	src: local("Times New Roman"), local("Georgia");
	size-adjust: 122%;
	ascent-override: 85%;
	descent-override: 25%;
}

:root {
	/* Fundaluri — noaptea regatului (1.1) */
	--goc-bg-abyss: #0B0A08;
	--goc-bg-keep: #14120E;
	--goc-bg-chamber: #1D1A14;
	--goc-bg-parchment: #EFE6D0;

	/* Aurul — actiune si victorie (max 10% dintr-un ecran) */
	--goc-gold: #C9A227;
	--goc-gold-bright: #E8C547;
	--goc-gold-dark: #8A6D1D;

	/* Sangele — urgenta si asediu (doar stari negative reale) */
	--goc-crimson: #7A1F2B;
	--goc-crimson-soft: #A33B47;

	/* Otelul — informatie neutra */
	--goc-steel: #8B93A1;
	--goc-frost: #A8C5D6;

	/* Semantice */
	--goc-success: #4F7942;
	--goc-warn: #C9762B;
	--goc-ink: #241F17;
	--goc-text: #EDE7DA;

	/* Tipografie (1.2): scara modulara 1.25 */
	--goc-font-display: Cinzel, "Cinzel Fallback", serif;
	--goc-font-narrative: "Cormorant Garamond", Georgia, serif;
	--goc-font-ui: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;

	--goc-fs-0: 1rem;        /* 16 */
	--goc-fs-1: 1.25rem;     /* 20 */
	--goc-fs-2: 1.5625rem;   /* 25 */
	--goc-fs-3: 1.9375rem;   /* 31 */
	--goc-fs-4: 2.4375rem;   /* 39 */
	--goc-fs-5: 3.0625rem;   /* 49 */
	--goc-fs-6: 3.8125rem;   /* 61 */
	--goc-fs-hero: clamp(2.75rem, 2rem + 4vw, 6rem); /* hero LP 76-96px desktop */
	--goc-fs-small: 0.875rem;
	--goc-fs-tiny: 0.75rem;

	/* Spatiere */
	--goc-sp-1: 0.25rem;
	--goc-sp-2: 0.5rem;
	--goc-sp-3: 1rem;
	--goc-sp-4: 1.5rem;
	--goc-sp-5: 2.5rem;
	--goc-sp-6: 4rem;
	--goc-sp-7: 6rem;

	/* Forme (1.3): colturi aproape taioase, lumea asta nu e rounded-friendly */
	--goc-radius: 2px;
	--goc-radius-plate: 6px; /* placuta forjata: clip-path octogonal, nu radius mare */
	--goc-border-card: 1px solid rgba(138, 109, 29, 0.2); /* gold-dark 20% */
	--goc-border-hairline: 1px solid rgba(201, 162, 39, 0.18);

	/* Umbre si adancime (6.2): calde, cu tenta crimson 5% — nu negru pur.
	   3 planuri: fundal (abyss+grain+vignette) / suprafata (keep) / ridicat (chamber). */
	--goc-shadow-card: 0 1px 0 rgba(201, 162, 39, 0.1) inset, 0 10px 28px rgba(26, 8, 10, 0.5), 0 2px 6px rgba(122, 31, 43, 0.06);
	--goc-shadow-raised: 0 22px 56px rgba(26, 8, 10, 0.62), 0 4px 12px rgba(122, 31, 43, 0.08);
	--goc-shadow-float: 0 32px 80px rgba(26, 8, 10, 0.7), 0 6px 16px rgba(122, 31, 43, 0.1);
	--goc-glow-gold: 0 0 18px rgba(232, 197, 71, 0.35);

	/* Motion (7.2): fierul aterizeaza greu, nimic bouncy */
	--goc-ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
	--goc-ease-exit: cubic-bezier(0.55, 0, 0.85, 0.36);
	--goc-dur-micro: 150ms;
	--goc-dur-comp: 280ms;
	--goc-dur-ceremony: 1200ms;

	/* Focus (sectiunea 8): ring auriu vizibil pe TOT ce e interactiv */
	--goc-focus-ring: 0 0 0 2px var(--goc-bg-abyss), 0 0 0 4px var(--goc-gold);
}

/* ── Utilitare de baza ─────────────────────────────────────────── */

.goc-tabular { font-variant-numeric: tabular-nums; }

.goc-display { font-family: var(--goc-font-display); letter-spacing: 0.04em; }
.goc-narrative { font-family: var(--goc-font-narrative); font-style: italic; }

/* Grain global (1.3): omoara aspectul flat de template. Doar pe fundaluri inchise. */
.goc-grain { position: relative; }
.goc-grain::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
	z-index: 1;
}

/* Vignette cinematica pentru hero */
.goc-vignette { position: relative; }
.goc-vignette::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
	z-index: 1;
}

/* Separator "taietura de sabie" (1.3): linie dubla cu romb central — UNICUL motiv ornamental */
.goc-sword-cut {
	display: flex;
	align-items: center;
	gap: var(--goc-sp-3);
	margin: var(--goc-sp-5) 0;
	color: var(--goc-gold);
}
.goc-sword-cut::before,
.goc-sword-cut::after {
	content: "";
	flex: 1;
	height: 3px;
	border-top: 1px solid rgba(201, 162, 39, 0.5);
	border-bottom: 1px solid rgba(201, 162, 39, 0.22);
}
.goc-sword-cut > .goc-diamond {
	width: 8px;
	height: 8px;
	background: var(--goc-gold);
	transform: rotate(45deg);
	flex: none;
}

/* Focus vizibil custom pe tot ce e interactiv (sectiunea 8) */
.goc-scope :is(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: none;
	box-shadow: var(--goc-focus-ring);
	border-radius: var(--goc-radius);
}

/* Reduced motion = cetatean de rang 1 (0.7): totul devine fade scurt sau stare finala */
@media (prefers-reduced-motion: reduce) {
	.goc-scope *,
	.goc-scope *::before,
	.goc-scope *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 150ms !important;
		scroll-behavior: auto !important;
	}
}

/* ── Pass-ul de adancime (v2 6.2) ──────────────────────────────── */

/* Iconitele proprii: stroke mostenit, aliniere optica */
.goc-icon { display: inline-block; vertical-align: -0.18em; flex: none; }

/* Ornamentul de colt "taietura de sabie" — atmosfera la 4-6% (6.2 pct 6) */
.goc-corners { position: relative; }
.goc-corners::before,
.goc-corners::after {
	content: "";
	position: absolute;
	width: 72px; height: 72px;
	opacity: 0.05;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1.5'%3E%3Cpath d='M4 24V4h20'/%3E%3Cpath d='M4 32V28M32 4h-4'/%3E%3Cpath d='M14 14l5 5-5 5-5-5 5-5z' fill='%23C9A227'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
}
.goc-corners::before { top: 14px; left: 14px; }
.goc-corners::after { bottom: 14px; right: 14px; transform: rotate(180deg); }
