/**
 * Header + footer global (plan remediere v2, sectiunea 2).
 * Tokens only; tranzitii grele, decelerate — nimic bouncy.
 */

/* ── Scheletul ─────────────────────────────────────────────────── */
.goc-gh {
	position: fixed; inset: 0 0 auto 0; z-index: 70;
	font-family: var(--goc-font-ui);
	color: var(--goc-text);
	background: color-mix(in srgb, var(--goc-bg-keep) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(138, 109, 29, 0.2);
	/* fara transform in starea de baza: ar deveni containing block pentru
	   meniul mobil (position:fixed) si l-ar strivi la inaltimea headerului */
	transition: transform 250ms var(--goc-ease-enter), background 250ms linear, border-color 250ms linear;
}
.goc-gh.is-hidden { transform: translateY(-110%); }
/* Transparent peste hero (doar pe LP, pana la 80px scroll) */
.goc-gh.is-transparent { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }

.goc-gh__inner {
	max-width: 1360px; margin: 0 auto;
	display: flex; align-items: center; gap: var(--goc-sp-4);
	padding: 0.65rem clamp(1rem, 3vw, 2rem);
}

.goc-gh__brand {
	display: flex; align-items: center; flex: none;
	color: var(--goc-gold); text-decoration: none;
}
.goc-gh__logo {
	display: block; width: 172px; height: auto; flex: none;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.32));
	transition: filter 220ms linear, transform 260ms var(--goc-ease-enter);
}
.goc-gh__brand:hover .goc-gh__logo {
	filter: drop-shadow(0 4px 13px rgba(201, 162, 39, 0.3));
	transform: translateY(-1px);
}

/* ── Nav central + ruta activa care se "forjeaza" ──────────────── */
.goc-gh__nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); margin: 0 auto; }
.goc-gh__nav > a, .goc-gh__dd > button {
	position: relative;
	font-size: 0.9rem; color: var(--goc-steel); text-decoration: none;
	background: none; border: none; cursor: pointer; font-family: inherit;
	padding: 0.4rem 0; white-space: nowrap;
	transition: color var(--goc-dur-micro) linear;
}
.goc-gh__nav > a:hover, .goc-gh__dd > button:hover { color: var(--goc-text); }
.goc-gh__nav > a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
	height: 2px; background: var(--goc-gold);
	transition: right 200ms var(--goc-ease-enter);
}
.goc-gh__nav > a.is-active { color: var(--goc-gold-bright); }
.goc-gh__nav > a.is-active::after { right: 0; }

/* ── Dropdown-uri (regate / clopotel / avatar) ─────────────────── */
.goc-gh__dd { position: relative; }
.goc-gh__caret { font-size: 0.7em; opacity: 0.7; }
.goc-gh__dd-panel {
	position: absolute; top: calc(100% + 10px); right: 0; min-width: 260px;
	background: var(--goc-bg-chamber);
	border: 1px solid rgba(138, 109, 29, 0.3); border-radius: var(--goc-radius);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(122, 31, 43, 0.08);
	padding: 6px;
	visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none;
	transition: opacity 180ms linear, transform 220ms var(--goc-ease-enter);
	z-index: 80;
}
.goc-gh__nav .goc-gh__dd-panel { left: 0; right: auto; }
.goc-gh__dd.is-open .goc-gh__dd-panel { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.goc-gh__dd-panel a {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 12px; border-radius: var(--goc-radius);
	color: var(--goc-text); text-decoration: none; font-size: 0.88rem;
	transition: background var(--goc-dur-micro) linear;
}
.goc-gh__dd-panel a:hover, .goc-gh__dd-panel a:focus-visible { background: rgba(201, 162, 39, 0.09); color: var(--goc-gold-bright); }
.goc-gh__dd-panel a small { display: block; color: var(--goc-steel); font-size: 0.74rem; }
.goc-gh__dd-icon { font-size: 1.05rem; flex: none; }
.goc-gh__dd-head { font-family: var(--goc-font-display); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--goc-steel); margin: 6px 10px; }
.goc-gh__dd-empty { color: var(--goc-steel); font-size: 0.84rem; margin: 6px 10px 10px; }
.goc-gh__logout { border-top: 1px solid rgba(139, 147, 161, 0.15); margin-top: 4px; }

/* ── Actiuni dreapta ───────────────────────────────────────────── */
.goc-gh__actions { display: flex; align-items: center; gap: clamp(0.6rem, 1.5vw, 1.1rem); flex: none; margin-left: auto; }
.goc-gh__login { color: var(--goc-steel); text-decoration: none; font-size: 0.88rem; white-space: nowrap; }
.goc-gh__login:hover { color: var(--goc-text); }
.goc-gh__cta { padding: 0.55rem 1.3rem; font-size: 0.72rem; }

/* Pecetea Ratacitorului: prezenta calma, nu banner */
.goc-gh__seal {
	font-family: var(--goc-font-display); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--goc-gold); text-decoration: none; white-space: nowrap;
	border: 1px solid var(--goc-gold-dark); border-radius: var(--goc-radius);
	padding: 0.42rem 0.85rem;
	transition: color var(--goc-dur-micro) linear, border-color var(--goc-dur-micro) linear, box-shadow var(--goc-dur-micro) linear;
}
.goc-gh__seal:hover { color: var(--goc-gold-bright); border-color: var(--goc-gold); box-shadow: var(--goc-glow-gold); }

/* XP compact (120px) */
.goc-gh__xp { width: 120px; }
.goc-gh__xp-rank { display: block; font-family: var(--goc-font-display); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--goc-gold-bright); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goc-gh__xp-bar { display: block; height: 5px; background: rgba(139, 147, 161, 0.18); border-radius: 2px; overflow: hidden; }
.goc-gh__xp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--goc-gold-dark), var(--goc-gold-bright)); }

.goc-gh__flame { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--goc-steel); }
.goc-gh__flame.is-lit { color: var(--goc-text); }
.goc-gh__flame .goc-flame { display: inline-block; transform-origin: 50% 90%; animation: goc-flicker 2.2s ease-in-out infinite alternate; }
@keyframes goc-flicker { from { transform: scale(1) rotate(-1deg); opacity: 0.9; } to { transform: scale(1.08) rotate(1.5deg); opacity: 1; } }

/* Clopotelul (MI-02) */
.goc-gh__bell > button { position: relative; background: none; border: none; cursor: pointer; font-size: 1.15rem; padding: 4px; }
.goc-gh__bell-count {
	position: absolute; top: -2px; right: -4px;
	background: var(--goc-crimson-soft); color: var(--goc-text);
	font-size: 0.62rem; font-weight: 700; line-height: 1;
	padding: 3px 5px; border-radius: 8px;
}
.goc-gh__bell.has-new .goc-gh__bell-wing { display: inline-block; transform-origin: 50% 30%; animation: goc-flap 500ms ease-in-out 2; }
@keyframes goc-flap { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg) scaleX(0.85); } 65% { transform: rotate(8deg) scaleX(1.06); } }
.goc-gh__bell-panel { min-width: 320px; max-height: 380px; overflow-y: auto; }
.goc-gh__bell-item { padding: 9px 12px; border-left: 2px solid var(--goc-gold-dark); margin: 4px 6px; }
.goc-gh__bell-item strong { display: block; font-size: 0.84rem; color: var(--goc-text); }
.goc-gh__bell-item span { font-size: 0.78rem; color: var(--goc-steel); }
.goc-gh__bell-item.sev-warning { border-color: var(--goc-warn); }
.goc-gh__bell-item.sev-critical { border-color: var(--goc-crimson-soft); }

/* Avatar / blazon */
.goc-gh__avatar > button { background: none; border: 2px solid var(--goc-gold-dark); border-radius: 50%; padding: 0; cursor: pointer; width: 38px; height: 38px; overflow: hidden; display: grid; place-items: center; transition: border-color var(--goc-dur-micro) linear, box-shadow var(--goc-dur-micro) linear; }
.goc-gh__avatar > button:hover { border-color: var(--goc-gold); box-shadow: var(--goc-glow-gold); }
.goc-gh__avatar img { width: 100%; height: 100%; object-fit: cover; }
.goc-gh__avatar-fallback { color: var(--goc-gold); font-size: 1.05rem; line-height: 1; }

/* ── Burger + meniul mobil full-screen ─────────────────────────── */
.goc-gh__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.goc-gh__burger span { display: block; width: 22px; height: 2px; background: var(--goc-gold); margin: 5px 0; transition: transform 250ms var(--goc-ease-enter), opacity 150ms linear; }
.goc-gh__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.goc-gh__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.goc-gh__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.goc-gh__mobile:not([open]) { display: none; }
.goc-gh__mobile {
	/* dimensionat in unitati de viewport + centrare prin text-align:
	   imun la containing block-uri si la stiluri mostenite de flow */
	position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; z-index: 69;
	box-sizing: border-box;
	background: var(--goc-bg-abyss);
	display: flex; flex-direction: column; justify-content: flex-start;
	padding: 0 0 max(24px, env(safe-area-inset-bottom));
	overflow-y: auto; overscroll-behavior: contain;
}
.goc-gh__mobile::backdrop { background: var(--goc-bg-abyss); }
.goc-gh__mobile-top {
	position: sticky; top: 0; z-index: 1; flex: none;
	display: flex; justify-content: flex-end; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
	background: var(--goc-bg-abyss);
}
.goc-gh__mobile-close {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	max-width: 100%; min-height: 44px; padding: 8px 12px;
	font: 1rem/1.3 var(--goc-font-ui); color: var(--goc-gold-bright);
	background: none; border: 1px solid var(--goc-gold-dark); border-radius: var(--goc-radius); cursor: pointer;
}
.goc-gh__mobile-close span { flex: none; }
.goc-gh__mobile :focus-visible, .goc-gh__burger:focus-visible { outline: 2px solid var(--goc-gold-bright); outline-offset: -3px; }
.goc-gh__mobile nav { width: 100%; margin: 0; padding: 0; flex: none; }
.goc-gh__mobile a {
	display: block; width: 100%; box-sizing: border-box; text-align: center; margin: 0;
	font-family: var(--goc-font-display); font-size: 1.35rem; letter-spacing: 0.06em;
	color: var(--goc-text); text-decoration: none; padding: 10px 0;
	overflow-wrap: anywhere; scroll-margin-top: var(--goc-menu-top-height, 64px);
	opacity: 0; transform: translateY(16px);
}
.goc-gh__mobile.is-open a { opacity: 1; transform: none; transition: opacity 260ms linear, transform 320ms var(--goc-ease-enter); }
.goc-gh__mobile a:nth-child(1) { transition-delay: 40ms; }
.goc-gh__mobile a:nth-child(2) { transition-delay: 100ms; }
.goc-gh__mobile a:nth-child(3) { transition-delay: 160ms; }
.goc-gh__mobile a:nth-child(4) { transition-delay: 220ms; }
.goc-gh__mobile a:nth-child(5) { transition-delay: 280ms; }
.goc-gh__mobile a:nth-child(6) { transition-delay: 340ms; }
.goc-gh__mobile a:nth-child(7) { transition-delay: 400ms; }
.goc-gh__mobile a:hover { color: var(--goc-gold-bright); }
.goc-gh__mobile .goc-gh__mobile-cta { position: static; width: calc(100% - 48px); margin: 24px 24px 0; flex: none; text-align: center; }
.goc-gh__mobile a[aria-current], .goc-gh__mega a[aria-current] strong { color: var(--goc-gold-bright); }

@media (max-width: 1100px) {
	.goc-gh__nav, .goc-gh__actions { display: none; }
	.goc-gh__burger { display: block; }
	.goc-gh__logo { width: 160px; }
}
.goc-gh.is-compact .goc-gh__nav, .goc-gh.is-compact .goc-gh__actions { display: none; }
.goc-gh.is-compact .goc-gh__burger { display: block; }
.goc-gh.is-compact .goc-gh__logo { width: 160px; }

@media (max-width: 390px) {
	.goc-gh__inner { padding-inline: 0.8rem; }
	.goc-gh__logo { width: 150px; }
}

/* Compensare: continutul nu sta sub headerul fix. Valorile implicite = înălțimea
   reală măsurată (93 desktop / 84 mobil), ca JS-ul să nu mai mute pagina la încărcare. */
:root { --goc-header-height: 93px; }
@media (max-width: 1100px) { :root { --goc-header-height: 84px; } }
body.goc-citadel-focus { --goc-header-height: 0px; }
body.goc-has-header { padding-top: var(--goc-header-height, 58px); }
body.goc-has-header.goc-lp-body { padding-top: 0; } /* LP: hero-ul e full-bleed sub header transparent */

/* ── Footer global ─────────────────────────────────────────────── */
.goc-gf { background: var(--goc-bg-abyss); border-top: 1px solid rgba(138, 109, 29, 0.2); font-family: var(--goc-font-ui); position: relative; }
.goc-gf__cols {
	max-width: 1100px; margin: 0 auto;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--goc-sp-5);
	padding: var(--goc-sp-6) clamp(1rem, 4vw, 2rem) var(--goc-sp-4);
}
.goc-gf nav { display: flex; flex-direction: column; gap: 0.55em; }
.goc-gf__h { font-family: var(--goc-font-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--goc-steel); margin: 0 0 4px; }
.goc-gf nav a { color: var(--goc-text); opacity: 0.75; text-decoration: none; font-size: 0.88rem; transition: opacity var(--goc-dur-micro) linear, color var(--goc-dur-micro) linear; }
.goc-gf nav a:hover { opacity: 1; color: var(--goc-gold-bright); }
.goc-gf__base {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	padding: var(--goc-sp-3) clamp(1rem, 4vw, 2rem) var(--goc-sp-4);
	color: var(--goc-steel); font-size: 0.78rem;
	border-top: 1px solid rgba(139, 147, 161, 0.08);
}
.goc-gf--short .goc-gf__base { border-top: none; }
.goc-gf__logo { display: block; width: 172px; height: auto; flex: none; opacity: 0.78; }
.goc-gf__base p { margin: 0; }
@media (max-width: 600px) {
	.goc-gf__base { flex-wrap: wrap; justify-content: flex-start; }
	.goc-gf__base p { flex-basis: 100%; }
}
.goc-gf .goc-s9__raven { position: static; background: none; border: none; color: var(--goc-steel); opacity: 0.4; cursor: pointer; padding: 4px; transition: opacity var(--goc-dur-micro) linear, transform var(--goc-dur-micro) var(--goc-ease-enter); }
.goc-gf .goc-s9__raven:hover { opacity: 0.95; }
.goc-gf .goc-s9__raven.is-croaking { transform: translateY(-3px) rotate(-6deg); color: var(--goc-gold); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.goc-gh, .goc-gh__mobile a, .goc-gh__dd-panel, .goc-gh__burger span { transition: none; }
	.goc-gh__flame .goc-flame, .goc-gh__bell.has-new .goc-gh__bell-wing { animation: none; }
	.goc-gh__mobile a { opacity: 1; transform: none; }
}

/* ── Pass-ul de adancime pe header (F3) ────────────────────────── */
.goc-gh__dd-panel { box-shadow: var(--goc-shadow-float, 0 32px 80px rgba(26,8,10,0.7)); border-color: rgba(201, 162, 39, 0.22); }
/* Ciocul panoului: romb taiat, in ton cu motivul casei */
.goc-gh__dd-panel::before {
	content: "";
	position: absolute; top: -5px; right: 18px;
	width: 10px; height: 10px;
	background: var(--goc-bg-chamber);
	border-left: 1px solid rgba(201, 162, 39, 0.22);
	border-top: 1px solid rgba(201, 162, 39, 0.22);
	transform: rotate(45deg);
}
.goc-gh__nav .goc-gh__dd-panel::before { right: auto; left: 22px; }
.goc-gh__dd-icon { color: var(--goc-gold); display: inline-flex; }
.goc-gh__avatar-fallback { color: var(--goc-gold); display: inline-flex; }
.goc-gh__bell-wing { display: inline-flex; color: var(--goc-steel); }
.goc-gh__bell > button:hover .goc-gh__bell-wing { color: var(--goc-gold-bright); }

/* Feedback #88: MEGA MENIUL — tot regatul, grupat. */
.goc-gh__inner { position: relative; } /* ancora mega meniului */
.goc-gh__mega-dd { position: static; }
.goc-gh__mega-btn { background: transparent; border: 0; cursor: pointer; color: inherit; font: inherit; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.goc-gh__mega-btn span { font-size: 0.7em; transition: transform 180ms ease; }
.goc-gh__mega-dd.is-open .goc-gh__mega-btn span { transform: rotate(180deg); }
.goc-gh__nav .goc-gh__dd-panel.goc-gh__mega { left: 50%; right: auto; width: min(880px, calc(100vw - 40px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 20px 22px; transform: translateX(-50%) translateY(6px); }
.goc-gh__dd.is-open .goc-gh__dd-panel.goc-gh__mega { transform: translateX(-50%) translateY(0); }
.goc-gh__mega-head { margin: 0 0 8px; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--goc-gold, #C9A227); }
.goc-gh__mega a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; transition: background 140ms linear; }
.goc-gh__mega a:hover { background: rgba(201, 162, 39, 0.08); }
.goc-gh__mega a strong { display: block; color: var(--goc-parchment, #EAE0C8); font-weight: 600; font-size: 0.9rem; }
.goc-gh__mega a span { display: block; color: var(--goc-steel, #8B93A1); font-size: 0.76rem; line-height: 1.4; margin-top: 1px; }
.goc-gh__mobile-head { margin: 14px 0 2px; padding-inline: 16px; text-align: center; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--goc-gold, #C9A227); }
@media (max-width: 1100px) {
	.goc-gh__mega-dd { display: none; } /* sub 1100px, totul e în meniul mobil */
}

/* Intrarea gratuită în funnel, direct din nav (analiza A-Z §2.2 pct. 11). */
.goc-gh__nav .goc-gh__free { color: var(--goc-gold-bright, #E8C547); }
