/* 
 * Collapsomatic Tabs - 2 Column UI
 */

.wb-tabs {
	display: flex;
	flex-direction: column;
	gap: var(--wb-space-6);
	width: 100%;
}

@media (min-width: 900px) {
	.wb-tabs {
		flex-direction: row;
		align-items: flex-start;
		gap: var(--wb-space-8);
	}
}

/* --- Left Column: Tab Navigation --- */
.wb-tabs__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	background: var(--wb-surface-100);
	border: 1px solid var(--wb-surface-200);
	border-radius: var(--wb-radius-lg);
	padding: var(--wb-space-3);
}

@media (min-width: 900px) {
	.wb-tabs__nav {
		width: 380px;
		flex-shrink: 0;
		position: sticky;
		top: 120px; /* offset for sticky header */
	}
}

.wb-tabs__btn {
	display: flex;
	align-items: center;
	gap: var(--wb-space-3);
	width: 100%;
	text-align: left;
	padding: var(--wb-space-3) var(--wb-space-4);
	background: transparent;
	border: 1px solid transparent;
	border-left: 2px solid transparent;
	border-radius: var(--wb-radius-md);
	color: var(--wb-text-secondary);
	font-family: var(--wb-font-heading);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wb-tabs__btn-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	color: var(--wb-text-tertiary);
	transition: color 0.2s ease;
}

.wb-tabs__btn:hover {
	background: var(--wb-surface-200);
	color: var(--wb-text-primary);
}

.wb-tabs__btn:hover .wb-tabs__btn-icon {
	color: var(--wb-text-secondary);
}

.wb-tabs__btn.is-active {
	background: rgba(var(--wb-primary-500-rgb), 0.1);
	border-left-color: var(--wb-primary-500);
	color: var(--wb-text-primary);
	font-weight: 600;
}

.wb-tabs__btn.is-active .wb-tabs__btn-icon {
	color: var(--wb-primary-500);
}

/* --- Right Column: Content Panels --- */
.wb-tabs__content {
	flex: 1;
	min-width: 0;
}

.wb-tabs__panel {
	display: none;
	background: var(--wb-surface-100);
	border: 1px solid var(--wb-surface-200);
	border-radius: var(--wb-radius-lg);
	padding: var(--wb-space-6);
	animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wb-tabs__panel.is-active {
	display: block;
}

.wb-tabs__panel-image {
	width: 100%;
	height: 240px;
	border-radius: var(--wb-radius-md);
	overflow: hidden;
	margin-bottom: var(--wb-space-6);
	position: relative;
	border: 1px solid var(--wb-surface-300);
}

@media (min-width: 900px) {
	.wb-tabs__panel-image {
		height: 320px;
	}
}

.wb-tabs__panel-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wb-tabs__panel-text {
	color: var(--wb-text-secondary);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.wb-tabs__panel-text p {
	margin-bottom: var(--wb-space-4);
}

.wb-tabs__panel-text p:last-child {
	margin-bottom: 0;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
