/* ==========================================================================
   AI fogalomtár (/ai-fogalomtar/, 2026-09-23)
   Az euact.css hero- és szekcióelemeire épül (eu-hero, eu-sum, eu-sec, eu-next),
   azzal együtt töltődik be. Mért szabvány: h3 22/600 → 19/600, kártya
   var(--aicv-pad) 34/20 px, sorhossz max. ~72 karakter.
   ========================================================================== */

.wp-block-post-content > .gl-tools,
.wp-block-post-content > .gl-list { margin-block: 0; }

/* ---- Hero: népszerű fogalmak ---- */
.gl-pop__list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gl-pop__list a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--aicv-navy);
	background: var(--aicv-ice);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.gl-pop__list a:hover { background: var(--aicv-blue); color: #fff; }

/* ---- Kereső sáv (tapad) ---- */
.gl-tools {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 14px 0 10px;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid #E1E3EE;
}
.gl-tools__row { display: flex; align-items: center; gap: 16px; }
.gl-search { position: relative; flex: 1 1 auto; max-width: 620px; }
.gl-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--aicv-slate); pointer-events: none; }
.gl-search input {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 0 18px 0 46px;
	border-radius: 999px;
	border: 1px solid #D5D9E8;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--aicv-navy);
}
.gl-search input::placeholder { color: #8A90A6; }
.gl-search input:focus { outline: none; border-color: var(--aicv-blue); box-shadow: 0 0 0 3px rgba(63, 89, 255, .2); }
.gl-count { margin: 0; font-size: 14px; color: var(--aicv-slate); white-space: nowrap; font-variant-numeric: tabular-nums; }

.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gl-chip {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid #D5D9E8;
	background: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--aicv-slate);
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.gl-chip:hover { border-color: var(--aicv-blue); color: var(--aicv-navy); }
.gl-chip[aria-pressed="true"] { background: var(--aicv-navy); border-color: var(--aicv-navy); color: #fff; font-weight: 600; }
.gl-chip:focus-visible { outline: 2px solid var(--aicv-blue); outline-offset: 2px; }

.gl-letters { display: flex; gap: 2px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.gl-letters::-webkit-scrollbar { display: none; }
.gl-letters a {
	flex: none;
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--aicv-royal);
	text-decoration: none;
}
.gl-letters a:hover { background: var(--aicv-ice); }
.gl-letters a.is-empty { color: #C3C7D6; }

/* ---- Lista ---- */
.gl-list { padding-top: clamp(32px, 4vw, 56px); }
.gl-group { scroll-margin-top: 190px; }
.gl-group + .gl-group { margin-top: clamp(28px, 3.5vw, 44px); }
.gl-group__letter {
	margin: 0 0 16px;
	font-size: clamp(30px, 3.6vw, 48px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.015em;
	background: var(--aicv-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.gl-group__letter::after { content: ""; display: block; height: 1px; margin-top: 14px; background: #E1E3EE; }

.gl-term {
	max-width: 900px;
	padding: var(--aicv-pad);
	border-radius: var(--aicv-r);
	background: #fff;
	border: 1px solid #E1E3EE;
	scroll-margin-top: 200px;
	transition: box-shadow .3s ease, border-color .3s ease;
}
.gl-term + .gl-term { margin-top: 12px; }
.gl-term.is-flash { border-color: var(--aicv-blue); box-shadow: 0 0 0 4px rgba(63, 89, 255, .15); }
.gl-term__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.gl-term__name { margin: 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--aicv-navy); }
.gl-term__topic { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gl-topic--alapok { color: #2868CD; background: #EAF1FC; }
.gl-topic--eszkozok { color: #5B4BD1; background: #EFEDFD; }
.gl-topic--adat { color: #1D7A55; background: #E7F6EF; }
.gl-topic--kockazat { color: #BB4243; background: #FDECEC; }
.gl-topic--bevezetes { color: #A25B17; background: #FCF1E4; }
.gl-topic--folyamat { color: #0D7780; background: #E3F5F6; } /* 2026-09-23: Folyamatok téma */
.gl-term__alt { margin: 4px 0 0 !important; font-size: 13.5px; color: #6B7189; }
.gl-term__one { margin: 14px 0 0 !important; max-width: 72ch; font-size: clamp(16px, 1.25vw, 18px); font-weight: 500; line-height: 1.55 !important; color: var(--aicv-navy); }
.gl-term__body { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.gl-term__body p { max-width: 72ch; font-size: 15.5px; line-height: 1.6 !important; color: var(--aicv-slate); }
.gl-term__body strong { color: var(--aicv-navy); font-weight: 600; }
.gl-term__warn { padding-left: 14px; border-left: 3px solid var(--aicv-coral); }
.gl-term__act { padding: 10px 14px; border-radius: 12px; background: var(--aicv-ice); }
.gl-term__rel { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid #EEF0F6; font-size: 14px; line-height: 1.8 !important; color: #6B7189; }
.gl-term__rel span { font-weight: 600; color: var(--aicv-slate); margin-right: 4px; }
.gl-term__rel a { color: var(--aicv-royal); text-decoration: none; border-bottom: 1px solid rgba(41, 107, 210, .3); }
.gl-term__rel a:hover { border-bottom-color: var(--aicv-royal); }
.gl-term__rel a.gl-term__go { font-weight: 600; }

.gl-empty { max-width: 900px; padding: var(--aicv-pad); border-radius: var(--aicv-r); background: var(--aicv-ice); }
.gl-empty__title { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; color: var(--aicv-navy); }
.gl-empty p + p { margin-top: 8px !important; color: var(--aicv-slate); }
.gl-empty a { color: var(--aicv-royal); font-weight: 600; }
.gl-note { margin-top: clamp(28px, 3.5vw, 44px) !important; }
.gl-note a { color: var(--aicv-royal); }

@media (max-width: 760px) {
	.gl-tools__row { flex-direction: column; align-items: stretch; gap: 6px; }
	.gl-count { font-size: 13px; }
	.gl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; padding-left: 4px; }
	.gl-chips::-webkit-scrollbar { display: none; }
	.gl-chip { flex: none; }
	.gl-group, .gl-term { scroll-margin-top: 230px; }
}
@media (prefers-reduced-motion: reduce) {
	.gl-term, .gl-pop__list a, .gl-chip { transition: none; }
}

/* Hivatalos forrás a gyártóspecifikus fogalmaknál (2026-09-23) */
.gl-term__rel a.gl-term__src { color: #6B7189; font-weight: 500; border-bottom-color: rgba(107, 113, 137, .3); }
.gl-term__rel a.gl-term__src:hover { color: var(--aicv-navy); border-bottom-color: var(--aicv-navy); }
