/* Timms4Culture — Site Styles */

:root {
	--tfc-primary:   #408697;
	--tfc-accent:    #1ca9c9;
	--tfc-banner-bg: #2a4676;
	--tfc-muted:     dimgray;
}

body {
	background-color: #f7f7f7;
}

main {
	background-color: #f7f7f7;
}

/* Navbar */

.navbar-brand img {
	max-height: 34px;
	width: auto;
}

.navbar .nav-link.active {
	color: var(--tfc-primary) !important;
	font-weight: 600;
}

/* Beta banner */

.beta-banner-container {
	background-color: var(--tfc-banner-bg);
	width: 100%;
	border-radius: 6px;
	padding: 0.4rem;
}

.beta-banner {
	background: linear-gradient(100deg, #fc466b 0%, orange 100%);
	color: #fff;
	border-radius: 5px;
	border-bottom-right-radius: 80%;
	padding: 1em 2em;
	font-size: 1.1em;
}

.beta-banner h2 {
	color: #fff;
	font-weight: 700;
}

/* Video grid */

.av-overview-container {
	display: flex;
	flex-flow: row wrap;
	column-gap: 1rem;
	row-gap: 1rem;
	margin-bottom: 1.5rem;
}

.av-item {
	background-color: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
	padding: 1rem;
}

.av-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

@media (min-width: 720px) {
	.av-item {
		flex: 1 1 calc(33.3333% - 1rem);
		max-width: calc(33.3333% - 1rem);
	}
}

@media (min-width: 1200px) {
	.av-item {
		flex: 1 1 calc(25% - 1rem);
		max-width: calc(25% - 1rem);
	}
}

.av-thumb {
	display: flex;
	background-color: #222;
	align-self: center;
	max-height: 200px;
	position: relative;
	overflow: hidden;
	width: 100%;
	justify-content: center;
}

.av-img-thumbnail {
	max-height: 200px;
	width: auto;
	max-width: 100%;
	object-fit: cover;
}

.av-description-short {
	padding: 1rem 0 0;
}

.av-title {
	font-size: 1rem;
	font-weight: 600;
	height: 3em;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 0.5rem;
}

.av-foreign-ids {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.4rem;
	font-size: 0.85rem;
	margin-bottom: 0.25rem;
	color: #555;
}

.av-foreign-ids > div {
	display: flex;
	align-items: center;
}

.avp-zdv-info {
	font-weight: 300;
	font-size: 0.8rem;
	color: var(--tfc-muted);
	margin-bottom: 0.5rem;
}

/* Category title */

.category-title {
	width: 100%;
	color: var(--tfc-muted);
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #ccc;
	padding-bottom: 0.4rem;
	font-size: 1.3rem;
}

.category-title a {
	font-size: 0.9rem;
	color: var(--tfc-primary);
	text-decoration: none;
}

.category-title a:hover {
	text-decoration: underline;
}

/* Media-Type tooltip (kept compatible with old class names) */

.media-tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted #888;
	cursor: help;
}

.media-tooltip .tooltiptext {
	position: absolute;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s;
	width: 200px;
	background-color: rgb(65 132 149 / 0.95);
	color: #f5f5f5;
	text-align: center;
	border-radius: 6px;
	padding: 5px 8px;
	z-index: 10;
	bottom: 140%;
	left: 50%;
	margin-left: -100px;
	font-size: 0.75rem;
	font-weight: 400;
}

.media-tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

/* Go-up button */

.go-up-btn {
	background-color: forestgreen;
	width: 3em;
	height: 3em;
	text-align: center;
	border-radius: 50%;
	color: #fff;
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	cursor: pointer;
	border: none;
	display: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	z-index: 1030;
}

.go-up-btn:hover {
	background-color: #1b6e1b;
}

/* Cookie banner spacing tweak */

#cookieConsent {
	margin-bottom: 1rem;
}
