/* media.css - imagery, video and gallery components for Techomaxx public pages */

.media-frame {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-lg, 16px);
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.08));
	aspect-ratio: 16 / 10;
	background: #f2f2f2;
}

.media-frame img,
.media-frame svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.media-frame:hover img,
.media-frame:hover svg {
	transform: scale(1.04);
}

.media-frame.media-square { aspect-ratio: 1 / 1; }
.media-frame.media-wide { aspect-ratio: 21 / 9; }
.media-frame.media-tall { aspect-ratio: 3 / 4; }

.video-section {
	position: relative;
	border-radius: var(--radius-lg, 20px);
	overflow: hidden;
	background: var(--color-dark, #0d1117);
	padding: 0;
	box-shadow: var(--shadow-lg, 0 20px 50px rgba(0,0,0,0.25));
}

.video-section video {
	width: 100%;
	display: block;
	max-height: 520px;
	object-fit: cover;
	background: #000;
}

.video-section .video-play-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 84px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.35);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	transition: transform 0.3s ease, background 0.3s ease;
	pointer-events: auto;
}

.video-section .video-play-badge:hover {
	transform: translate(-50%, -50%) scale(1.08);
	background: rgba(255,255,255,0.3);
}

.video-section .video-caption {
	padding: 1.5rem 2rem 2rem;
	color: #fff;
}

.image-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

@media (max-width: 992px) {
	.image-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
	.image-gallery { grid-template-columns: repeat(2, 1fr); }
}

.image-gallery figure {
	margin: 0;
}

.image-gallery figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--color-muted, #667085);
	text-align: center;
}

.avatar-circle {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid var(--color-accent, #6c5ce7);
	box-shadow: var(--shadow-sm, 0 4px 12px rgba(0,0,0,0.1));
}

.avatar-circle img,
.avatar-circle svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.logo-tile svg { max-width: 100%; height: auto; }
.tech-badge-3d { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; background: #fff; border-radius: var(--radius-lg, 16px); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; transform-style: preserve-3d; }
.tech-badge-3d:hover { box-shadow: var(--shadow-md); }
.tech-badge-3d span { font-size: 12.5px; font-weight: 600; color: var(--color-text-light); }

.logo-tile {
	background: #fff;
	border-radius: var(--radius-md, 12px);
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: var(--shadow-sm, 0 4px 12px rgba(0,0,0,0.06));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	min-height: 120px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.logo-tile img {
	max-width: 100%;
	max-height: 60px;
	filter: grayscale(100%);
	opacity: 0.75;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.1));
}

.logo-tile:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

.badge-flag {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	background: var(--color-light, #f5f5fb);
	border: 1px solid rgba(0,0,0,0.06);
	color: var(--color-dark, #1a1a2e);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.badge-flag:hover {
	background: var(--color-accent, #6c5ce7);
	color: #fff;
	transform: translateY(-2px);
}

.cities-teaser-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
