/* analysis-new.css - 정적 렌더링 최적화 버전 */

/* 애니메이션 */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes swipeArrowLeft {
	0%, 100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(-3px);
	}
}

@keyframes swipeArrowRight {
	0%, 100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(3px);
	}
}

@keyframes cardHighlight {
	0% {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 4px 20px rgba(129, 52, 175, 0.3);
		transform: scale(1.02);
	}
	100% {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		transform: scale(1);
	}
}

@keyframes slideInFromRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInFromLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* 기본 스타일 */
.container {
	max-width: 100%;
	margin: 0 auto;
	padding: 40px 20px;
}

/* 그라디언트 텍스트 */
.gradient-text {
	background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* 페이지 헤더 */
.page-header {
	text-align: center;
	margin-bottom: 40px;
	max-width: 614px;
	margin-left: auto;
	margin-right: auto;
}

.page-header h1 {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	color: #262626;
}

.page-header p {
	font-size: 16px;
	color: #8e8e8e;
}

/* 업로드 섹션 */
.upload-section {
	max-width: 500px;
	margin: 0 auto;
	padding: 20px;
}

/* 업로드 컨테이너 */
.upload-container {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* 사용 횟수 헤더 (그라디언트) */
.usage-header {
	background: linear-gradient(90deg, #f58529 0%, #dd2a7b 25%, #8134af 50%, #515bd4 75%, #5851db 100%);
	color: white;
	padding: 16px;
	border-radius: 12px 12px 0 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.2px;
}

.usage-count {
	font-weight: 700;
	font-size: 18px;
	margin: 0 4px;
}

/* 업로드 카드 */
.upload-card {
	background: white;
	border: 2px dashed #e8e8e8;
	border-top: none;
	border-radius: 0 0 12px 12px;
	padding: 40px 20px;
	margin-bottom: 20px;
}

/* 업로드 영역 */
.upload-area {
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.upload-area:hover .upload-icon {
	transform: scale(1.1);
}

.upload-area.drag-over {
	background: rgba(139, 92, 246, 0.05);
	border-radius: 8px;
}

.upload-icon {
	font-size: 42px;
	margin-bottom: 12px;
	transition: transform 0.2s ease;
}

.upload-text {
	font-size: 16px;
	font-weight: 600;
	color: #262626;
	margin-bottom: 6px;
}

.upload-subtext {
	font-size: 13px;
	color: #8e8e8e;
}

/* 정보 카드 컨테이너 */
.info-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 정보 카드 */
.info-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	background: #f8f8f8;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.info-card:hover {
	background: #f2f2f2;
}

/* 정보 아이콘 */
.info-icon {
	font-size: 20px;
	flex-shrink: 0;
	line-height: 1;
}

/* 정보 콘텐츠 */
.info-content {
	flex: 1;
}

/* 정보 헤더 */
.info-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

/* 정보 타이틀 */
.info-title {
	font-size: 14px;
	font-weight: 600;
	color: #262626;
	margin: 0;
}

/* 정보 텍스트 */
.info-text {
	font-size: 13px;
	color: #666;
	margin: 0;
	line-height: 1.4;
}

/* 확장 버튼 */
.expand-btn {
	background: transparent;
	border: none;
	padding: 4px;
	cursor: pointer;
	transition: transform 0.2s ease;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
}

.expand-btn:hover {
	transform: scale(1.1);
}

.expand-btn[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.expand-btn svg {
	transition: transform 0.2s ease;
}

/* 팁 아이템 */
.info-tips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.tip-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	background: white;
	border-radius: 14px;
	font-size: 12px;
	color: #333;
	font-weight: 500;
	border: 1px solid #e8e8e8;
}

/* 상세 팁 */
.detailed-tips {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e8e8e8;
	animation: fadeIn 0.3s ease;
}

.tip-detail {
	background: white;
	padding: 12px;
	border-radius: 6px;
}

.tip-detail strong {
	display: block;
	margin-bottom: 10px;
	color: #333;
	font-size: 13px;
}

.tip-detail ul {
	margin: 0;
	padding-left: 18px;
}

.tip-detail li {
	margin-bottom: 6px;
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.upload-section {
		padding: 10px;
	}
	
	.upload-card {
		padding: 30px 15px;
	}
	
	.usage-header {
		font-size: 14px;
		padding: 14px;
	}
	
	.usage-count {
		font-size: 16px;
	}
	
	.upload-icon {
		font-size: 36px;
	}
	
	.upload-text {
		font-size: 15px;
	}
	
	.upload-subtext {
		font-size: 12px;
	}
	
	.info-card {
		padding: 12px;
		gap: 10px;
	}
	
	.info-icon {
		font-size: 18px;
	}
	
	.info-title {
		font-size: 13px;
	}
	
	.info-text {
		font-size: 12px;
	}
	
	.tip-item {
		font-size: 11px;
		padding: 4px 8px;
	}
	
	.tip-detail {
		padding: 10px;
	}
	
	.tip-detail strong {
		font-size: 12px;
	}
	
	.tip-detail li {
		font-size: 11px;
	}
}

/* 미리보기 컨테이너 */
.preview-container {
	text-align: center;
}

.preview-wrapper {
	position: relative;
	display: inline-block;
	margin-bottom: 24px;
}

.preview-image {
	max-width: 100%;
	max-height: 400px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.remove-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	color: white;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	transition: background 0.2s;
}

.remove-btn:hover {
	background: rgba(0,0,0,0.8);
}

.analyze-btn {
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.analyze-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.analyze-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* 결과 섹션 */
.result-section {
	max-width: 614px;
	margin: 0 auto;
}

.uploaded-image-wrapper {
	text-align: center;
	margin-bottom: 24px;
}

.uploaded-image {
	max-width: 100%;
	max-height: 400px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 액션 버튼들 - 새로운 스타일 */
.retry-btn-container {
	margin: 24px 0;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
}

.retry-btn-full {
	width: 100%;
	padding: 14px 24px;
	background: #f5f5f5;
	color: #262626;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
}

.retry-btn-full:hover {
	background: #e8e8e8;
	border-color: #8e8e8e;
}

.retry-icon {
	font-size: 20px;
}

/* 공유 버튼 컨테이너 */
.share-buttons-container {
	display: flex;
	gap: 8px;
	width: 100%;
}

.simple-share-btn {
	flex: 1;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid;
}

.share-primary {
	background: linear-gradient(45deg, #f58529, #dd2a7b);
	color: white;
	border-color: transparent;
}

.share-primary:hover {
	box-shadow: 0 4px 12px rgba(221, 42, 123, 0.3);
	transform: translateY(-1px);
}

.share-secondary {
	background: white;
	color: #262626;
	border-color: #dbdbdb;
}

.share-secondary:hover {
	background: #f5f5f5;
	border-color: #8e8e8e;
}

.share-icon {
	font-size: 18px;
}

/* 로딩 모달 */
.loading-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.loading-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
}

.loading-container {
	position: relative;
	background: white;
	border-radius: 12px;
	padding: 48px 40px;
	max-width: 400px;
	width: 90%;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	min-height: 280px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.loading-spinner {
	width: 60px;
	height: 60px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #dd2a7b;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 24px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-text {
	font-size: 18px;
	font-weight: 600;
	color: #262626;
	margin-bottom: 8px;
}

.loading-subtext {
	font-size: 14px;
	color: #8e8e8e;
	margin-bottom: 20px;
}

.loading-progress {
	width: 100%;
	height: 6px;
	background: #f3f3f3;
	border-radius: 3px;
	overflow: hidden;
}

.loading-progress-bar {
	height: 100%;
	background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
	border-radius: 3px;
	transition: width 0.3s ease;
	width: 0%;
}

/* 토스트 메시지 */
.toast {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(-100px);
	background: #262626;
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 10000;
	opacity: 0;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.container {
		padding: 20px 16px;
	}
	
	.page-header h1 {
		font-size: 24px;
	}
	
	.page-header p {
		font-size: 14px;
	}
	
	.main-card {
		padding: 20px;
	}
	
	.upload-area {
		padding: 32px 16px;
	}
	
	.upload-icon {
		font-size: 36px;
	}
	
	.retry-btn-container {
		padding: 16px;
	}
	
	.loading-container {
		padding: 32px 24px;
		min-height: 240px;
	}
}

.upload-text {
	font-size: 16px;
	font-weight: 600;
	color: #262626;
	margin-bottom: 8px;
}

.upload-subtext {
	font-size: 14px;
	color: #8e8e8e;
}

/* 미리보기 컨테이너 */
.preview-container {
	text-align: center;
}

.preview-wrapper {
	position: relative;
	display: inline-block;
	margin-bottom: 24px;
}

.preview-image {
	max-width: 100%;
	max-height: 400px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.remove-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.remove-btn:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.1);
}

.analyze-btn {
	width: 100%;
	padding: 16px 32px;
	background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.analyze-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 52, 175, 0.3);
}

.analyze-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 결과 섹션 */
.result-section {
	max-width: 614px;
	margin: 0 auto;
}

.uploaded-image-wrapper {
	text-align: center;
	margin-bottom: 24px;
}

.uploaded-image {
	max-width: 100%;
	max-height: 400px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 액션 버튼들 */
.action-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.retry-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: #f5f5f5;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #262626;
	cursor: pointer;
	transition: all 0.2s ease;
}

.retry-btn:hover {
	background: #efefef;
	transform: translateY(-1px);
}

.share-buttons {
	display: flex;
	gap: 12px;
}

.share-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.share-btn.primary {
	background: linear-gradient(45deg, #f58529, #dd2a7b);
	color: white;
}

.share-btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(221, 42, 123, 0.3);
}

.share-btn.secondary {
	background: white;
	color: #262626;
	border: 1px solid #dbdbdb;
}

.share-btn.secondary:hover {
	background: #f5f5f5;
}

/* 탭 컨테이너 */
.ig-style-tab-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* 탭 네비게이션 */
.ig-tab-navigation {
	background: white;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	margin-bottom: 20px;
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 614px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ig-tab-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	flex: 1;
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	padding: 0 15px;
	box-sizing: border-box;
}

.ig-tab-scroll::-webkit-scrollbar {
	display: none;
}

.ig-tab-list {
	display: flex;
	padding: 0;
	margin: 0 auto;
	min-width: fit-content;
	justify-content: center;
	flex-shrink: 0;
	gap: 0;
}

/* 탭 버튼 네비게이션 */
.tab-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	background: white;
	border: 1px solid #dbdbdb;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	z-index: 10;
	transition: all 0.2s ease;
}

.tab-nav-btn:hover {
	background: #f8f9fa;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tab-nav-prev {
	left: 8px;
}

.tab-nav-next {
	right: 8px;
}

.tab-nav-btn span {
	font-size: 18px;
	color: #262626;
	line-height: 1;
}

/* 탭 버튼 */
.ig-tab {
	padding: 24px 26px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: #8e8e8e;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	position: relative;
	white-space: nowrap;
	flex-shrink: 0;
	min-width: 95px;
}

.ig-tab:hover {
	color: #262626;
}

.ig-tab.active {
	color: #262626;
}

.ig-tab.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #262626;
}

.tab-icon {
	font-size: 40px;
}

.tab-label {
	font-size: 18px;
	font-weight: 700;
}

/* 스와이프 힌트 애니메이션 */
@keyframes swipeArrowLeft {
	0%, 100% { transform: translateX(0); opacity: 0.6; }
	50% { transform: translateX(-4px); opacity: 1; }
}

@keyframes swipeArrowRight {
	0%, 100% { transform: translateX(0); opacity: 0.6; }
	50% { transform: translateX(4px); opacity: 1; }
}

/* 콘텐츠 영역 */
.ig-content-area {
	min-height: 400px;
	transition: opacity 0.2s ease, transform 0.3s ease;
	touch-action: pan-y pinch-zoom;
	user-select: none;
	box-sizing: border-box;
	position: relative;
	cursor: grab;
	width: 100%;
	max-width: 614px;
	margin: 0 auto;
	background: white;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 20px;
}

.ig-content-area:active {
	cursor: grabbing;
}

.ig-content-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

/* 탭 패널 */
.tab-panel {
	display: none;
}

.tab-panel.active {
	display: block;
	animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 카드 스타일 */
.ig-card {
	background: white;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.ig-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ig-card-header {
	padding: 18px 24px;
	border-bottom: 1px solid #efefef;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fafafa;
}

.header-icon {
	font-size: 26px;
}

.header-title {
	font-size: 16px;
	font-weight: 700;
	color: #262626;
}

.ig-card-body {
	padding: 24px;
	width: 100%;
	box-sizing: border-box;
}

/* 점수 스타일 */
.score-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	width: 100%;
}

.score-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.score-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.score-label {
	font-size: 14px;
	color: #8e8e8e;
	font-weight: 600;
}

.score-value {
	font-size: 28px;
	font-weight: 700;
	background: linear-gradient(45deg, #f58529, #dd2a7b);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.score-bar {
	height: 6px;
	background: #efefef;
	border-radius: 3px;
	overflow: hidden;
	width: 100%;
}

.score-fill {
	height: 100%;
	background: linear-gradient(90deg, #f58529, #dd2a7b);
	transition: width 0.8s ease;
}

/* 키워드 클라우드 */
.keyword-cloud-container {
	width: 100%;
	height: 350px;
	position: relative;
	pointer-events: none;
	user-select: none;
	cursor: default;
}

/* 분석 텍스트 */
.analysis-text {
	font-size: 15px;
	line-height: 1.8;
	color: #262626;
	text-align: center;
	padding: 12px;
	background: #fafafa;
	border-radius: 12px;
}

/* 나이 정보 */
.age-info {
	text-align: center;
}

/* 주식 정보 */
.stock-info {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	width: 100%;
}

.stock-price {
	text-align: center;
	padding: 20px;
	background: linear-gradient(135deg, #f5f5f5, #fafafa);
	border-radius: 12px;
	border: 1px solid #efefef;
}

.price-label {
	display: block;
	font-size: 12px;
	color: #8e8e8e;
	margin-bottom: 8px;
}

.price-value {
	display: block;
	font-size: 36px;
	font-weight: 700;
	background: linear-gradient(45deg, #28a745, #20c997);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stock-trend {
	text-align: center;
	padding: 8px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
}

.stock-trend.up {
	background: #d4edda;
	color: #155724;
}

.stock-trend.down {
	background: #f8d7da;
	color: #721c24;
}

/* 투자 미터 */
.investment-meter {
	display: grid;
	gap: 8px;
}

.meter-label {
	font-size: 13px;
	color: #8e8e8e;
}

.meter-bar {
	height: 8px;
	background: #efefef;
	border-radius: 4px;
	overflow: hidden;
}

.meter-fill {
	height: 100%;
	background: linear-gradient(90deg, #28a745, #20c997);
	transition: width 0.8s ease;
}

.meter-value {
	font-size: 18px;
	font-weight: 600;
	color: #262626;
	text-align: right;
}

/* 생명 정보 */
.life-info {
	text-align: center;
	padding: 20px;
}

.life-job,
.next-job {
	font-size: 24px;
	font-weight: 700;
	color: #262626;
	margin-bottom: 12px;
}

.next-country {
	font-size: 20px;
	color: #8e8e8e;
	margin-bottom: 8px;
}

.life-desc {
	font-size: 14px;
	color: #8e8e8e;
	line-height: 1.6;
	margin-bottom: 16px;
}

.karma-info {
	padding: 12px;
	background: #fafafa;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.karma-label {
	font-size: 13px;
	color: #8e8e8e;
}

.karma-score {
	font-size: 20px;
	font-weight: 600;
	color: #262626;
}

/* MBTI 스타일 */
.mbti-info {
	text-align: center;
	padding: 30px 20px;
	background: linear-gradient(135deg, #fafafa, #f5f5f5);
	border-radius: 12px;
}

.mbti-type {
	font-size: 48px;
	font-weight: 700;
	background: linear-gradient(45deg, #8134af, #dd2a7b);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 16px;
	letter-spacing: 2px;
}

.mbti-desc {
	font-size: 14px;
	color: #8e8e8e;
	line-height: 1.6;
}

/* 캐릭터 정보 */
.character-list {
	display: grid;
	gap: 12px;
}

.character-item {
	display: flex;
	justify-content: space-between;
	padding: 12px;
	background: #fafafa;
	border-radius: 8px;
}

.char-label {
	font-size: 13px;
	color: #8e8e8e;
}

.char-value {
	font-size: 13px;
	font-weight: 600;
	color: #262626;
}

/* 위험도 */
.danger-level {
	margin-top: 16px;
	padding: 12px;
	background: #fff3cd;
	border-radius: 8px;
}

.danger-label {
	display: block;
	font-size: 12px;
	color: #856404;
	margin-bottom: 8px;
}

.danger-bar {
	height: 8px;
	background: #efefef;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.danger-fill {
	height: 100%;
	transition: width 0.8s ease;
}

.danger-fill.low {
	background: #28a745;
}

.danger-fill.medium {
	background: #ffc107;
}

.danger-fill.high {
	background: #dc3545;
}

.danger-value {
	font-size: 18px;
	font-weight: 600;
	color: #856404;
}

/* 궁합 그리드 */
.compat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.compat-item {
	padding: 12px;
	border-radius: 8px;
	text-align: center;
}

.compat-item.best {
	background: #d4edda;
}

.compat-item.worst {
	background: #f8d7da;
}

.compat-label {
	display: block;
	font-size: 12px;
	margin-bottom: 8px;
}

.compat-type {
	font-size: 20px;
	font-weight: 700;
}

/* 타임라인 */
.future-timeline {
	display: grid;
	gap: 12px;
}

.timeline-item {
	padding: 12px;
	background: #fafafa;
	border-radius: 8px;
	border-left: 3px solid #dd2a7b;
}

.timeline-period {
	display: block;
	font-size: 12px;
	color: #8e8e8e;
	margin-bottom: 4px;
}

.timeline-desc {
	font-size: 14px;
	color: #262626;
}

/* 닮은꼴 정보 */
.lookalike-info {
	text-align: center;
	padding: 30px 20px;
	background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
	border-radius: 12px;
}

.celeb-name {
	font-size: 32px;
	font-weight: 700;
	background: linear-gradient(45deg, #ff6b9d, #feca57);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 20px;
}

.similarity {
	margin-bottom: 16px;
}

.sim-label {
	display: block;
	font-size: 12px;
	color: #8e8e8e;
	margin-bottom: 8px;
}

.sim-bar {
	height: 8px;
	background: #efefef;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.sim-fill {
	height: 100%;
	background: linear-gradient(90deg, #f58529, #dd2a7b);
	transition: width 0.8s ease;
}

.sim-value {
	font-size: 20px;
	font-weight: 600;
	color: #262626;
}

.other-celebs {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #dbdbdb;
}

.other-label {
	font-size: 12px;
	color: #8e8e8e;
	margin-right: 8px;
}

.other-celeb {
	font-size: 13px;
	color: #262626;
}

/* 동물상 */
.animal-info {
	text-align: center;
	padding: 30px 20px;
	background: linear-gradient(135deg, #fff5f5, #fff0f0);
	border-radius: 12px;
}

.animal-emoji {
	font-size: 64px;
	margin-bottom: 16px;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.animal-name {
	font-size: 24px;
	font-weight: 700;
	color: #262626;
	margin-bottom: 8px;
}

.animal-desc {
	font-size: 14px;
	color: #8e8e8e;
	margin-bottom: 16px;
}

/* 캐릭터 정보 */
.character-info {
	text-align: center;
	padding: 20px;
}

.char-name {
	font-size: 24px;
	font-weight: 700;
	color: #262626;
	margin-bottom: 12px;
}

.char-desc {
	font-size: 14px;
	color: #8e8e8e;
}

/* 스타일 정보 */
.style-info {
	display: grid;
	gap: 16px;
}

.style-type {
	font-size: 24px;
	font-weight: 700;
	color: #262626;
	text-align: center;
}

.style-desc {
	font-size: 14px;
	color: #8e8e8e;
	text-align: center;
	margin-bottom: 16px;
}

.style-tip {
	padding: 12px;
	background: #fff3cd;
	border-radius: 8px;
}

.tip-label {
	display: block;
	font-size: 12px;
	color: #856404;
	margin-bottom: 4px;
}

.tip-value {
	font-size: 14px;
	color: #856404;
}

/* 퍼스널 컬러 */
.color-info {
	text-align: center;
	padding: 20px;
}

.season-type {
	font-size: 24px;
	font-weight: 700;
	color: #262626;
	margin-bottom: 8px;
}

.season-desc {
	font-size: 14px;
	color: #8e8e8e;
	margin-bottom: 16px;
}

.best-colors {
	padding: 12px;
	background: #fafafa;
	border-radius: 8px;
}

.colors-label {
	display: block;
	font-size: 12px;
	color: #8e8e8e;
	margin-bottom: 8px;
}

/* 능력치 차트 */
.stats-chart {
	display: grid;
	gap: 16px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.stat-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.stat-label {
	font-size: 13px;
	color: #8e8e8e;
}

.stat-value {
	font-size: 18px;
	font-weight: 600;
	color: #262626;
}

.stat-bar {
	height: 4px;
	background: #efefef;
	border-radius: 2px;
	overflow: hidden;
}

.stat-fill {
	height: 100%;
	background: linear-gradient(90deg, #4ecdc4, #44a08d);
	transition: width 0.8s ease;
}

/* 극한 상황 */
.extreme-info {
	display: grid;
	gap: 16px;
}

.extreme-item {
	display: grid;
	gap: 8px;
}

.extreme-label {
	font-size: 13px;
	color: #8e8e8e;
}

.extreme-bar {
	height: 8px;
	background: #efefef;
	border-radius: 4px;
	overflow: hidden;
}

.extreme-fill {
	height: 100%;
	background: linear-gradient(90deg, #dc3545, #c82333);
	transition: width 0.8s ease;
}

.extreme-value {
	font-size: 18px;
	font-weight: 600;
	color: #262626;
}

/* 호르몬 차트 */
.hormone-chart {
	display: grid;
	gap: 16px;
	margin-bottom: 20px;
}

.hormone-item {
	display: grid;
	gap: 8px;
}

.hormone-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.hormone-label {
	font-size: 13px;
	color: #8e8e8e;
}

.hormone-value {
	font-size: 18px;
	font-weight: 600;
	color: #262626;
}

.hormone-bar {
	height: 8px;
	background: #efefef;
	border-radius: 4px;
	overflow: hidden;
}

.hormone-fill {
	height: 100%;
	transition: width 0.8s ease;
}

.hormone-fill.estrogen {
	background: linear-gradient(90deg, #ff6b9d, #feca57);
}

.hormone-fill.testosterone {
	background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.hormone-analysis {
	padding: 16px;
	background: #fafafa;
	border-radius: 8px;
}

.analysis-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.analysis-label {
	font-size: 13px;
	color: #8e8e8e;
}

.analysis-value {
	font-size: 13px;
	font-weight: 600;
	color: #262626;
}

.analysis-desc {
	font-size: 14px;
	color: #262626;
	line-height: 1.6;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #efefef;
}

/* 혈액형 정보 */
.blood-info {
	text-align: center;
	padding: 20px;
}

.blood-type {
	font-size: 48px;
	font-weight: 700;
	color: #dc3545;
	margin-bottom: 20px;
}

.blood-confidence {
	margin-bottom: 20px;
}

.conf-label {
	display: block;
	font-size: 12px;
	color: #8e8e8e;
	margin-bottom: 8px;
}

.conf-bar {
	height: 8px;
	background: #efefef;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.conf-fill {
	height: 100%;
	background: linear-gradient(90deg, #dc3545, #c82333);
	transition: width 0.8s ease;
}

.conf-value {
	font-size: 18px;
	font-weight: 600;
	color: #262626;
}

.blood-traits {
	display: grid;
	gap: 12px;
}

.trait-item {
	padding: 12px;
	background: #fafafa;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
}

.trait-label {
	font-size: 13px;
	color: #8e8e8e;
}

.trait-value {
	font-size: 13px;
	font-weight: 600;
	color: #262626;
}

/* 하단 네비게이션 */
.content-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	background: white;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	max-width: 614px;
	margin: 20px auto;
	box-sizing: border-box;
}

.content-nav-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: linear-gradient(45deg, #f58529, #dd2a7b);
	color: white;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.content-nav-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(221, 42, 123, 0.3);
}

.content-nav-btn:disabled {
	cursor: not-allowed;
	opacity: 0.3;
}

.nav-icon {
	font-size: 16px;
}

.nav-label {
	font-size: 13px;
}

.nav-spacer {
	width: 120px;
}

/* 로딩 모달 (기존 analysis.html과 동일) */
.loading-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.loading-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
}

.loading-container {
	position: relative;
	text-align: center;
	padding: 48px 24px;
	max-width: 400px;
	width: 90%;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #dbdbdb;
	border-top-color: #dd2a7b;
	border-radius: 50%;
	margin: 0 auto 16px;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.loading-text {
	font-size: 16px;
	font-weight: 600;
	color: #262626;
	margin-bottom: 8px;
}

.loading-subtext {
	font-size: 13px;
	color: #8e8e8e;
	margin-bottom: 20px;
}

/* 로딩 프로그레스 바 */
.loading-progress {
	width: 200px;
	height: 4px;
	background: #efefef;
	border-radius: 2px;
	margin: 20px auto 0;
	overflow: hidden;
}

.loading-progress-bar {
	height: 100%;
	background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
	width: 0%;
	transition: width 0.3s ease;
}

/* 토스트 메시지 */
.toast {
	position: fixed;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 10000;
	opacity: 0;
	transition: all 0.3s ease;
}

.toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
	.container {
		padding: 20px 15px;
	}
	
	.page-header h1 {
		font-size: 28px;
	}
	
	.main-card {
		padding: 20px;
	}
	
	.upload-area {
		padding: 36px 20px;
	}
	
	.upload-icon {
		font-size: 36px;
	}
	
	.action-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	
	.share-buttons {
		width: 100%;
		justify-content: center;
	}
	
	.ig-tab-navigation,
	.ig-content-area,
	.content-navigation {
		max-width: 100%;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}
	
	.ig-tab-scroll {
		padding: 0 15px;
		overflow-x: auto;
	}
	
	.ig-tab {
		padding: 18px 20px;
		min-width: 75px;
	}
	
	.tab-icon {
		font-size: 32px;
	}
	
	.tab-label {
		font-size: 15px;
		font-weight: 700;
	}
	
	.tab-nav-btn {
		display: none !important;
	}
	
	.ig-card-header {
		padding: 14px;
	}
	
	.ig-card-header .header-icon {
		font-size: 24px;
	}
	
	.ig-card-header .header-title {
		font-size: 16px;
		font-weight: 700;
	}
	
	.ig-card-body {
		padding: 14px;
	}
	
	.compat-grid {
		grid-template-columns: 1fr;
	}
	
	.content-navigation {
		padding: 12px;
		max-width: 100%;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}
	
	.content-nav-btn {
		padding: 8px 12px;
		font-size: 12px;
	}
	
	.ig-content-area {
		padding: 15px;
		max-width: 100%;
		box-sizing: border-box;
	}
	
	.ig-content-grid {
		gap: 12px;
		width: 100%;
		max-width: 100%;
	}
	
	.ig-card {
		width: 100%;
	}
	
	.loading-content {
		padding: 36px 24px;
		width: 85%;
	}
	
	.loading-spinner {
		width: 48px;
		height: 48px;
	}
	
	.loading-text {
		font-size: 18px;
	}
}

/* 아주 작은 화면 */
@media (max-width: 480px) {
	.ig-tab {
		padding: 16px 18px;
		min-width: 65px;
	}
	
	.tab-icon {
		font-size: 28px;
	}
	
	.tab-label {
		font-size: 13px;
		font-weight: 600;
	}
	
	.ig-tab-scroll {
		padding: 0 10px;
	}
}

/* 카드 하이라이트 효과 */
.card-highlight {
	animation: cardHighlight 1.5s ease;
	position: relative;
	z-index: 10;
}

/* 탭 패널 트랜지션 */
.tab-panel {
	will-change: transform, opacity;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	perspective: 1000px;
	-webkit-perspective: 1000px;
}

/* IG 카드 트랜지션 */
.ig-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 컨텐츠 네비게이션 버튼 트랜지션 */
.content-nav-btn {
	transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

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

/* 스와이프 영역 트랜지션 */
.ig-content-area {
	transition: transform 0.2s ease;
}

/* 모달 팝업 스타일 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	animation: fadeIn 0.3s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.modal-content {
	background: white;
	border-radius: 16px;
	padding: 32px;
	max-width: 90%;
	width: 400px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease;
	position: relative;
}

.modal-icon {
	font-size: 48px;
	margin-bottom: 16px;
	line-height: 1;
}

.modal-title {
	font-size: 20px;
	font-weight: 700;
	color: #262626;
	margin-bottom: 8px;
}

.modal-message {
	font-size: 16px;
	color: #8e8e8e;
	margin-bottom: 24px;
	line-height: 1.5;
}

.modal-button {
	background: linear-gradient(45deg, #f58529, #dd2a7b);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 120px;
}

.modal-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(221, 42, 123, 0.3);
}

.modal-button:active {
	transform: translateY(0);
}

/* 모달 애니메이션 */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes slideDown {
	from {
		transform: translateY(0);
		opacity: 1;
	}
	to {
		transform: translateY(20px);
		opacity: 0;
	}
}

/* 모달 닫기 애니메이션 */
.modal-overlay.closing {
	animation: fadeOut 0.3s ease;
}

.modal-overlay.closing .modal-content {
	animation: slideDown 0.3s ease;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
	.modal-content {
		padding: 24px;
		width: 85%;
	}
	
	.modal-icon {
		font-size: 40px;
	}
	
	.modal-title {
		font-size: 18px;
	}
	
	.modal-message {
		font-size: 14px;
	}
	
	.modal-button {
		padding: 10px 24px;
		font-size: 14px;
	}
}