/* 반드시 CLAUDE.md의 절대원칙을 읽고 따를 것, 하나의 클래스/모듈은 하나의 책임만 가져야 함 (SRP 원칙), 하나의 파일에 코드줄은 최대 500~600줄 내에서 생성하여야 하며 최대 코드줄이 넘어가지 않도록 작성, 만약 코드가 길어지면 분할해서 코드작업을 완성하여야 함 */
/* 영상/VR보기 섹션 스타일 */
/* 문서 위치: X:\web\theunjeong\docs\FRONTEND_VR_SECTION_GUIDE.md */

/* ===== 1. VR 섹션 전체 레이아웃 ===== */
.vr-section {
	padding: 100px 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: relative;
}

.vr-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.vr-section .section-title {
	color: white;
}

.vr-section .section-subtitle {
	color: rgba(255,255,255,0.9);
}

/* ===== 2. 콘텐츠 그리드 레이아웃 (홍보영상 1개 + VR 1개) ===== */
.vr-content {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 2열 균등 배치 */
	gap: 40px;
	margin-top: 60px;
}

.vr-video,
.vr-tour {
	width: 100%;
}

/* ===== 3. 카드 공통 스타일 ===== */
.vr-card,
.video-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vr-card:hover,
.video-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ===== 4. 썸네일 이미지 영역 ===== */
.vr-thumbnail,
.video-thumbnail {
	position: relative;
	width: 100%;
	height: 280px;
	overflow: hidden;
	cursor: pointer;
}

.vr-thumbnail img,
.video-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.vr-card:hover img,
.video-card:hover img {
	transform: scale(1.1);
}

/* ===== 5. 플레이 오버레이 (재생 버튼) ===== */
.play-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70px;
	height: 70px;
	background: rgba(255,255,255,0.95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.play-overlay i {
	font-size: 28px;
	color: #667eea;
	margin-left: 4px; /* 플레이 아이콘 중앙 보정 */
}

.vr-card:hover .play-overlay,
.video-card:hover .play-overlay {
	background: white;
	transform: translate(-50%, -50%) scale(1.15);
}

/* ===== 6. VR 준비중 배지 ===== */
.play-overlay.coming-soon {
	background: rgba(100, 100, 100, 0.9);
	cursor: not-allowed;
}

.play-overlay.coming-soon i {
	color: rgba(255,255,255,0.8);
	margin-left: 0;
}

.coming-soon-badge {
	position: absolute;
	bottom: -35px;
	left: 50%;
	transform: translateX(-50%);
	background: #ff6b6b;
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(255,107,107,0.4);
}

/* ===== 7. 카드 텍스트 영역 ===== */
.vr-card h3,
.video-card h3 {
	padding: 24px 24px 10px;
	font-size: 22px;
	font-weight: 700;
	color: #333;
}

.vr-card p,
.video-card p {
	padding: 0 24px 24px;
	font-size: 15px;
	color: #666;
	line-height: 1.6;
}

/* ===== 8. 버튼 스타일 ===== */
.vr-btn,
.video-btn {
	display: block;
	width: calc(100% - 48px);
	margin: 0 24px 24px;
	padding: 14px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.vr-btn:hover,
.video-btn:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* VR 준비중 버튼 (비활성화) */
.vr-btn:disabled {
	background: linear-gradient(135deg, #ccc 0%, #999 100%);
	cursor: not-allowed;
	opacity: 0.7;
}

.vr-btn:disabled:hover {
	transform: none;
	box-shadow: none;
}

/* ===== 9. 하단 주의사항 ===== */
.vr-notice {
	margin-top: 60px;
	padding: 20px;
	background: rgba(255,255,255,0.1);
	border-radius: 8px;
	text-align: center;
}

.vr-notice p {
	color: rgba(255,255,255,0.9);
	font-size: 14px;
	margin: 0;
}

/* ===== 10. 유튜브 모달 레이어 ===== */
.youtube-modal {
	display: none; /* 기본 숨김 */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.youtube-modal.active {
	display: flex;
	opacity: 1;
}

/* 모달 콘텐츠 컨테이너 */
.youtube-modal-content {
	position: relative;
	width: 90%;
	max-width: 1200px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
	animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* 모달 닫기 버튼 */
.youtube-modal-close {
	position: absolute;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255,255,255,0.95);
	border: none;
	border-radius: 50%;
	color: #333;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10001;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.youtube-modal-close:hover {
	background: white;
	transform: translateX(-50%) scale(1.1);
	box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* 유튜브 iframe 래퍼 */
.youtube-iframe-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
}

.youtube-iframe-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ===== 11. 반응형 디자인 (모바일) ===== */
@media (max-width: 768px) {
	.vr-section {
		padding: 60px 0;
	}

	.vr-content {
		grid-template-columns: 1fr; /* 1열로 변경 */
		gap: 30px;
		margin-top: 10px; /* 헤더와의 간격 대폭 축소 (60px → 10px) */
	}

	.vr-thumbnail,
	.video-thumbnail {
		height: 220px;
	}

	.youtube-modal-content {
		width: 95%;
	}

	.youtube-modal-close {
		top: 30px;
		left: 50%;
		transform: translateX(-50%);
		width: 44px;
		height: 44px;
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.vr-content {
		margin-top: 8px; /* 헤더와의 간격 대폭 축소 (60px → 8px) */
	}

	.vr-card h3,
	.video-card h3 {
		font-size: 18px;
		padding: 20px 20px 8px;
	}

	.vr-card p,
	.video-card p {
		font-size: 14px;
		padding: 0 20px 20px;
	}

	.vr-btn,
	.video-btn {
		font-size: 15px;
		padding: 12px;
	}
}
