/* ============================================================
   03 — BUTTONS, CONTAINERS & QUICKLINKS
   ============================================================
   Purpose:  Button system (primary, outline, hero), glass slab
             container, and quicklinks page-section navigator
   Depends:  01-Core Tokens & Base Layout
   Updated:  2026-03-18
   Merged:   Button and Container Design + Quicklinks

   TABLE OF CONTENTS:
   PART A — BUTTONS & CONTAINERS
     1.  Button Base (primary + outline)
     2.  Primary Button
     3.  Outline Button
     4.  Hero Buttons Layout
     5.  Glass Slab Container
     6.  Container Left Edge
     7.  Container Top Edge
     8.  Container Bottom + Right Borders
     9.  Container Hover
     10. Container Light Mode
     11. Container Dark Mode
     12. Container Responsive

   PART B — QUICKLINKS
     13. Quicklinks Bar (sticky below header)
     14. Quicklinks List
     15. Quicklinks Items
     16. Active / Current Section Highlight
     17. Optional Label
     18. Quicklinks Responsive
   ============================================================ */


/* ************************************************************
   PART A — BUTTONS & CONTAINERS
   ************************************************************ */

.btn-primary,
.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;

	padding: 0.7rem 1.5rem;
	min-height: 44px; /* accessibility */
	border-radius: var(--radius-pill);

	font-weight: 700;
	font-size: 1rem;
	line-height: 1;

	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;

	box-sizing: border-box;
	transition:
		background var(--anim-fast),
		transform var(--anim-fast),
		box-shadow var(--anim-fast),
		filter var(--anim-fast);
}
/* PRIMARY — action / submit / apply */

.btn-primary {
	background: linear-gradient(
		135deg,
		#0a6bff 0%,
		#0066cc 45%,
		#004a9f 100%
	);

	color: #ffffff !important;

	border: 1px solid rgba(255,255,255,0.25);

	box-shadow:
		0 6px 18px rgba(0,0,0,0.35),
		inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
	filter: brightness(1.08) saturate(1.05);
	transform: translateY(-1px);

	box-shadow:
		0 10px 28px rgba(0,0,0,0.45),
		inset 0 1px 0 rgba(255,255,255,0.35);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow:
		0 4px 12px rgba(0,0,0,0.4),
		inset 0 2px 6px rgba(0,0,0,0.35);
}
/* SECONDARY — learn more / alternate */

.btn-outline {
	background: linear-gradient(
		135deg,
		rgba(255,255,255,0.22),
		rgba(255,255,255,0.08)
	);

	color: #ffffff !important;

	border: 1px solid rgba(255,255,255,0.6);

	box-shadow:
		0 4px 14px rgba(0,0,0,0.35),
		inset 0 0 18px rgba(255,255,255,0.2);

	backdrop-filter: blur(6px);
}

.btn-outline:hover {
	background: rgba(255,255,255,0.28);
	transform: translateY(-1px);

	box-shadow:
		0 6px 20px rgba(0,0,0,0.45),
		inset 0 0 22px rgba(255,255,255,0.35);
}
.hero-buttons {
	display: flex;
	gap: 0.9rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ============================================================
   GPRS GLASS SLAB CONTAINER — BACK TO BASICS, IMPROVED
   Your original design with clear top + left borders
============================================================ */

.gprs-container-styled {
	position: relative;
	z-index: 1;

	max-width: 1200px;
	margin: 2rem auto;
	padding: 2.5rem 2rem;

	/* Smooth rounded corners */
	border-radius: 14px;
	overflow: hidden;

	/* Glass face with subtle gradient */
	background:
		linear-gradient(
			135deg,
			rgba(255,255,255,0.10),
			rgba(255,255,255,0.03)
		),
		linear-gradient(
			315deg,
			rgba(0,102,204,0.14),
			transparent
		);

	/* Enhanced depth with multiple shadows */
	box-shadow:
		/* Main depth */
		0 18px 48px rgba(0,0,0,0.60),
		/* Top highlight */
		inset 0 1px 0 rgba(255,255,255,0.20),
		/* Bottom-right glow (exit point) */
		inset -1px -1px 20px rgba(255,255,255,0.15);

	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

/* ============================================================
   LEFT EDGE — DARK ENTRY POINT
   Seamless rounded corner integration
============================================================ */

.gprs-container-styled::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 14px; /* Match border thickness exactly */

	pointer-events: none;
	z-index: 10;

	/* Match parent radius for seamless blend */
	border-radius: 14px 0 0 14px;

	/* Smooth gradient: dark entry → blue middle → lighter exit */
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.50) 0%,
		rgba(0,0,0,0.38) 12%,
		rgba(0,0,0,0.25) 25%,
		rgba(0,102,204,0.40) 45%,
		rgba(0,102,204,0.28) 65%,
		rgba(0,102,204,0.18) 85%,
		rgba(0,102,204,0.10) 100%
	);
}

/* ============================================================
   TOP EDGE — DARK ENTRY POINT
   Seamless rounded corner integration
============================================================ */

.gprs-container-styled::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 14px; /* Match border thickness exactly */

	pointer-events: none;
	z-index: 11;

	/* Match parent radius for seamless blend */
	border-radius: 14px 14px 0 0;

	/* Smooth gradient: dark entry → blue middle → lighter exit */
	background: linear-gradient(
		to right,
		rgba(0,0,0,0.50) 0%,
		rgba(0,0,0,0.38) 12%,
		rgba(0,0,0,0.25) 25%,
		rgba(0,102,204,0.40) 45%,
		rgba(0,102,204,0.28) 65%,
		rgba(0,102,204,0.18) 85%,
		rgba(0,102,204,0.10) 100%
	);

	/* Subtle polish line */
	box-shadow:
		inset 0 -1px 0 rgba(255,255,255,0.12);
}

/* ============================================================
   BOTTOM + RIGHT LIGHT EXIT BORDERS
============================================================ */

.gprs-container-styled {
	/* Light reflective exit edges */
	border-bottom: 2px solid rgba(255,255,255,0.35);
	border-right: 2px solid rgba(255,255,255,0.30);
}

/* ============================================================
   HOVER STATE — ENHANCED DEPTH
============================================================ */

.gprs-container-styled:hover {
	transform: translateY(-3px);
	box-shadow:
		/* Deeper shadow on hover */
		0 28px 64px rgba(0,0,0,0.70),
		/* Brighter highlight */
		inset 0 1px 0 rgba(255,255,255,0.25),
		/* More pronounced glow */
		inset -2px -2px 25px rgba(255,255,255,0.20);
}

/* ============================================================
   LIGHT MODE ADJUSTMENTS
============================================================ */

html:not(.gprs-dark) .gprs-container-styled {
	/* Softer background for light mode */
	background:
		linear-gradient(
			135deg,
			rgba(255,255,255,0.65),
			rgba(255,255,255,0.40)
		),
		linear-gradient(
			315deg,
			rgba(0,102,204,0.18),
			transparent
		);

	/* Softer shadow */
	box-shadow:
		0 12px 36px rgba(0,0,0,0.25),
		inset 0 1px 0 rgba(255,255,255,0.60),
		inset -1px -1px 15px rgba(255,255,255,0.40);

	/* More visible borders in light mode */
	border-bottom-color: rgba(0,102,204,0.25);
	border-right-color: rgba(0,102,204,0.20);
}

html:not(.gprs-dark) .gprs-container-styled::before {
	/* FLIPPED: Light ends overlap in corner, dark at bottom */
	background: linear-gradient(
		to bottom,
		rgba(0,102,204,0.06) 0%,
		rgba(0,102,204,0.12) 15%,
		rgba(0,102,204,0.18) 35%,
		rgba(0,102,204,0.28) 55%,
		rgba(0,0,0,0.12) 75%,
		rgba(0,0,0,0.18) 88%,
		rgba(0,0,0,0.25) 100%
	);
}

html:not(.gprs-dark) .gprs-container-styled::after {
	/* FLIPPED: Light ends overlap in corner, dark at right */
	background: linear-gradient(
		to right,
		rgba(0,102,204,0.06) 0%,
		rgba(0,102,204,0.12) 15%,
		rgba(0,102,204,0.18) 35%,
		rgba(0,102,204,0.28) 55%,
		rgba(0,0,0,0.12) 75%,
		rgba(0,0,0,0.18) 88%,
		rgba(0,0,0,0.25) 100%
	);
}

/* ============================================================
   DARK MODE ENHANCEMENTS
============================================================ */

html.gprs-dark .gprs-container-styled {
	background:
		linear-gradient(
			135deg,
			rgba(255,255,255,0.12),
			rgba(255,255,255,0.04)
		),
		linear-gradient(
			315deg,
			rgba(0,102,204,0.25),
			transparent
		);

	box-shadow:
		0 20px 56px rgba(0,0,0,0.85),
		inset 0 1px 0 rgba(255,255,255,0.15),
		inset -1px -1px 22px rgba(255,255,255,0.08);
}

html.gprs-dark .gprs-container-styled::before {
	/* Deeper blacks for dark mode */
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.65) 0%,
		rgba(0,0,0,0.52) 12%,
		rgba(0,0,0,0.38) 25%,
		rgba(0,102,204,0.48) 45%,
		rgba(0,102,204,0.35) 65%,
		rgba(0,102,204,0.22) 85%,
		rgba(0,102,204,0.12) 100%
	);
}

html.gprs-dark .gprs-container-styled::after {
	/* Deeper blacks for dark mode */
	background: linear-gradient(
		to right,
		rgba(0,0,0,0.65) 0%,
		rgba(0,0,0,0.52) 12%,
		rgba(0,0,0,0.38) 25%,
		rgba(0,102,204,0.48) 45%,
		rgba(0,102,204,0.35) 65%,
		rgba(0,102,204,0.22) 85%,
		rgba(0,102,204,0.12) 100%
	);
}

html.gprs-dark .gprs-container-styled:hover {
	box-shadow:
		0 28px 72px rgba(0,0,0,0.90),
		inset 0 1px 0 rgba(255,255,255,0.20),
		inset -2px -2px 28px rgba(255,255,255,0.12);
}

/* ============================================================
   RESPONSIVE — EDGE THINNING
============================================================ */

@media (max-width: 768px) {
	.gprs-container-styled {
		padding: 1.75rem 1.5rem;
		border-radius: 12px;
	}

	.gprs-container-styled::before {
		width: 11px;
		border-radius: 12px 0 0 12px;
	}

	.gprs-container-styled::after {
		height: 11px;
		border-radius: 12px 12px 0 0;
	}
}

@media (max-width: 480px) {
	.gprs-container-styled {
		padding: 1.5rem 1.25rem;
		border-radius: 10px;
	}

	.gprs-container-styled::before {
		width: 9px;
		border-radius: 10px 0 0 10px;
	}

	.gprs-container-styled::after {
		height: 9px;
		border-radius: 10px 10px 0 0;
	}
}


/* ************************************************************
   PART B — QUICKLINKS
   ************************************************************ */

/* ============================================================
   QUICKLINKS BAR — STICKY BELOW HEADER
============================================================ */
.gprs-quicklinks {
	position: sticky;
	top: var(--header-height);
	z-index: calc(var(--z-header) - 1);
	width: 100%;

	/* Frosted glass — matches header aesthetic */
	background: rgba(15, 30, 60, 0.70);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);

	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);

	/* Horizontal scroll on overflow */
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;

	/* Hide scrollbar but keep functionality */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.gprs-quicklinks::-webkit-scrollbar {
	display: none;
}

/* Light mode */
html:not(.gprs-dark) .gprs-quicklinks {
	background: rgba(227, 242, 253, 0.85);
	border-bottom: 1px solid rgba(0, 102, 204, 0.12);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Admin bar compensation */
.admin-bar .gprs-quicklinks {
	top: calc(var(--header-height) + 32px);
}

@media (max-width: 782px) {
	.admin-bar .gprs-quicklinks {
		top: calc(var(--header-height) + 46px);
	}
}

/* ============================================================
   QUICKLINKS LIST
============================================================ */
.gprs-quicklinks-list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	max-width: var(--max-content-width);
	margin: 0 auto;
	padding: 0.5rem 1.5rem;
	list-style: none;
	white-space: nowrap;
}

/* ============================================================
   QUICKLINKS ITEMS
============================================================ */
.gprs-quicklinks-list a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1rem;
	border-radius: var(--radius-sm);

	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	font-size: 0.88rem;
	text-decoration: none;
	white-space: nowrap;

	background: transparent;
	border: 1px solid transparent;

	transition:
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;

	/* Minimum touch target */
	min-height: 40px;
}

/* Light mode link color */
html:not(.gprs-dark) .gprs-quicklinks-list a {
	color: var(--clr-text-body);
}

/* Hover */
.gprs-quicklinks-list a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

html:not(.gprs-dark) .gprs-quicklinks-list a:hover {
	background: rgba(0, 102, 204, 0.08);
	color: var(--clr-accent);
}

/* ============================================================
   ACTIVE / CURRENT SECTION HIGHLIGHT
   JS adds .ql-active to the link whose section is in view.
============================================================ */
.gprs-quicklinks-list a.ql-active {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-weight: 600;
	border-color: rgba(255, 255, 255, 0.25);
}

html:not(.gprs-dark) .gprs-quicklinks-list a.ql-active {
	background: rgba(0, 102, 204, 0.10);
	color: var(--clr-accent);
	border-color: rgba(0, 102, 204, 0.20);
}

/* ============================================================
   OPTIONAL LABEL (e.g. "Jump to:")
   Add <span class="gprs-ql-label">Jump to:</span> as
   first child in the list for a visual cue.
============================================================ */
.gprs-ql-label {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.5rem 0.45rem 0;
	color: rgba(255, 255, 255, 0.50);
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	white-space: nowrap;
	user-select: none;
}

html:not(.gprs-dark) .gprs-ql-label {
	color: rgba(0, 0, 0, 0.40);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
	.gprs-quicklinks {
		top: 65px;
	}

	.gprs-quicklinks-list {
		padding: 0.4rem 1rem;
		gap: 0.15rem;
	}

	.gprs-quicklinks-list a {
		font-size: 0.84rem;
		padding: 0.4rem 0.85rem;
	}
}

@media (max-width: 480px) {
	.gprs-quicklinks {
		top: 60px;
	}

	.gprs-quicklinks-list {
		padding: 0.35rem 0.75rem;
	}

	.gprs-quicklinks-list a {
		font-size: 0.82rem;
		padding: 0.38rem 0.75rem;
		min-height: 38px;
	}
}