/**
 * Hub view styles — view toggle wrapper.
 *
 * @package Tobalt_Renginiai
 * @author  Tobalt — https://tobalt.lt
 */

/* ==========================================================================
   Reset — isolate hub from theme styles
   ========================================================================== */

.tcv-hub,
.tcv-hub *,
.tcv-hub *::before,
.tcv-hub *::after {
	font-family: var(--tr-font-family, "Inter", system-ui, -apple-system, sans-serif);
	box-sizing: border-box;
}

.tcv-hub a,
.tcv-hub a:visited,
.tcv-hub a:hover,
.tcv-hub a:focus,
.tcv-hub a:active {
	text-decoration: none;
	color: inherit;
	outline-offset: 2px;
}

.tcv-hub button,
.tcv-hub input[type="button"],
.tcv-hub input[type="submit"],
.tcv-hub input[type="reset"] {
	background: none !important;
	border: none !important;
	color: inherit;
	padding: 0 !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	height: auto !important;
	min-height: 0 !important;
	cursor: pointer;
	border-radius: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.tcv-hub h1,
.tcv-hub h2,
.tcv-hub h3,
.tcv-hub h4,
.tcv-hub h5,
.tcv-hub h6 {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	line-height: inherit;
	border: none;
}

.tcv-hub p {
	margin: 0;
	padding: 0;
}

.tcv-hub ul,
.tcv-hub ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tcv-hub label {
	font-family: inherit !important;
	font-size: inherit;
	color: inherit;
}

/* Base */
.tcv-hub {
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--tr-font-family, "Inter", system-ui, -apple-system, sans-serif);
	color: #000;
}

/* ── Toggle Tabs ─────────────────────────────────────────── */

.tcv-hub .tcv-hub__toggle {
	display: flex;
	gap: 0;
	margin-bottom: 24px;
	border-bottom: 2px solid #E5E7EB;
	align-items: center;
}

.tcv-hub button.tcv-hub__tab {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px;
	padding: 12px 20px !important;
	height: auto !important;
	min-height: 0 !important;
	background: none !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 15px !important;
	font-weight: 500;
	color: #54595F !important;
	transition: color 0.15s, border-color 0.15s;
	border-radius: 0 !important;
	line-height: 1.5 !important;
}

.tcv-hub button.tcv-hub__tab:hover {
	color: #000;
	background: none;
}

.tcv-hub button.tcv-hub__tab.tcv-hub__tab--active {
	color: #000;
	border-bottom-color: var(--tr-color-heading, #003333);
	font-weight: 600;
}

.tcv-hub .tcv-hub__tab svg {
	flex-shrink: 0;
}

.tcv-hub button.tcv-hub__tab:focus {
	outline: 2px solid var(--tr-color-heading, #003333);
	outline-offset: -2px;
}

/* ── Panels ──────────────────────────────────────────────── */

.tcv-hub .tcv-hub__panel {
	animation: tcvHubFadeIn 0.2s ease;
}

@keyframes tcvHubFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* When inside hub, remove duplicate max-width from sub-views */
.tcv-hub .tcv-wrapper,
.tcv-hub .tcv-grid {
	max-width: none;
}
