/* ═══════════════════════════════════════════════════════════════════════
   category.css — public categories list (/category).

   Block: .gg-cl  (Category List)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Body / page wrapper ─────────────────────────────────────────────── */
.gg-cl-body{ background: var(--gg-off-white, #FAFAFA); }
.gg-cl-body::before{
	content: ""; position: fixed; inset: 0;
	background:
		radial-gradient(1100px 460px at 8% -8%, rgba(237,41,56,.06), transparent 70%),
		radial-gradient(900px 420px at 110% 12%, rgba(237,41,56,.04), transparent 75%);
	pointer-events: none; z-index: 0;
}
.gg-cl{ width: 100%; padding: 22px 28px 32px; position: relative; z-index: 1; }
@media (max-width: 700px){ .gg-cl{ padding: 14px 14px 48px; } }

/* ── Atoms ───────────────────────────────────────────────────────────── */
.gg-cl__eyebrow{
	display: inline-flex; align-items: center; gap: 7px;
	font-family: var(--gg-font-head);
	font-size: var(--gg-text-2xs, 11px);
	font-weight: 700;
	color: var(--gg-red, #ED2938);
	letter-spacing: .14em; text-transform: uppercase;
	margin-bottom: 6px;
}
.gg-cl__eyebrow i{ font-size: 13px; }
.gg-cl__eyebrow--light{ color: rgba(255,255,255,.82); }
.gg-cl__eyebrow--light i{ color: #fff; }

.gg-cl__btn{
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px;
	border-radius: 12px;
	font-family: var(--gg-font-head);
	font-size: var(--gg-text-xs, 12px);
	font-weight: 700;
	letter-spacing: .04em;
	white-space: nowrap;
	transition: all 200ms ease;
}
.gg-cl__btn i{ transition: transform 200ms ease; }
.gg-cl__btn--white{
	background: #fff;
	color: var(--gg-red-deep, #B91C28);
	box-shadow: 0 10px 26px -10px rgba(0,0,0,.4);
}
.gg-cl__btn--white:hover{ transform: translateY(-1px); }
.gg-cl__btn--white:hover i{ transform: translateX(2px); }

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.gg-cl__crumbs{ margin-bottom: clamp(14px, 2vw, 20px); }
.gg-cl__crumbs-list{
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-family: var(--gg-font-head);
	font-size: var(--gg-text-xs, 12px);
	font-weight: 600;
	color: var(--gg-gray-500, #6B7280);
}
.gg-cl__crumbs-list li{ display: inline-flex; align-items: center; gap: 8px; }
.gg-cl__crumbs-list li:not(:last-child)::after{ content: "/"; color: var(--gg-gray-300, #D1D5DB); font-weight: 500; }
.gg-cl__crumbs-list a{ color: var(--gg-gray-500, #6B7280); transition: color 180ms ease; }
.gg-cl__crumbs-list a:hover{ color: var(--gg-red-deep, #B91C28); }
.gg-cl__crumbs-list span[aria-current]{ color: var(--gg-gray-800, #1F2937); }

/* ── Compact header ──────────────────────────────────────────────────── */
.gg-cl__head{
	position: relative;
	overflow: hidden;
	border-radius: var(--gg-r-xl, 16px);
	padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 28px);
	margin-bottom: clamp(14px, 2vw, 20px);
	background:
		radial-gradient(ellipse at top left, rgba(237,41,56,.08) 0%, transparent 55%),
		radial-gradient(ellipse at bottom right, rgba(237,41,56,.05) 0%, transparent 55%),
		var(--gg-white, #fff);
	border: 1px solid var(--gg-gray-200, #E5E7EB);
	box-shadow: 0 1px 2px rgba(237,41,56,.04), 0 4px 14px rgba(237,41,56,.05);
}
.gg-cl__head-glow{
	position: absolute; top: -60px; right: -50px;
	width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(circle, var(--gg-red-glow, rgba(237,41,56,.18)), transparent 60%);
	filter: blur(20px); pointer-events: none;
}
.gg-cl__head-inner{
	position: relative;
	display: flex; align-items: center; justify-content: space-between;
	gap: clamp(20px, 3vw, 40px); flex-wrap: wrap;
}
.gg-cl__head-text{ min-width: 0; flex: 1 1 380px; }
.gg-cl__head-title{
	font-family: var(--gg-font-head);
	font-size: clamp(var(--gg-text-xl, 22px), 2.4vw, var(--gg-text-3xl, 30px));
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.025em;
	color: var(--gg-black, #0A0A0A);
	margin: 0 0 6px;
}
.gg-cl__head-accent{ color: var(--gg-red, #ED2938); }
.gg-cl__head-sub{
	font-family: var(--gg-font-body);
	font-size: var(--gg-text-sm, 13px);
	color: var(--gg-gray-600, #4B5563);
	line-height: 1.55;
	margin: 0;
	max-width: 540px;
}
.gg-cl__head-stats{
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 10px 22px;
}
.gg-cl__head-stats li{ display: inline-flex; align-items: center; gap: 10px; }
.gg-cl__head-stat-ico{
	display: inline-grid; place-items: center;
	width: 36px; height: 36px;
	border-radius: 10px;
	background: var(--gg-red-light, #FFF1F2);
	color: var(--gg-red, #ED2938);
	font-size: 16px;
}
.gg-cl__head-stats span:nth-child(2){ display: inline-flex; flex-direction: column; line-height: 1.1; }
.gg-cl__head-stats strong{
	font-family: var(--gg-font-head);
	font-size: var(--gg-text-lg, 18px);
	font-weight: 800;
	color: var(--gg-black, #0A0A0A);
	letter-spacing: -.02em;
}
.gg-cl__head-stats small{
	font-family: var(--gg-font-head);
	font-size: 10px;
	color: var(--gg-gray-500, #6B7280);
	letter-spacing: .04em; text-transform: uppercase;
	font-weight: 600;
}
@media (max-width: 860px){
	.gg-cl__head-inner{ align-items: flex-start; }
	.gg-cl__head-stats{
		width: 100%; gap: 14px 20px; margin-top: 14px; padding-top: 14px;
		border-top: 1px dashed var(--gg-gray-200, #E5E7EB);
	}
}

/* ── Category cards grid ─────────────────────────────────────────────── */
.gg-cl__grid{
	list-style: none; padding: 0; margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.6vw, 20px);
}
@media (max-width: 1200px){ .gg-cl__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .gg-cl__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .gg-cl__grid{ grid-template-columns: 1fr; } }

.gg-cl__card{
	position: relative;
	display: flex; flex-direction: column;
	background: var(--gg-white, #fff);
	border: 1px solid var(--gg-gray-200, #E5E7EB);
	border-radius: 18px;
	overflow: hidden;
	color: inherit;
	box-shadow: 0 1px 2px rgba(15,23,42,.04);
	transition: transform 320ms cubic-bezier(.16,1,.3,1), box-shadow 320ms ease;
}
.gg-cl__card::after{
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, var(--gg-red, #ED2938), var(--gg-red-deep, #B91C28));
	transform: scaleX(0); transform-origin: left;
	transition: transform 380ms cubic-bezier(.16,1,.3,1);
	z-index: 3;
}
.gg-cl__card:hover{
	transform: translateY(-4px);
	box-shadow: 0 1px 2px rgba(237,41,56,.06), 0 22px 38px -18px rgba(237,41,56,.22);
}
.gg-cl__card:hover::after{ transform: scaleX(1); }

.gg-cl__card-media{
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--gg-gray-100, #F3F4F6);
}
.gg-cl__card-media img{
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.03);
	transition: transform 900ms cubic-bezier(.16,1,.3,1), filter 320ms ease;
}
.gg-cl__card:hover .gg-cl__card-media img{ transform: scale(1.08); filter: saturate(1.06); }
.gg-cl__card-veil{
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(10,10,10,.18) 0%, rgba(10,10,10,.36) 100%),
		linear-gradient(135deg, rgba(237,41,56,.15) 0%, rgba(0,0,0,0) 50%);
}
.gg-cl__card-ico{
	position: absolute; bottom: 12px; left: 12px;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--gg-red, #ED2938), var(--gg-red-deep, #B91C28));
	color: #fff;
	font-size: 22px;
	box-shadow: 0 8px 18px -8px rgba(237,41,56,.55);
}

.gg-cl__card-body{
	padding: 16px 18px 18px;
	display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.gg-cl__card-title{
	margin: 0;
	font-family: var(--gg-font-head);
	font-size: var(--gg-text-lg, 18px);
	font-weight: 800;
	color: var(--gg-black, #0A0A0A);
	letter-spacing: -.02em;
}
.gg-cl__card-short{
	margin: 0;
	font-family: var(--gg-font-body);
	font-size: var(--gg-text-sm, 13px);
	color: var(--gg-gray-600, #4B5563);
	line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.gg-cl__card-stats{
	list-style: none; padding: 10px 0 0; margin: 4px 0 0;
	border-top: 1px dashed var(--gg-gray-200, #E5E7EB);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}
.gg-cl__card-stats li{ display: flex; flex-direction: column; gap: 1px; line-height: 1.1; min-width: 0; }
.gg-cl__card-stats strong{
	font-family: var(--gg-font-head);
	font-size: 13px;
	font-weight: 800;
	color: var(--gg-black, #0A0A0A);
	letter-spacing: -.01em;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gg-cl__card-stats span{
	font-family: var(--gg-font-head);
	font-size: 9px;
	color: var(--gg-gray-500, #6B7280);
	letter-spacing: .06em; text-transform: uppercase;
	font-weight: 600;
}

.gg-cl__card-cta{
	margin-top: auto;
	display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--gg-gray-50, #F9FAFB);
	border: 1px solid var(--gg-gray-200, #E5E7EB);
	font-family: var(--gg-font-head);
	font-size: 11px; font-weight: 800;
	color: var(--gg-gray-700, #374151);
	letter-spacing: .04em; text-transform: uppercase;
	transition: all 220ms ease;
}
.gg-cl__card-cta i{ font-size: 12px; transition: transform 220ms ease; }
.gg-cl__card:hover .gg-cl__card-cta{
	background: linear-gradient(135deg, var(--gg-red, #ED2938), var(--gg-red-deep, #B91C28));
	color: #fff; border-color: transparent;
}
.gg-cl__card:hover .gg-cl__card-cta i{ transform: translateX(2px); }

/* ── Bottom CTA ──────────────────────────────────────────────────────── */
.gg-cl__cta{
	position: relative;
	overflow: hidden;
	margin-top: clamp(28px, 4vw, 48px);
	border-radius: var(--gg-r-xl, 16px);
	background: linear-gradient(135deg, var(--gg-black, #0A0A0A), var(--gg-black-soft, #141414));
}
.gg-cl__cta-glow{
	position: absolute; inset: 0;
	background:
		radial-gradient(600px 300px at 12% 120%, rgba(237,41,56,.4), transparent 70%),
		radial-gradient(500px 260px at 95% -20%, rgba(237,41,56,.28), transparent 70%);
	pointer-events: none;
}
.gg-cl__cta-inner{
	position: relative;
	display: flex; align-items: center; justify-content: space-between;
	gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
	padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 48px);
}
.gg-cl__cta-title{
	font-family: var(--gg-font-head);
	font-size: clamp(var(--gg-text-xl, 22px), 2.6vw, var(--gg-text-2xl, 28px));
	font-weight: 800; letter-spacing: -.02em;
	color: #fff; margin: 0 0 8px; line-height: 1.15;
}
.gg-cl__cta-sub{
	font-family: var(--gg-font-body);
	font-size: var(--gg-text-base, 15px);
	color: rgba(255,255,255,.72);
	margin: 0; max-width: 520px;
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
	.gg-cl__card, .gg-cl__card-media img, .gg-cl__card-cta i, .gg-cl__card::after{ transition: none !important; animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   Category icon badge — swap the fixed font-icon layout for a centered
   image tile when the category has an uploaded transparent WebP icon.
   ══════════════════════════════════════════════════════════════════════ */
.gg-cl__card-ico--img{
	display: inline-flex; align-items: center; justify-content: center;
	padding: 6px;
	background: rgba(255,255,255,.94);
	backdrop-filter: blur(6px);
}
.gg-cl__card-ico--img img{
	width: 100%; height: 100%; object-fit: contain;
	display: block;
}


/* ══════════════════════════════════════════════════════════════════════
   Empty state — reserved for when the category system is truly empty.
   ══════════════════════════════════════════════════════════════════════ */
.gg-cl__empty{
	padding: 40px 20px;
	text-align: center;
	background: var(--gg-white, #fff);
	border: 1px dashed var(--gg-gray-300, #D1D5DB);
	border-radius: 14px;
	color: var(--gg-gray-600, #4B5563);
}
.gg-cl__empty i{ font-size: 32px; color: var(--gg-gray-400, #9CA3AF); margin-bottom: 10px; display: inline-block; }
.gg-cl__empty h3{ font-family: var(--gg-font-head); font-size: 18px; color: var(--gg-ink, #0F172A); margin: 6px 0; }

/* ══════════════════════════════════════════════════════════════════════
   Pagination + Load-more — mirrors the .gg-blg__pager / .gg-blg__loadmore
   design language on /blog so both listing pages feel identical.
   ══════════════════════════════════════════════════════════════════════ */

/* Range meta — "Showing 1–8 of 15 categories", sits just above the pager */
.gg-cl__pager-meta{
	margin-top: clamp(24px, 4vw, 40px);
	padding-top: clamp(20px, 3vw, 28px);
	border-top: 1px solid var(--gg-gray-200, #E5E7EB);
	font-size: 13px;
	color: var(--gg-gray-600, #4B5563);
	text-align: center;
	margin-bottom: 14px;
}
.gg-cl__pager-meta strong{ color: var(--gg-ink, #0F172A); font-weight: 700; }

.gg-cl__pager{
	display: flex; align-items: center; justify-content: center;
	gap: 6px; flex-wrap: wrap;
}
.gg-cl__pager-btn,
.gg-cl__pager-page{
	box-sizing: border-box;
	height: 38px;
	border-radius: 10px;
	font-family: var(--gg-font-head, 'Outfit', sans-serif);
	font-size: 13px; font-weight: 600;
	line-height: 1;
	transition: all 200ms ease;
}
.gg-cl__pager-btn{
	display: inline-flex; align-items: center; justify-content: center;
	gap: 6px;
	padding: 0 14px;
	border: 1px solid var(--gg-gray-200, #E5E7EB);
	background: var(--gg-white, #fff);
	color: var(--gg-gray-700, #374151);
	white-space: nowrap;
	text-decoration: none;
}
.gg-cl__pager-btn:hover{ border-color: var(--gg-ink, #0F172A); background: var(--gg-ink, #0F172A); color: var(--gg-white, #fff); }
.gg-cl__pager-btn.is-disabled{ opacity: .35; pointer-events: none; }
.gg-cl__pager-btn i{ font-size: 13px; line-height: 1; display: inline-flex; align-items: center; }
.gg-cl__pager-btn--first,
.gg-cl__pager-btn--last{ color: var(--gg-gray-500, #6B7280); }

.gg-cl__pager-pages{
	list-style: none;
	display: flex; align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
	margin: 0; padding: 0;
}
.gg-cl__pager-pages > li{
	display: flex; align-items: center;
	margin: 0; padding: 0;
	list-style: none;
}
.gg-cl__pager-page{
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px;
	padding: 0 10px;
	color: var(--gg-gray-700, #374151);
	border: 1px solid transparent;
	background: transparent;
	text-decoration: none;
}
.gg-cl__pager-page:hover{ background: var(--gg-gray-100, #F3F4F6); color: var(--gg-ink, #0F172A); }
.gg-cl__pager-page.is-current{
	background: var(--gg-red, #ED2938);
	color: var(--gg-white, #fff);
	box-shadow: 0 4px 12px rgba(237,41,56,.4);
}

/* Load more — sits below the numbered pager, hidden without JS since
   the .gg-cl__pager already handles navigation for no-JS visitors. */
.gg-cl__loadmore-wrap{
	display: flex; justify-content: center;
	margin-top: clamp(20px, 3vw, 32px);
}
.no-js .gg-cl__loadmore-wrap{ display: none; }
.gg-cl__loadmore{
	position: relative;
	display: inline-flex; align-items: center; gap: 12px;
	padding: 14px 32px; border-radius: 999px;
	background: var(--gg-ink, #0F172A);
	color: var(--gg-white, #fff);
	border: 0;
	font-family: var(--gg-font-head, 'Outfit', sans-serif);
	font-size: 13px; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 8px 24px -8px rgba(0,0,0,.4);
	transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}
.gg-cl__loadmore-glow{
	position: absolute; left: -40%; top: 50%;
	width: 60%; height: 240%;
	background: radial-gradient(ellipse at center, rgba(237,41,56,.55) 0%, transparent 70%);
	transform: translateY(-50%);
	pointer-events: none;
	transition: left 600ms ease;
}
.gg-cl__loadmore:hover{
	background: var(--gg-red, #ED2938);
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -10px rgba(237,41,56,.55);
}
.gg-cl__loadmore:hover .gg-cl__loadmore-glow{ left: 100%; }
.gg-cl__loadmore[disabled]{ opacity: .65; pointer-events: none; }
.gg-cl__loadmore-spinner{
	width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.3);
	border-top-color: var(--gg-white, #fff);
	display: none;
	animation: gg-cl-spin .7s linear infinite;
}
.gg-cl__loadmore.is-loading .gg-cl__loadmore-spinner{ display: inline-block; }
.gg-cl__loadmore.is-loading .gg-cl__loadmore-label::after{ content: "…"; }
@keyframes gg-cl-spin{ to{ transform: rotate(360deg); } }

/* Freshly-appended cards fade+slide in */
@keyframes gg-cl-newin {
	0%   { opacity: 0; transform: translateY(8px); }
	100% { opacity: 1; transform: translateY(0); }
}
.gg-cl__grid > li.is-new{ animation: gg-cl-newin 400ms cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce){
	.gg-cl__grid > li.is-new{ animation: none; }
}
