/* 반드시 CLAUDE.md의 절대원칙을 읽고 따를 것, 하나의 클래스/모듈은 하나의 책임만 가져야 함 (SRP 원칙), 하나의 파일에 코드줄은 최대 500~600줄 내에서 생성하여야 하며 최대 코드줄이 넘어가지 않도록 작성, 만약 코드가 길어지면 분할해서 코드작업을 완성하여야 함 */
/* 문서 위치: */
/* - FRONTEND_SYSTEM_BASIC.md: 기본 구조 */
/* - FRONTEND_SYSTEM_ADVANCED.md: 아이콘, 반응형, 애니메이션 */
/* - FRONTEND_SYSTEM_GUIDE.md: 커스터마이징, 트러블슈팅 */
/* 시스템 섹션 전용 스타일 */

/* 시스템 섹션 기본 구조 */
.system-section {
	padding: 100px 0;
	background: white;
	position: relative;
}

.system-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 섹션 헤더 */
.system-section .section-header {
	text-align: center;
	margin-bottom: 80px;
}

.system-section .section-title {
	font-size: 48px;
	font-weight: 700;
	color: #222;
	margin-bottom: 20px;
	letter-spacing: -2px;
}

.system-section .section-subtitle {
	font-size: 20px;
	color: #666;
	line-height: 1.6;
}

/* 시스템 목록 */
.system-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* 시스템 항목 */
.system-item {
	display: flex;
	align-items: stretch;
	background: white;
	overflow: hidden;
	position: relative;
}

/* 시스템 타이틀 영역 */
.system-title-area {
	flex: 0 0 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 40px;
	position: relative;
}

.system-title {
	font-size: 36px;
	font-weight: 700;
	color: white;
	line-height: 1.3;
	letter-spacing: -1px;
	text-align: center;
}

/* 시스템별 배경색 */
.smart-system .system-title-area {
	background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.security-system .system-title-area {
	background: linear-gradient(135deg, #9b59b6 0%, #7d3c98 100%);
}

.green-system .system-title-area {
	background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.economy-system .system-title-area {
	background: linear-gradient(135deg, #7f8c8d 0%, #5d6d7e 100%);
}

/* 시스템 기능 영역 */
.system-features {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	background: white;
}

/* 시스템 기능 카드 */
.system-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 25px 30px;
	text-align: center;
	border: 1px solid #e8e8e8;
	transition: all 0.3s ease;
	background: white;
}

.system-feature:hover {
	background: #f8f9fa;
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 기능 아이콘 */
.system-feature .feature-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.6s ease;
}

.smart-system .feature-icon {
	background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.security-system .feature-icon {
	background: linear-gradient(135deg, #9b59b6 0%, #7d3c98 100%);
}

.green-system .feature-icon {
	background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.economy-system .feature-icon {
	background: linear-gradient(135deg, #7f8c8d 0%, #5d6d7e 100%);
}

.system-feature .feature-icon i {
	font-size: 36px;
	color: white;
}

.system-feature .feature-icon img {
	width: 36px;
	height: 36px;
	filter: brightness(0) invert(1);
}

/* 도어락 아이콘 우측 이동 (시각적 중앙 정렬) */
.system-feature .feature-icon img[src*="electronic-door-lock"] {
	margin-left: 8px;
}

.system-feature:hover .feature-icon {
	transform: rotate(-360deg);
}

/* 기능 제목 */
.feature-title {
	font-size: 22px;
	font-weight: 700;
	color: #333;
	margin-bottom: 8px;
	line-height: 1.4;
	word-break: keep-all;
}

/* 기능 설명 */
.feature-desc {
	font-size: 18px;
	color: #666;
	line-height: 1.7;
	word-break: keep-all;
}

/* 반응형 디자인 */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
	.system-container {
		padding: 0 30px;
	}

	.system-section .section-title {
		font-size: 40px;
	}

	.system-section .section-subtitle {
		font-size: 18px;
	}

	.system-title-area {
		flex: 0 0 250px;
		padding: 50px 30px;
	}

	.system-title {
		font-size: 30px;
	}

	.system-features {
		grid-template-columns: repeat(3, 1fr);
	}

	.system-feature {
		padding: 30px 25px;
	}

	.system-feature .feature-icon {
		width: 70px;
		height: 70px;
		margin-bottom: 18px;
	}

	.system-feature .feature-icon i {
		font-size: 32px;
	}

	.system-feature .feature-icon img {
		width: 32px;
		height: 32px;
	}

	.system-feature .feature-icon img[src*="electronic-door-lock"] {
		margin-left: 7px;
	}

	.feature-title {
		font-size: 17px;
	}

	.feature-desc {
		font-size: 14px;
	}
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
	.system-section {
		padding: 60px 0;
	}

	.system-container {
		padding: 0 20px;
	}

	.system-section .section-header {
		margin-bottom: 50px;
	}

	.system-section .section-title {
		font-size: 32px;
		margin-bottom: 15px;
	}

	.system-section .section-subtitle {
		font-size: 16px;
	}

	.system-item {
		flex-direction: column;
	}

	.system-title-area {
		flex: 0 0 auto;
		padding: 40px 20px;
	}

	.system-title {
		font-size: 28px;
	}

	.system-features {
		grid-template-columns: 1fr;
	}

	.system-feature {
		padding: 30px 30px;
	}

	.system-feature .feature-icon {
		width: 70px;
		height: 70px;
		margin-bottom: 18px;
	}

	.system-feature .feature-icon i {
		font-size: 32px;
	}

	.system-feature .feature-icon img {
		width: 32px;
		height: 32px;
	}

	.system-feature .feature-icon img[src*="electronic-door-lock"] {
		margin-left: 7px;
	}

	.feature-title {
		font-size: 17px;
		margin-bottom: 12px;
	}

	.feature-desc {
		font-size: 14px;
	}
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
	.system-section {
		padding: 50px 0;
	}

	.system-container {
		padding: 0 15px;
	}

	.system-section .section-header {
		margin-bottom: 40px;
	}

	.system-section .section-title {
		font-size: 28px;
		margin-bottom: 12px;
	}

	.system-section .section-subtitle {
		font-size: 15px;
	}

	.system-title-area {
		padding: 35px 20px;
	}

	.system-title {
		font-size: 24px;
	}

	.system-feature {
		padding: 28px 25px;
	}

	.system-feature .feature-icon {
		width: 65px;
		height: 65px;
		margin-bottom: 15px;
	}

	.system-feature .feature-icon i {
		font-size: 28px;
	}

	.system-feature .feature-icon img {
		width: 28px;
		height: 28px;
	}

	.system-feature .feature-icon img[src*="electronic-door-lock"] {
		margin-left: 6px;
	}

	.feature-title {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.feature-desc {
		font-size: 14px;
		line-height: 1.6;
	}
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.system-item {
	animation: fadeInUp 0.6s ease-out;
}

.system-item:nth-child(1) {
	animation-delay: 0.1s;
}

.system-item:nth-child(2) {
	animation-delay: 0.2s;
}

.system-item:nth-child(3) {
	animation-delay: 0.3s;
}

.system-item:nth-child(4) {
	animation-delay: 0.4s;
}

/* 접근성 개선 */
.system-feature:focus-within {
	outline: 3px solid #4a90e2;
	outline-offset: 3px;
}

/* 인쇄 스타일 */
@media print {
	.system-section {
		padding: 20px 0;
		background: white;
	}

	.system-feature:hover {
		transform: none;
		box-shadow: none;
	}
}
