/*
 * OGA Mini App v109002 · assets/css/ogace-header-v109001.css
 * ============================================================================
 * Header CSS — UPGRADED to match oga-header-v109001-redesign.html exactly.
 * Uses the same design tokens, Syne + DM Sans + DM Mono fonts, and
 * the full gold/G-layer colour system from the redesign file.
 *
 * Breakpoints:
 *   ≥ 1024px   — PC / Desktop
 *   768–1023px — iPad / Tablet
 *   < 768px    — Mobile
 *   < 480px    — Small mobile
 */

/* ══════════════════════════════════════════════════════════════════════════
   STICKY WRAPPER
   ══════════════════════════════════════════════════════════════════════════ */
.oga-header-wrap {
	position: sticky;
	top: 0;
	z-index: 200;
	width: 100%;
	background: var(--bg0, #0a0a0c);
	border-bottom: 1px solid var(--line2, rgba(255,255,255,0.10));
	box-shadow: 0 1px 0 var(--line1, rgba(255,255,255,0.06)),
	            inset 0 1px 0 var(--line1, rgba(255,255,255,0.06));
	isolation: isolate;
}

/* ── Inner max-width container ── */
.oga-header-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 28px;
}
@media (max-width: 1023px) { .oga-header-inner { padding: 0 18px; } }
@media (max-width: 767px)  { .oga-header-inner { padding: 0 14px; } }

/* ══════════════════════════════════════════════════════════════════════════
   LAYER 1 · TOP BAR
   ══════════════════════════════════════════════════════════════════════════ */
.oga-topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 60px;
	border-bottom: 1px solid var(--line1, rgba(255,255,255,0.06));
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 28px;
	box-sizing: border-box;
}
@media (max-width: 1023px) { .oga-topbar { padding: 0 18px; } }
@media (max-width: 767px)  { .oga-topbar { padding: 0 14px; gap: 8px; position: relative; } }

/* ── Hamburger ── */
.oga-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4.5px;
	width: 36px;
	height: 36px;
	background: var(--bg2, #18181d);
	border: 1px solid var(--line2, rgba(255,255,255,0.10));
	border-radius: var(--r8, 8px);
	cursor: pointer;
	padding: 10px 9px;
	flex-shrink: 0;
	transition: background 0.15s, border-color 0.15s;
}
.oga-hamburger:hover {
	background: var(--bg3, #1f1f26);
	border-color: var(--line3, rgba(255,255,255,0.16));
}
.oga-hamburger span {
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--fg1, #c8c6be);
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}
.oga-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.oga-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.oga-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Logo ── */
.oga-logo-block {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	text-decoration: none;
	outline-offset: 4px;
}
.oga-logo-mark {
	width: 36px;
	height: 36px;
	border-radius: var(--r8, 8px);
	background: var(--gold, #c9a227);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--display, 'Syne', sans-serif);
	font-weight: 800;
	font-size: 12px;
	color: #0a0a0c;
	letter-spacing: -0.03em;
	flex-shrink: 0;
}
.oga-logo-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.oga-logo-name {
	font-family: var(--display, 'Syne', sans-serif);
	font-size: 14px;
	font-weight: 700;
	color: var(--fg0, #f5f4f0);
	letter-spacing: -0.02em;
	white-space: nowrap;
	line-height: 1.2;
}
.oga-logo-sub {
	font-family: var(--mono, 'DM Mono', monospace);
	font-size: 9px;
	color: var(--fg3, #585650);
	letter-spacing: 0.06em;
}

/* ── Search bar ── */
.oga-search-bar {
	flex: 1;
	min-width: 0;
	max-width: 520px;
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--bg2, #18181d);
	border: 1px solid var(--line2, rgba(255,255,255,0.10));
	border-radius: var(--r12, 12px);
	padding: 8px 14px;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.oga-search-bar:focus-within {
	border-color: rgba(201,162,39,0.4);
	box-shadow: 0 0 0 3px var(--gold-dim, rgba(201,162,39,0.14));
}
.oga-search-bar svg, .oga-search-icon {
	flex-shrink: 0;
	color: var(--fg3, #585650);
	width: 15px;
	height: 15px;
	font-size: 14px;
	line-height: 1;
}
.oga-search-bar input[type="search"],
.oga-search-bar input[type="text"] {
	background: transparent;
	border: none;
	outline: none;
	color: var(--fg0, #f5f4f0);
	font-family: var(--sans, 'DM Sans', sans-serif);
	font-size: 13px;
	flex: 1;
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
}
.oga-search-bar input::placeholder { color: var(--fg3, #585650); }

/* ── Top-bar actions ── */
.oga-topbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

/* Mobile search toggle — hidden on PC/iPad */
.oga-search-toggle { display: none; }

/* Icon buttons (cart, notifications, search) */
.oga-icon-btn {
	width: 36px;
	height: 36px;
	background: var(--bg2, #18181d);
	border: 1px solid var(--line2, rgba(255,255,255,0.10));
	border-radius: var(--r8, 8px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
	text-decoration: none;
	color: var(--fg1, #c8c6be);
	font-size: 15px;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.oga-icon-btn:hover {
	background: var(--bg3, #1f1f26);
	border-color: var(--line3, rgba(255,255,255,0.16));
	color: var(--fg0, #f5f4f0);
}
.oga-icon-btn svg { width: 15px; height: 15px; }

/* Cart badge */
.oga-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--gold, #c9a227);
	color: #0a0a0c;
	font-family: var(--mono, 'DM Mono', monospace);
	font-size: 8px;
	font-weight: 500;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--bg0, #0a0a0c);
}

/* Connect CTA */
.oga-connect-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	background: var(--gold, #c9a227);
	color: #0a0a0c;
	font-family: var(--display, 'Syne', sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: var(--r8, 8px);
	text-decoration: none;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
}
.oga-connect-btn:hover { opacity: 0.88; color: #0a0a0c; }
.oga-connect-btn:active { transform: scale(0.97); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE EXPANDED SEARCH
   ══════════════════════════════════════════════════════════════════════════ */
.oga-search-expanded {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bg1, #111114);
	border-bottom: 1px solid var(--line2, rgba(255,255,255,0.10));
	padding: 10px 14px;
	z-index: 50;
}
.oga-search-expanded.is-open { display: flex; }
.oga-search-expanded .oga-search-bar {
	flex: 1;
	max-width: 100%;
	border-radius: var(--r8, 8px);
}

/* ══════════════════════════════════════════════════════════════════════════
   SHARED SCROLL STRIP
   ══════════════════════════════════════════════════════════════════════════ */
.oga-strip {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	align-items: center;
}
.oga-strip::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYER 2 · PILLAR CHIPS
   ══════════════════════════════════════════════════════════════════════════ */
.oga-pillars-wrap,
.oga-pillars-strip-wrap {
	border-bottom: 1px solid var(--line1, rgba(255,255,255,0.06));
}
.oga-pillars-strip {
	height: 46px;
	padding: 0 28px 0 26px;
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
}

.oga-pillar-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: var(--r6, 6px);
	background: transparent;
	border: 1px solid transparent;
	font-size: 12px;
	font-family: var(--sans, 'DM Sans', sans-serif);
	color: var(--fg2, #8a887f);
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
	flex-shrink: 0;
}
.oga-pillar-chip:hover {
	background: var(--bg2, #18181d);
	border-color: var(--line2, rgba(255,255,255,0.10));
	color: var(--fg0, #f5f4f0);
}
.oga-pillar-chip.active {
	background: var(--gold-dim, rgba(201,162,39,0.14));
	border-color: var(--gold-glow, rgba(201,162,39,0.22));
	color: var(--gold, #c9a227);
}
.oga-pillar-chip .chip-icon { font-size: 13px; line-height: 1; }

.oga-pillar-label { /* shown on ≥ 480px */ }

.oga-pillar-d {
	font-family: var(--mono, 'DM Mono', monospace);
	font-size: 9px;
	color: var(--fg3, #585650);
	letter-spacing: 0.04em;
}
.oga-pillar-d.new {
	color: var(--g6, #d4537e);
	font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYER 3 · NETWORKS STRIP
   ══════════════════════════════════════════════════════════════════════════ */
.oga-networks-strip {
	height: 40px;
	padding: 0 28px 0 26px;
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
}

.oga-network-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: var(--r6, 6px);
	font-size: 11px;
	font-family: var(--mono, 'DM Mono', monospace);
	font-weight: 500;
	letter-spacing: 0.04em;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: opacity 0.12s, transform 0.1s;
	flex-shrink: 0;
}
.oga-network-tag:hover { opacity: 0.75; transform: translateY(-1px); }
.oga-network-tag .net-icon { font-size: 12px; line-height: 1; }

/* G-layer colours — matches header redesign exactly */
.oga-network-tag--g0, .oga-network-tag.g0 { background: var(--g0-bg); color: var(--g0); border-color: var(--g0-bd); }
.oga-network-tag--g1, .oga-network-tag.g1 { background: var(--g1-bg); color: var(--g1); border-color: var(--g1-bd); }
.oga-network-tag--g2, .oga-network-tag.g2 { background: var(--g2-bg); color: var(--g2); border-color: var(--g2-bd); }
.oga-network-tag--g3, .oga-network-tag.g3 { background: var(--g3-bg); color: var(--g3); border-color: var(--g3-bd); }
.oga-network-tag--g4, .oga-network-tag.g4 { background: var(--g4-bg); color: var(--g4); border-color: var(--g4-bd); }
.oga-network-tag--g5, .oga-network-tag.g5 { background: var(--g5-bg); color: var(--g5); border-color: var(--g5-bd); }
.oga-network-tag--g6, .oga-network-tag.g6 { background: var(--g6-bg); color: var(--g6); border-color: var(--g6-bd); }
.oga-network-tag--g7, .oga-network-tag.g7 { background: var(--g7-bg); color: var(--g7); border-color: var(--g7-bd); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE DRAWER
   ══════════════════════════════════════════════════════════════════════════ */
.oga-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 288px;
	max-width: 88vw;
	height: 100vh;
	background: var(--bg1, #111114);
	border-right: 1px solid var(--line2, rgba(255,255,255,0.10));
	z-index: 500;
	transform: translateX(-100%);
	transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--line2) transparent;
	display: flex;
	flex-direction: column;
}
.oga-mobile-drawer.is-open { transform: translateX(0); }

.oga-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line2, rgba(255,255,255,0.10));
	flex-shrink: 0;
}
.oga-drawer-title {
	font-family: var(--display, 'Syne', sans-serif);
	font-size: 13px;
	font-weight: 700;
	color: var(--gold, #c9a227);
	letter-spacing: -0.01em;
}
.oga-drawer-close {
	background: var(--bg2, #18181d);
	border: 1px solid var(--line2, rgba(255,255,255,0.10));
	color: var(--fg2, #8a887f);
	width: 28px;
	height: 28px;
	border-radius: var(--r6, 6px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: pointer;
	transition: color 0.12s, background 0.12s;
}
.oga-drawer-close:hover {
	color: var(--fg0, #f5f4f0);
	background: var(--bg3, #1f1f26);
}

.oga-drawer-nav { padding: 8px 0 40px; flex: 1; }
.oga-drawer-section-label {
	font-family: var(--mono, 'DM Mono', monospace);
	font-size: 8px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--fg3, #585650);
	padding: 16px 18px 6px;
}
.oga-drawer-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px;
	font-size: 13px;
	color: var(--fg1, #c8c6be);
	text-decoration: none;
	transition: background 0.1s, color 0.1s;
}
.oga-drawer-item:hover {
	background: var(--bg2, #18181d);
	color: var(--fg0, #f5f4f0);
}

/* Drawer overlay */
.oga-drawer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	z-index: 490;
	opacity: 0;
	transition: opacity 0.26s;
}
.oga-drawer-overlay.is-open { display: block; opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE · iPad 768–1023px
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
	.oga-search-bar { max-width: 340px; }
	.oga-connect-btn { padding: 7px 14px; font-size: 11px; }
	.oga-logo-name { font-size: 13px; }
	.oga-pillars-strip,
	.oga-networks-strip { padding-left: 18px; padding-right: 18px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE · Mobile < 768px
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
	.oga-hamburger { display: flex; }
	.oga-search-bar { display: none; }
	.oga-search-toggle { display: inline-flex; }
	.oga-logo-sub { display: none; }
	.oga-logo-mark { width: 32px; height: 32px; font-size: 11px; }
	.oga-logo-name { font-size: 13px; }
	.oga-pillar-chip { padding: 5px 9px; }
	.oga-network-tag { padding: 3px 8px; font-size: 10px; }
	.oga-connect-btn { padding: 7px 11px; font-size: 11px; }
	.oga-pillars-strip,
	.oga-networks-strip { padding-left: 12px; padding-right: 12px; gap: 4px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE · Small mobile < 480px
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 479px) {
	.oga-connect-btn { display: none; }
	.oga-pillar-label { display: none; }
	.oga-pillar-chip { padding: 6px 8px; gap: 0; }
	.oga-logo-name { font-size: 12px; }
	.oga-topbar { gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   WP ADMIN BAR OFFSET
   ══════════════════════════════════════════════════════════════════════════ */
.admin-bar .oga-header-wrap { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .oga-header-wrap { top: 46px; }
}
