/*
 * Кастомные стили поверх Bootstrap
 */

:root {
	--tr-grey-100: #f3f4f6;
	--tr-grey-200: #e5e7eb;
	--tr-grey-600: #6c757d;
	--tr-dark: #111827;
}

body {
	font-family: 'Roboto', sans-serif;
	background-color: var(--bs-body-bg);
	color: var(--bs-body-color);
}

/* Header search layout */
.header-search {
	max-width: 720px;
	width: 100%;
}

.header-search .search-form,
.header-search .input-group {
	width: 100%;
}

/* Типографика под bulma-нейминг */
.title {
	color: var(--bs-body-color);
	font-weight: 700;
	line-height: 1.2;
}

.title.is-3 {
	font-size: 1.75rem;
}

.title.is-4 {
	font-size: 1.5rem;
}

.title.is-5 {
	font-size: 1.25rem;
}

.title.is-6 {
	font-size: 1rem;
}

.subtitle {
	color: var(--bs-body-color);
	font-weight: 500;
}

/* Грид columns/column (bulma) */
.columns {
	display: flex;
	flex-wrap: wrap;
	margin-left: -0.75rem;
	margin-right: -0.75rem;
}

.columns.is-centered {
	justify-content: center;
}

.columns.is-multiline {
	flex-wrap: wrap;
}

.columns.is-variable.is-4 > .column {
	padding: 1.25rem;
}

.column {
	padding: 0.75rem;
	flex: 1 1 0;
}

.column.is-half {
	flex: 0 0 50%;
	max-width: 50%;
}

.column.is-one-third {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
}

.column.is-one-third-desktop {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
}

.column.is-one-quarter-widescreen {
	flex: 0 0 25%;
	max-width: 25%;
}

.column.is-8 {
	flex: 0 0 66.6667%;
	max-width: 66.6667%;
}

.column.is-half-tablet {
	flex: 0 0 50%;
	max-width: 50%;
}

.column.is-full-mobile {
	flex: 0 0 100%;
	max-width: 100%;
}

@media (max-width: 767.98px) {
	.column.is-full-mobile {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.column.is-half-tablet,
	.column.is-one-third-desktop,
	.column.is-one-quarter-widescreen {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (min-width: 768px) {
	.column.is-half-tablet {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (min-width: 992px) {
	.column.is-one-third-desktop {
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
	}
}

@media (min-width: 1200px) {
	.column.is-one-quarter-widescreen {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

/* Карточки и контент */
.card {
	border: 0;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card-header {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--tr-grey-200);
}

.card-content {
	padding: 1.25rem;
}

.content {
	color: var(--bs-body-color);
	line-height: 1.6;
}

.video-meta {
	font-size: 0.875rem;
	color: var(--tr-grey-600);
}

/* Breadcrumbs */
.breadcrumb {
	font-size: 0.75rem;
}

/* Video + term card hover effects */
.video-card,
.term-card {
	overflow: visible;
	transition: all 0.25s ease;
}

.video-card:hover,
.term-card:hover {
	background: #f8f9fa;
	box-shadow: 0 0 0 10px #f8f9fa;
}

.video-card .thumb-wrapper img,
.term-card .thumb-wrapper img {
	transition: transform 0.35s ease, filter 0.35s ease;
}

.video-card .thumb-wrapper:hover img,
.term-card .thumb-wrapper:hover img {
	transform: scale(1.06);
	filter: saturate(1.05) brightness(1.03);
}

.video-card .card-title a,
.term-card-title a {
	text-decoration: none;
}

.video-card .card-title a:hover,
.term-card-title a:hover {
	color: var(--bs-primary);
}

.video-list-thumb {
	width: 200px;
}

@media (min-width: 992px) {
	.video-list-thumb {
		width: 130px;
	}
}

a.badge {
	transition: all 0.25s ease;
}

a.badge:hover {
	opacity: 0.8;
}

.device-specs-toggle .device-specs-icon {
	transition: transform 0.2s ease;
	transform: rotate(-90deg);
}

.device-specs-toggle[aria-expanded="true"] .device-specs-icon {
	transform: rotate(0deg);
}

.device-specs-line {
	border-bottom: 1px dashed var(--bs-border-color);
	opacity: 0.6;
	align-self: flex-end;
	margin-bottom: 2px;
}

.term-catalog-icon {
	width: 64px;
	height: 64px;
	font-size: 1.5rem;
	color: var(--bs-primary);
}

.small-xs {
	font-size: 0.75rem;
}

.gadgetube-sidebar-scroll {
	scrollbar-width: thin;
	scrollbar-color: var(--tr-grey-200) transparent;
}

.gadgetube-sidebar-scroll::-webkit-scrollbar {
	width: 4px;
	height: 4px;
}

.gadgetube-sidebar-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.gadgetube-sidebar-scroll::-webkit-scrollbar-thumb {
	background-color: var(--tr-grey-200);
	border-radius: 999px;
	border: 1px solid transparent;
	background-clip: content-box;
}
