/* 반드시 CLAUDE.md의 절대원칙을 읽고 따를 것, 하나의 클래스/모듈은 하나의 책임만 가져야 함 (SRP 원칙), 하나의 파일에 코드줄은 최대 500~600줄 내에서 생성하여야 하며 최대 코드줄이 넘어가지 않도록 작성, 만약 코드가 길어지면 분할해서 코드작업을 완성하여야 함 */
/* 프리미엄 섹션 스타일 */

/* 프리미엄 섹션 */
.premium-section {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background: #D0DFD4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 100px 20px;
}

.premium-container {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
}

.premium-header {
	text-align: center;
	margin-bottom: 50px;
}

.premium-badge {
	font-size: 24px;
	color: #61ABA6;
	letter-spacing: 2px;
	margin-bottom: 15px;
	font-weight: 300;
	line-height: 20px;
}

.premium-subtitle {
	font-size: 24px;
	color: #006962;
	margin-bottom: 20px;
	font-weight: 400;
	line-height: normal;
}

.premium-title {
	font-size: 56px;
	color: #000000;
	font-weight: 900;
	margin: 30px 0;
	letter-spacing: 2px;
	line-height: 56px;
}

/* 앞! 앞! 앞! 강조 효과 - 순차적 애니메이션 */
.premium-title .ap-1,
.premium-title .ap-2,
.premium-title .ap-3 {
	display: inline-block;
	opacity: 0;
	transform: scale(0.3) rotateY(90deg);
	transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 애니메이션 활성화 시 */
.premium-title.animate .ap-1,
.premium-title.animate .ap-2,
.premium-title.animate .ap-3 {
	opacity: 1;
	transform: scale(1) rotateY(0deg);
}

/* 순차적 딜레이 */
.premium-title.animate .ap-1 {
	transition-delay: 0.2s;
}

.premium-title.animate .ap-2 {
	transition-delay: 0.5s;
}

.premium-title.animate .ap-3 {
	transition-delay: 0.8s;
}

/* 크기 및 색상 */
.premium-title .ap-1 {
	font-size: 1em; /* 기본 크기 */
}

.premium-title .ap-2 {
	font-size: 1.5em; /* 1.5배 */
	color: #00529F;
}

.premium-title .ap-3 {
	font-size: 2em; /* 2배 */
	color: #D4AF37;
}

/* 강조 펄스 애니메이션 */
@keyframes pulseBounce {
	0%, 100% {
		transform: scale(1) rotateY(0deg);
	}
	25% {
		transform: scale(1.15) rotateY(-5deg);
	}
	50% {
		transform: scale(1.05) rotateY(5deg);
	}
	75% {
		transform: scale(1.1) rotateY(-3deg);
	}
}

/* 애니메이션 활성화 시 각 글자에 펄스 효과 */
.premium-title.animate .ap-1 {
	animation: pulseBounce 0.8s ease 0.2s;
}

.premium-title.animate .ap-2 {
	animation: pulseBounce 0.8s ease 0.5s;
}

.premium-title.animate .ap-3 {
	animation: pulseBounce 0.8s ease 0.8s;
}

.premium-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 60px;
}

.premium-item {
	position: relative;
	padding: 40px 30px 40px 30px;
	border-radius: 15px;
	text-align: center;
	transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	min-height: 500px;
}

/* 배경 이미지 레이어 (::after) */
.premium-item::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 0;
}

/* 첫 번째 카드: 좌→우로 확대 (왼쪽 기준) */
.premium-item:nth-child(1)::after {
	background-image: url('/img/premium/photo1.png');
	transform-origin: left center;
}

/* 두 번째 카드: 중앙에서 좌우로 확대 */
.premium-item:nth-child(2)::after {
	background-image: url('/img/premium/photo2.png');
	transform-origin: center center;
}

/* 세 번째 카드: 중앙에서 좌우로 확대 */
.premium-item:nth-child(3)::after {
	background-image: url('/img/premium/photo3.png');
	transform-origin: center center;
}

/* 네 번째 카드: 우→좌로 확대 (오른쪽 기준) */
.premium-item:nth-child(4)::after {
	background-image: url('/img/premium/photo4.png');
	transform-origin: right center;
}

/* 다크 오버레이 레이어 (::before) */
.premium-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0);
	transition: all 0.3s ease;
	z-index: 1;
}

.premium-item:hover::before {
	background: rgba(0, 0, 0, 0);
}

/* 호버 시 배경 이미지 확대 */
.premium-item:hover::after {
	transform: scale(1.2);
}

.premium-item:hover {
	transform: translateY(-15px) scale(1.05);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.premium-item > * {
	position: relative;
	z-index: 2;
}

.premium-item-icon {
	width: 100%;
	height: auto;
	margin-top: 30px;
	margin-bottom: 0;
}

.premium-item-icon img {
	width: 56px;
	height: auto;
	transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.premium-item-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.premium-item:hover .premium-item-icon img {
	transform: scale(1.2) rotate(10deg);
}

.premium-item-title {
	font-size: 30px;
	color: #FFFFFF;
	font-weight: 700;
	margin-bottom: 10px;
	line-height: normal;
}

.premium-item-text {
	font-size: 15px;
	color: #FFFFFF;
	line-height: 16px;
	margin-bottom: 5px;
	display: block;
}

/* 아이콘 튀어오르는 애니메이션 */
@keyframes iconBounce {
	0%, 100% {
		transform: translateY(0);
	}
	25% {
		transform: translateY(-20px);
	}
	50% {
		transform: translateY(-10px);
	}
	75% {
		transform: translateY(-15px);
	}
}

/* 모바일 반응형 - 프리미엄 섹션 */
@media (max-width: 768px) {
	.premium-section {
		padding: 60px 20px;
		min-height: auto;
	}

	.premium-title {
		font-size: 36px;
		margin: 20px 0;
	}

	.premium-subtitle {
		font-size: 18px;
	}

	.premium-badge {
		font-size: 16px;
	}

	.premium-grid {
		grid-template-columns: 1fr;
		gap: 25px;
		margin-top: 40px;
	}

	.premium-item {
		flex-direction: column;
		text-align: center;
		padding: 30px 20px;
		min-height: auto;
		width: 100%;
		aspect-ratio: 1 / 1; /* 정사각형 비율 */
		max-width: 450px;
		margin: 0 auto;
	}

	.premium-item-icon {
		width: 100%;
		flex: none;
		margin-top: 20px;
		margin-right: 0;
	}

	.premium-item-icon img {
		width: 48px;
	}

	.premium-item-content {
		flex: none;
		align-items: center;
		justify-content: flex-end;
		gap: 3px;
		width: 100%;
	}

	.premium-item-title {
		font-size: 18px;
		margin-bottom: 8px;
		line-height: 1.3;
	}

	.premium-item-text {
		font-size: 13px;
		line-height: 1.4;
		margin-bottom: 3px;
	}
}
