/**
 * Mount Athos Section Viewer CSS
 * Cinematic two-panel layout with Ken Burns animation
 */

/* Ken Burns animation */
@keyframes athos-ken-burns {
	0% {
		transform: scale(1) translateX(0) translateY(0);
	}
	50% {
		transform: scale(1.1) translateX(-10px) translateY(-10px);
	}
	100% {
		transform: scale(1) translateX(0) translateY(0);
	}
}

/* Fade in animation */
@keyframes athos-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Slide transition */
@keyframes athos-slide-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Main container */
.athos-section-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Stage */
.athos-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

/* Background with Ken Burns animation */
.athos-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: blur(4px) brightness(0.7);
	z-index: 0;
}

/* Main wrapper */
.athos-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 40px;
	z-index: 10;
	box-sizing: border-box;
	gap: 40px;
}

/* Text card - left panel */
.athos-txtcard {
	flex: 0 1 45%;
	background: rgba(255, 255, 255, 0.95);
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: athos-fade-in 0.6s ease-out;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Gold corner accents */
.athos-txtcard::before,
.athos-txtcard::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 3px solid #d4af37;
}

.athos-txtcard::before {
	top: 0;
	left: 0;
	border-right: none;
	border-bottom: none;
	border-radius: 4px 0 0 0;
}

.athos-txtcard::after {
	bottom: 0;
	right: 0;
	border-left: none;
	border-top: none;
	border-radius: 0 0 0 4px;
}

.athos-txtcard > *:first-child::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 3px solid #d4af37;
	top: 0;
	right: 0;
	border-left: none;
	border-bottom: none;
	border-radius: 0 4px 0 0;
}

.athos-txtcard > *:last-child::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 3px solid #d4af37;
	bottom: 0;
	left: 0;
	border-right: none;
	border-top: none;
	border-radius: 0 0 4px 0;
}

/* Text content */
.athos-txt-content {
	font-size: 18px;
	line-height: 1.6;
	color: #333;
	margin-bottom: 20px;
	animation: athos-slide-in 0.5s ease-out;
	overflow-y: auto;
	max-height: 70%;
	padding-right: 10px;
}

/* Controls */
.athos-controls {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	flex-wrap: wrap;
	margin-top: auto;
}

/* Button styling */
.athos-btn {
	width: 40px;
	height: 40px;
	border: none;
	background: #d4af37;
	color: #000;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	font-size: 20px;
	padding: 0;
	flex-shrink: 0;
}

.athos-btn:hover {
	background: #e8c547;
	transform: scale(1.1);
}

.athos-btn:active {
	transform: scale(0.95);
}

.athos-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.athos-btn.playing,
.athos-btn.muted {
	background: #007cba;
	color: #fff;
}

.athos-btn.playing:hover,
.athos-btn.muted:hover {
	background: #0073aa;
}

/* Image box - right panel */
.athos-imgbox {
	flex: 0 1 45%;
	position: relative;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: athos-fade-in 0.6s ease-out;
}

.athos-imgbox img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Error message */
.athos-error {
	padding: 40px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	text-align: center;
}

/* Responsive design - tablet */
@media (max-width: 1024px) {
	.athos-wrap {
		padding: 30px;
		gap: 30px;
	}

	.athos-txtcard {
		padding: 30px;
		flex: 0 1 50%;
	}

	.athos-imgbox {
		flex: 0 1 50%;
	}

	.athos-txt-content {
		font-size: 16px;
	}

	.athos-btn {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
}

/* Responsive design - mobile */
@media (max-width: 860px) {
	.athos-stage {
		aspect-ratio: auto;
		min-height: 100vh;
	}

	.athos-wrap {
		flex-direction: column;
		padding: 20px;
		gap: 20px;
		justify-content: flex-start;
	}

	.athos-txtcard {
		flex: 0 1 auto;
		width: 100%;
		max-height: 45vh;
		padding: 20px;
	}

	.athos-imgbox {
		flex: 0 1 auto;
		width: 100%;
		height: 40vh;
	}

	.athos-txt-content {
		font-size: 14px;
		line-height: 1.5;
		max-height: 100%;
	}

	.athos-controls {
		gap: 8px;
	}

	.athos-btn {
		width: 32px;
		height: 32px;
		font-size: 16px;
	}

	.athos-btn svg {
		width: 20px;
		height: 20px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.athos-wrap {
		padding: 15px;
		gap: 15px;
	}

	.athos-txtcard {
		padding: 15px;
		max-height: 40vh;
	}

	.athos-imgbox {
		height: 35vh;
	}

	.athos-txt-content {
		font-size: 13px;
	}

	.athos-btn {
		width: 28px;
		height: 28px;
		font-size: 14px;
	}
}

/* Print styles */
@media print {
	.athos-controls {
		display: none;
	}

	.athos-background {
		filter: none;
		opacity: 1;
	}
}

/* Accessibility */
.athos-btn:focus {
	outline: 2px solid #007cba;
	outline-offset: 2px;
}

.athos-section-container:focus-within {
	/* Ensure sections are accessible */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.athos-txtcard {
		background: rgba(30, 30, 30, 0.95);
		color: #f0f0f0;
	}

	.athos-txt-content {
		color: #f0f0f0;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.athos-background,
	.athos-txtcard,
	.athos-imgbox,
	.athos-txt-content {
		animation: none !important;
	}

	.athos-btn {
		transition: background-color 0.2s ease;
	}
}
