/* Instructions section: standalone below tabs (not inside accordion) */

.altec-instructions-section {
	width: 100%;
	margin-top: 2em;
	margin-bottom: 2em;
	color: #fff;
}

/* Product title remains red on product pages where Instructions appear */
.single-product .product_title.entry-title {
	color: #c00;
}

.altec-instructions-section-title {
	margin: 0 0 1em;
	font-size: 1.5em;
	color: #fff;
}

.altec-instructions-section .altec-pdf-label {
	color: #fff;
}

/* Instructions: PDF cards with document preview and download overlay */

.altec-instructions-tab .altec-pdf-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1em;
}

.altec-instructions-tab .altec-pdf-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 140px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease;
}

.altec-instructions-tab .altec-pdf-card:hover {
	transform: translateY(-2px);
}

.altec-instructions-tab .altec-pdf-preview {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 100%);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.altec-instructions-tab .altec-pdf-preview-doc {
	position: absolute;
	inset: 12%;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.altec-instructions-tab .altec-pdf-preview-doc::before {
	content: '';
	position: absolute;
	top: 8%;
	left: 50%;
	transform: translateX(-50%);
	width: 30%;
	height: 4px;
	background: #bbb;
	border-radius: 1px;
}

.altec-instructions-tab .altec-pdf-preview-doc::after {
	content: '';
	position: absolute;
	top: 20%;
	left: 12%;
	right: 12%;
	height: 50%;
	background: linear-gradient(to bottom, #ddd 0%, #ddd 20%, transparent 20%, transparent 35%, #ddd 35%, #ddd 50%, transparent 50%, transparent 65%, #ddd 65%, #ddd 80%, transparent 80%);
}

.altec-instructions-tab .altec-pdf-download-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease;
}

.altec-instructions-tab .altec-pdf-card:hover .altec-pdf-download-overlay {
	background: rgba(0, 0, 0, 0.45);
}

.altec-instructions-tab .altec-pdf-download-overlay::before {
	content: '';
	width: 48px;
	height: 48px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.altec-instructions-tab .altec-pdf-label {
	display: block;
	margin-top: 0.5em;
	font-size: 0.875rem;
	text-align: center;
	line-height: 1.3;
	word-break: break-word;
}

/* Videos section: below tabs, before related products */

.altec-videos-section {
	width: 100%;
	margin-top: 2em;
	margin-bottom: 2em;
}

.altec-videos-section-title {
	margin: 0 0 1em;
	font-size: 1.5em;
	color: #fff;
}

.altec-videos-tab {
	margin-top: 1em;
}

.altec-video-shorts-carousel {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.5rem 0;
	-webkit-overflow-scrolling: touch;
}

.altec-video-short-preview {
	flex: 0 0 auto;
	display: block;
	position: relative;
	width: 180px;
	aspect-ratio: 9 / 16;
	border-radius: 12px;
	overflow: hidden;
	scroll-snap-align: start;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.altec-video-short-preview:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.altec-video-short-thumb {
	display: block;
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
}

.altec-video-short-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.altec-video-short-thumb.altec-video-short-placeholder {
	background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.altec-video-short-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	transition: background 0.2s ease;
}

.altec-video-short-preview:hover .altec-video-short-play {
	background: rgba(0, 0, 0, 0.4);
}

.altec-video-short-play::before {
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 24px 0 24px 40px;
	border-color: transparent transparent transparent #fff;
	margin-left: 8px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
