﻿.mypage-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

	.mypage-modal.hidden {
		display: none;
	}

.mypage-content {
	width: 420px;
	background: white;
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: var(--shadow-xl);
	position: relative;
}

.mypage-body input {
	width: 80%;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-lg);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 1rem;
	resize: vertical;
	transition: all 0.2s ease;
}

.mypage-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mypage-close {
	font-size: 1.5rem;
	border: none;
	background: none;
	cursor: pointer;
	text-decoration: none;
	color: #000;
}

.mypage-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--gray-200);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2rem;
	margin: 0 auto 1rem;
}

.mypage-body p {
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

.btn-edit {
	font-size: 0.9rem;
	padding: 0.4rem 0.5rem;
	margin-left: 0.5rem;
	background: var(--gray-100);
	border: 1px solid var(--gray-300);
	border-radius: 0.5rem;
	cursor: pointer;
	text-decoration:none;
	color:#000;
}

.btn-circle {
	font-size: 1.2rem;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--gray-200);
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: block;
	text-align: center;
	line-height: 35px;
	color: #000;
}

.mypage-footer {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* 로그인 모달 스타일 */
.login-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

	.login-modal.hidden {
		display: none;
	}

.login-content {
	width: 400px;
	background: white;
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: var(--shadow-xl);
	position: relative;
}

.login-header {
	text-align: center;
	margin-bottom: 2rem;
}

	.login-header h2 {
		color: var(--primary-600);
		font-size: 1.5rem;
		font-weight: 700;
		margin-bottom: 0.5rem;
	}

	.login-header p {
		color: var(--text-secondary);
		font-size: 1rem;
		margin: 0;
	}

.login-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--text-secondary);
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

	.login-form .form-group {
		margin-bottom: 0;
	}

	.login-form label {
		display: block;
		margin-bottom: 0.5rem;
		color: var(--text-primary);
		font-weight: 500;
		font-size: 1rem;
	}

	.login-form input {
		width: 100%;
		padding: 0.75rem 1rem;
		border: 1px solid var(--border-medium);
		border-radius: 0.5rem;
		background: var(--bg-primary);
		color: var(--text-primary);
		font-size: 1rem;
		transition: all 0.2s ease;
	}

		.login-form input:focus {
			outline: none;
			border-color: var(--primary-500);
			box-shadow: 0 0 0 3px var(--primary-100);
		}

.login-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0.5rem 0;
	font-size: 1rem;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
}

	.remember-me input[type="checkbox"] {
		width: auto;
	}

.forgot-password {
	color: var(--primary-600);
	text-decoration: none;
	font-size: 1rem;
}

	.forgot-password:hover {
		text-decoration: underline;
	}

.login-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.social-login {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-light);
}

.social-login-text {
	text-align: center;
	color: var(--text-secondary);
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.btn-google {
	background: white;
	color: var(--text-primary);
	border: 1px solid var(--border-medium);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

	.btn-google:hover {
		background: var(--bg-secondary);
	}

.signup-link {
	text-align: center;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-light);
	color: var(--text-secondary);
	font-size: 1rem;
}

	.signup-link a {
		color: var(--primary-600);
		text-decoration: none;
		font-weight: 500;
	}

		.signup-link a:hover {
			text-decoration: underline;
		}
/* 회원가입 모달 스타일 */
.signup-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

	.signup-modal.hidden {
		display: none;
	}

.signup-content {
	width: 420px;
	max-height: 90vh;
	background: white;
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: var(--shadow-xl);
	position: relative;
	overflow-y: auto;
}

.signup-header {
	text-align: center;
	margin-bottom: 2rem;
}

	.signup-header h2 {
		color: var(--primary-600);
		font-size: 1.5rem;
		font-weight: 700;
		margin-bottom: 0.5rem;
	}

	.signup-header p {
		color: var(--text-secondary);
		font-size: 1rem;
		margin: 0;
	}

.signup-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--text-secondary);
}

.signup-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

	.signup-form .form-group {
		margin-bottom: 0;
	}

	.signup-form label {
		display: block;
		margin-bottom: 0.5rem;
		color: var(--text-primary);
		font-weight: 500;
		font-size: 0.875rem;
	}

	.signup-form input {
		width: 100%;
		padding: 1rem 1rem;
		border: 1px solid var(--border-medium);
		border-radius: 0.5rem;
		background: var(--bg-primary);
		color: var(--text-primary);
		font-size: 0.875rem;
		transition: all 0.2s ease;
	}

		.signup-form input:focus {
			outline: none;
			border-color: var(--primary-500);
			box-shadow: 0 0 0 3px var(--primary-100);
		}

.input-with-button {
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
	margin-top:10px;
}

	.input-with-button input {
		flex: 1;
	}

.btn-verify {
	background: var(--secondary-500);
	color: white;
	border: none;
	padding: 1rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	min-width: 100px;
	width: 120px;
	text-decoration:none;
	text-align:center;
}

	.btn-verify:hover {
		background: var(--secondary-600);
	}

	.btn-verify:disabled {
		background: var(--gray-400);
		cursor: not-allowed;
	}

.verification-info {
	background: var(--secondary-50);
	border: 1px solid var(--secondary-200);
	border-radius: 0.5rem;
	padding: 1rem;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--secondary-700);
}

.verification-timer {
	color: var(--accent-600);
	font-weight: 600;
}

.password-requirements {
	background: var(--primary-50);
	border: 1px solid var(--primary-200);
	border-radius: 0.5rem;
	padding: 0.75rem;
	margin-top: 0.5rem;
	font-size: 1rem;
	color: var(--primary-700);
}

	.password-requirements ul {
		margin: 0.5rem 0 0 0;
		padding-left: 1rem;
	}

	.password-requirements li {
		margin-bottom: 0.25rem;
	}

.password-match {
	font-size: 1rem;
	margin-top: 0.25rem;
	padding: 0.25rem 0;
}

	.password-match.valid {
		color: var(--secondary-600);
	}

	.password-match.invalid {
		color: var(--accent-600);
	}

.signup-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.signup-step {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.step-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gray-300);
	transition: all 0.2s ease;
}

	.step-indicator.active {
		background: var(--primary-500);
	}

	.step-indicator.completed {
		background: var(--secondary-500);
	}

.login-link {
	text-align: center;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-light);
	color: var(--text-secondary);
	font-size: 0.875rem;
}

	.login-link a {
		color: var(--primary-600);
		text-decoration: none;
		font-weight: 500;
	}

		.login-link a:hover {
			text-decoration: underline;
		}

/* 약관동의 스타일 */
.terms-agreement {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background-color: #f9f9f9;
}

	.terms-agreement h3 {
		margin: 0 0 15px 0;
		color: #333;
		font-size: 16px;
	}

.terms-item {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 8px 0;
}

	.terms-item.all-terms {
		border-bottom: 1px solid #ddd;
		padding-bottom: 15px;
		margin-bottom: 15px;
	}

	.terms-item input[type="checkbox"] {
		margin-right: 10px;
		transform: scale(1.2);
	}

	.terms-item label {
		flex: 1;
		cursor: pointer;
		font-size: 14px;
		color: #333;
	}

	.terms-item .required {
		color: #ff4444;
		font-weight: bold;
	}

	.terms-item .optional {
		color: #666;
	}

.terms-detail-btn {
	background: none;
	border: none;
	color: #0066cc;
	text-decoration: underline;
	cursor: pointer;
	font-size: 12px;
	margin-left: 5px;
}

	.terms-detail-btn:hover {
		color: #0052a3;
	}

/* 약관 상세보기 모달 */
.terms-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.terms-modal-content {
	background: white;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.terms-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #eee;
}

	.terms-modal-header h2 {
		margin: 0;
		color: #333;
	}

.terms-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
}

	.terms-modal-close:hover {
		color: #333;
	}

.terms-modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

	.terms-modal-body h3 {
		color: #333;
		margin-top: 20px;
		margin-bottom: 10px;
	}

	.terms-modal-body p {
		line-height: 1.6;
		color: #555;
		margin-bottom: 15px;
	}

	.terms-modal-body ul {
		padding-left: 20px;
		margin-bottom: 15px;
	}

	.terms-modal-body li {
		margin-bottom: 5px;
		color: #555;
	}

.terms-modal-footer {
	padding: 20px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: center;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Primary Colors - 모던한 보라/인디고 계열 */
	--primary-50: #f0f4ff;
	--primary-100: #e0e7ff;
	--primary-200: #c7d2fe;
	--primary-300: #a5b4fc;
	--primary-400: #818cf8;
	--primary-500: #6366f1;
	--primary-600: #4f46e5;
	--primary-700: #4338ca;
	--primary-800: #3730a3;
	--primary-900: #312e81;
	/* Secondary Colors - 모던한 사이안/틸 */
	--secondary-50: #f0fdfa;
	--secondary-100: #ccfbf1;
	--secondary-200: #99f6e4;
	--secondary-300: #5eead4;
	--secondary-400: #2dd4bf;
	--secondary-500: #14b8a6;
	--secondary-600: #0d9488;
	--secondary-700: #0f766e;
	--secondary-800: #115e59;
	--secondary-900: #134e4a;
	/* Accent Colors - 모던한 핑크/로즈 */
	--accent-50: #fdf2f8;
	--accent-100: #fce7f3;
	--accent-200: #fbcfe8;
	--accent-300: #f9a8d4;
	--accent-400: #f472b6;
	--accent-500: #ec4899;
	--accent-600: #db2777;
	--accent-700: #be185d;
	--accent-800: #9d174d;
	--accent-900: #831843;
	/* Neutral Colors - 따뜻한 그레이 */
	--gray-50: #fafaf9;
	--gray-100: #f5f5f4;
	--gray-200: #e7e5e4;
	--gray-300: #d6d3d1;
	--gray-400: #a8a29e;
	--gray-500: #78716c;
	--gray-600: #57534e;
	--gray-700: #44403c;
	--gray-800: #292524;
	--gray-900: #1c1917;
	/* Background - 더 모던한 배경 */
	--bg-primary: #ffffff;
	--bg-secondary: var(--gray-50);
	--bg-tertiary: var(--gray-100);
	--bg-dark: var(--gray-900);
	--bg-accent: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
	/* Text */
	--text-primary: var(--gray-900);
	--text-secondary: var(--gray-600);
	--text-tertiary: var(--gray-500);
	--text-inverse: var(--gray-50);
	/* Border */
	--border-light: var(--gray-200);
	--border-medium: var(--gray-300);
	--border-focus: var(--primary-500);
	/* Shadow - 더 모던한 그림자 */
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--shadow-colored: 0 10px 15px -3px rgb(99 102 241 / 0.1), 0 4px 6px -4px rgb(99 102 241 / 0.1);
	/* Spacing */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-12: 3rem;
	--space-16: 4rem;
	/* Border Radius */
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
	background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
}

/* Navigation */
.navbar {
	background: var(--bg-primary);
	border-bottom: 1px solid var(--border-light);
	padding: var(--space-2) 0;
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--space-6);
}

.logo {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary-600);
	text-decoration: none;
	letter-spacing: -0.025em;
}

.nav-menu {
	display: flex;
	gap: var(--space-8);
	list-style: none;
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-md);
	font-size: 1.1rem;
}

	.nav-link:hover, .nav-link.active {
		color: var(--gray-600);
		background: var(--gray-100);
		font-weight:700;
	}

.user-info {
	color: var(--text-primary);
	font-weight: 600;
	padding: var(--space-2) var(--space-4);
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-light);
	cursor: pointer;
}

.nav-actions {
	display: flex;
	gap: var(--space-3);
	align-items: center;
}

/* Main Container */
.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--space-8) var(--space-6);
}

/* Platform Navigation */
.platform-nav {
	display: flex;
	gap: var(--space-2);
	margin-bottom: var(--space-8);
	padding: var(--space-1);
	background: var(--bg-secondary);
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-light);
	overflow-x: auto;
}

.platform-tab {
	background: none;
	border: none;
	color: var(--text-secondary);
	padding: var(--space-3) var(--space-6);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border-radius: var(--radius-lg);
	white-space: nowrap;
	min-width: fit-content;
}

	.platform-tab.active {
		color: var(--primary-600);
		background: var(--bg-primary);
		box-shadow: var(--shadow-sm);
		border: 1px solid var(--border-light);
	}

	.platform-tab:hover:not(.active) {
		color: var(--text-primary);
		background: var(--bg-tertiary);
	}

/* Platform Content */
.platform-content {
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-xl);
	padding: var(--space-8);
	box-shadow: var(--shadow-sm);
	min-height: 600px;
}

/* 추가 유틸리티 스타일 (기존 디자인 유지) */
.platform-tab.disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

	.platform-tab.disabled:hover {
		color: var(--text-secondary);
		background: none;
	}

/* 반응형 스타일 (기존 패턴 유지) */
@media (max-width: 768px) {
	.platform-nav {
		flex-direction: column;
		padding: var(--space-2);
	}

	.platform-tab {
		text-align: center;
		padding: var(--space-3) var(--space-4);
	}
}

.content-section {
	/*display: none;*/
	animation: fadeIn 0.3s ease-in-out;
}

	.content-section.active {
		display: block;
	}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Section Headers */
.section-header {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-6);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--border-light);
}

	.section-header h2 {
		color: var(--text-primary);
		font-size: 1.5rem;
		font-weight: 600;
		margin: 0;
	}

.section-badge {
	background: var(--primary-100);
	color: var(--primary-700);
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-md);
	font-size: 0.75rem;
	font-weight: 500;
}

/* Forms */
.form-full {
	display: block;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-8);
	height: 100%;
}
.form-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-8);
	
}

.form-section, .result-section {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.form-group {
	margin-bottom: var(--space-6);
}

	.form-group label {
		display: block;
		margin-bottom: var(--space-2);
		color: var(--text-primary);
		font-weight: 500;
		font-size: 1rem;
	}

	.form-group input,
	.form-group textarea {
		width: 100%;
		padding: var(--space-3) var(--space-4);
		border: 1px solid var(--border-medium);
		border-radius: var(--radius-lg);
		background: var(--bg-primary);
		color: var(--text-primary);
		/*font-size: 0.875rem;*/
		font-size: 1rem;
		resize: vertical;
		transition: all 0.2s ease;
	}

	.form-group textarea {
		min-height: 160px;
	}


		.form-group input:focus,
		.form-group textarea:focus {
			outline: none;
			border-color: var(--primary-500);
			box-shadow: 0 0 0 3px var(--primary-100);
		}

	.form-group .prompt {
		min-height: 80px;
	}
/* Style Options */
.style-options {
	display: flex;
	gap: var(--space-3);
	margin-top: var(--space-2);
}

.style-option {
	flex: 1;
}

	.style-option input[type="radio"] {
		display: none;
	}

	.style-option label {
		display: block;
		padding: var(--space-3) var(--space-4);
		border: 1px solid var(--border-medium);
		border-radius: var(--radius-lg);
		text-align: center;
		cursor: pointer;
		transition: all 0.2s ease;
		background: var(--bg-primary);
		font-size: 1rem;
	}

	.style-option input[type="radio"]:checked + label {
		border-color: var(--primary-500);
		background: var(--primary-50);
		color: var(--primary-700);
	}

	.style-option label:hover:not(:has(input:checked)) {
		border-color: var(--border-medium);
		background: var(--bg-secondary);
	}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-6);
	border-radius: var(--radius-lg);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	min-height: 44px;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
	color: white;
	box-shadow: var(--shadow-colored);
	border: 1px solid var(--primary-600);
}

	.btn-primary:hover {
		background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
		transform: translateY(-1px);
		box-shadow: var(--shadow-lg);
	}

	.btn-primary:active {
		transform: translateY(0);
	}

.btn-secondary {
	background: var(--bg-primary);
	color: var(--text-primary);
	border: 1px solid var(--border-medium);
}

	.btn-secondary:hover {
		background: var(--bg-secondary);
		border-color: var(--border-medium);
	}

.btn-accent {
	background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
	color: white;
	box-shadow: 0 10px 15px -3px rgb(236 72 153 / 0.2), 0 4px 6px -4px rgb(236 72 153 / 0.2);
}

	.btn-accent:hover {
		background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
		transform: translateY(-1px);
		box-shadow: var(--shadow-lg);
	}

.btn-prompt {
	background: var(--secondary-500);
	color: white;
	border: 1px solid var(--border-medium);
}

	.btn-prompt:hover {
		background: var(--secondary-600);
		color: white;
		border-color: var(--border-medium);
	}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

.btn-full {
	width: 100%;
}

/* Result Section */
.result-content {
	flex: 1;
	background: var(--bg-secondary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	margin-bottom: var(--space-4);
	overflow-y: auto;
	min-height: 300px;
}

.byline {
	color: var(--primary-600);
	font-weight: 600;
	margin-bottom: var(--space-4);
	padding-bottom: var(--space-2);
	border-bottom: 1px solid var(--border-light);
	font-size: 1rem;
}

.article-text {
	line-height: 1.7;
	color: var(--text-primary);
}

	.article-text p {
		margin-bottom: var(--space-4);
	}

.result-actions {
	display: flex;
	gap: var(--space-3);
}

/* Voice Section */
.voice-textarea {
	flex: 1;
	min-height: 260px;
	margin-bottom: var(--space-2);
	padding: var(--space-4);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-lg);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 1rem;
	resize: vertical;
	width: 100%;
}

.voice-controls {
	display: flex;
	gap: var(--space-4);
	align-items: center;
	margin-bottom: var(--space-4);
	align-items: baseline;
}

.prompt-textarea {
	flex: 1;
	min-height: 40px;
	margin-bottom: var(--space-4);
	padding: var(--space-4);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-lg);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 1rem;
	resize: vertical;
}

.time-display {
	background: var(--primary-50);
	color: var(--primary-700);
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 1rem;
	border: 1px solid var(--primary-200);
}

/* Audio Player */
.audio-player {
	background: var(--bg-secondary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	text-align: center;
	margin-bottom: var(--space-4);
}

.audio-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-4);
	margin-bottom: var(--space-4);
}

.play-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
	border: none;
	color: white;
	font-size: 1.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 10px 15px -3px rgb(20 184 166 / 0.3), 0 4px 6px -4px rgb(20 184 166 / 0.3);
	text-decoration:none;
}

	.play-btn:hover {
		background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
		transform: scale(1.05);
		box-shadow: var(--shadow-xl);
	}

.progress-bar {
	flex: 1;
	height: 6px;
	background: var(--gray-200);
	border-radius: 3px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--secondary-500) 0%, var(--secondary-400) 100%);
	width: 0%;
	transition: width 0.1s ease;
}

/* Video Editing */
.video-steps {
	display: flex;
	justify-content: center;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}

.step {
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-lg);
	background: var(--bg-secondary);
	color: var(--text-secondary);
	font-size: 1rem;
	font-weight: 500;
	border: 1px solid var(--border-light);
	cursor: pointer;
	transition: all 0.2s ease;
}

	.step.active {
		background: var(--primary-600);
		color: white;
		border-color: var(--primary-600);
	}

	.step:hover:not(.active) {
		background: var(--bg-tertiary);
		border-color: var(--border-medium);
	}

/* Video Step Content */
.video-step-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

	.video-step-content.active {
		display: block;
	}

/* Upload Area */
.upload-area {
	border: 2px dashed var(--border-medium);
	border-radius: var(--radius-xl);
	padding: var(--space-12);
	text-align: center;
	transition: all 0.2s ease;
	cursor: pointer;
	background: var(--bg-secondary);
}

	.upload-area:hover {
		border-color: var(--primary-400);
		background: var(--primary-50);
	}

.upload-icon {
	font-size: 3rem;
	margin-bottom: var(--space-4);
}

/* Info Boxes */
.info-box {
	background: var(--primary-50);
	border-left: 4px solid var(--primary-500);
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	margin: var(--space-4) 0;
}

	.info-box h4 {
		color: var(--primary-700);
		margin-bottom: var(--space-2);
		font-size: 1rem;
		font-weight: 600;
	}

	.info-box p {
		color: var(--primary-600);
		font-size: 1rem;
		margin: 0;
		line-height: 1.5;
	}

/* Tables */
.data-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

	.data-table th,
	.data-table td {
		padding: var(--space-4);
		text-align: left;
		border-bottom: 1px solid var(--border-light);
	}

	.data-table th {
		background: var(--bg-secondary);
		color: var(--text-primary);
		font-weight: 600;
		font-size: 1rem;
	}

	.data-table td {
		color: var(--text-secondary);
		font-size: 1rem;
	}

	.data-table tr:hover {
		background: var(--bg-secondary);
	}

/* Search Bar */
.search-bar {
	display: flex;
	gap: var(--space-3);
	margin-bottom: var(--space-6);
}

.search-input {
	flex: 1;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-lg);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 1rem;
}

/* Video Items */
.video-item-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}

.video-item {
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: var(--space-4);
	text-align: center;
	transition: all 0.2s ease;
}

	.video-item:hover {
		border-color: var(--primary-300);
		box-shadow: var(--shadow-md);
	}

.video-thumbnail {
	width: 100%;
	height: 100px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--primary-500);
}

/* Loading Animation */
.loading {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid var(--gray-300);
	border-top: 2px solid var(--primary-500);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

	100% {
		transform: rotate(360deg);
	}
}

/* Notification */
.notification {
	position: fixed;
	top: var(--space-6);
	right: var(--space-6);
	background: var(--bg-primary);
	color: var(--text-primary);
	padding: var(--space-4) var(--space-6);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xl);
	border: 1px solid var(--border-light);
	z-index: 1000;
	transform: translateX(400px);
	transition: transform 0.3s ease;
}

	.notification.show {
		transform: translateX(0);
	}

/* Success States */
.success-state {
	text-align: center;
	padding: var(--space-6);
	background: white;
	border-radius: var(--radius-lg);
}

.success-icon {
	font-size: 4rem;
	margin-bottom: var(--space-4);
	color: var(--primary-500);
}

/* Responsive */
@media (max-width: 768px) {
	.main-container {
		padding: var(--space-4);
	}

	.form-layout {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}

	.platform-nav {
		flex-direction: column;
		padding: var(--space-2);
	}

	.nav-menu {
		display: none;
	}

	.video-steps {
		flex-wrap: wrap;
		gap: var(--space-2);
	}

	.step {
		font-size: 0.75rem;
		padding: var(--space-2) var(--space-3);
	}

	.result-actions {
		flex-direction: column;
	}

	.nav-actions {
		flex-direction: column;
		gap: var(--space-2);
	}
}

.script-button {
	background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
	color: white;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 10px 15px -3px rgb(236 72 153 / 0.2), 0 4px 6px -4px rgb(236 72 153 / 0.2);
	transition: all 0.2s ease;
}

	.script-button:hover {
		background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
		transform: translateY(-1px);
		box-shadow: var(--shadow-lg);
	}


.data-table tr td a {
	color: var(--text-secondary);
	font-size: 1rem;
}
.paginate a {
	color:var(--text-secondary);
	font-weight: 600
}

.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

.button-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	transition: all 0.2s ease;
}

	.close-btn:hover {
		color: #333;
		background: #f0f0f0;
	}

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

	100% {
		transform: rotate(360deg);
	}
}

/* 오디오 플레이어 개선된 스타일 */
.audio-player {
	background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary-50) 100%);
	border: 1px solid var(--primary-200);
	border-radius: var(--radius-xl);
	padding: var(--space-8);
	text-align: center;
	margin-bottom: var(--space-4);
	box-shadow: var(--shadow-md);
	transition: all 0.3s ease;
}

	.audio-player:hover {
		box-shadow: var(--shadow-lg);
		transform: translateY(-2px);
	}

.audio-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-4);
	margin-bottom: var(--space-4);
	padding: var(--space-4);
	background: var(--bg-primary);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.play-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
	border: none;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

	.play-btn:hover {
		background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
		transform: scale(1.05);
		box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
	}

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

	.play-btn::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 0;
		height: 0;
		background: rgba(255, 255, 255, 0.2);
		border-radius: 50%;
		transform: translate(-50%, -50%);
		transition: all 0.3s ease;
	}

	.play-btn:hover::before {
		width: 100%;
		height: 100%;
	}

.progress-bar {
	flex: 1;
	height: 8px;
	background: var(--gray-200);
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
}

	.progress-bar:hover {
		height: 10px;
		background: var(--gray-300);
	}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--secondary-500) 0%, var(--secondary-400) 100%);
	width: 0%;
	transition: width 0.1s ease;
	border-radius: 4px;
	position: relative;
}

	.progress-fill::after {
		content: '';
		position: absolute;
		right: 0;
		top: 50%;
		width: 12px;
		height: 12px;
		background: var(--secondary-600);
		border-radius: 50%;
		transform: translate(50%, -50%);
		opacity: 0;
		transition: opacity 0.2s ease;
	}

.progress-bar:hover .progress-fill::after {
	opacity: 1;
}

#timeDisplay {
	font-family: 'Courier New', monospace;
	font-weight: 600;
	color: var(--text-secondary);
	font-size: 0.9rem;
	min-width: 80px;
	text-align: right;
	background: var(--bg-secondary);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
}

/* 로딩 상태 스타일 */
.audio-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.7;
}

	.audio-loading::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 20px;
		height: 20px;
		border: 2px solid var(--primary-200);
		border-top: 2px solid var(--primary-500);
		border-radius: 50%;
		transform: translate(-50%, -50%);
		animation: spin 1s linear infinite;
	}

/* 오디오 에러 상태 */
.audio-error {
	background: var(--accent-50);
	border-color: var(--accent-200);
}

	.audio-error .play-btn {
		background: var(--gray-400);
		cursor: not-allowed;
	}

		.audio-error .play-btn:hover {
			background: var(--gray-400);
			transform: none;
		}

/* 오디오 완료 상태 */
.audio-ended .play-btn {
	background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
	.audio-controls {
		flex-direction: column;
		gap: var(--space-3);
	}

	.progress-bar {
		width: 100%;
		order: 2;
	}

	.play-btn {
		width: 50px;
		height: 50px;
		font-size: 1.2rem;
		order: 1;
	}

	#timeDisplay {
		order: 3;
		text-align: center;
		min-width: auto;
	}
}

/* 다운로드 버튼 스타일 추가 */
.audio-download-btn {
	background: var(--gray-100);
	color: var(--text-secondary);
	border: 1px solid var(--border-medium);
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-size: 1rem;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

	.audio-download-btn:hover {
		background: var(--gray-200);
		color: var(--text-primary);
		transform: translateY(-1px);
	}

/* 볼륨 컨트롤 (선택사항) */
.volume-control {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-left: var(--space-3);
}

.volume-slider {
	width: 60px;
	height: 4px;
	background: var(--gray-200);
	border-radius: 2px;
	outline: none;
	cursor: pointer;
}

	.volume-slider::-webkit-slider-thumb {
		appearance: none;
		width: 12px;
		height: 12px;
		background: var(--secondary-500);
		border-radius: 50%;
		cursor: pointer;
	}

	.volume-slider::-moz-range-thumb {
		width: 12px;
		height: 12px;
		background: var(--secondary-500);
		border-radius: 50%;
		cursor: pointer;
		border: none;
	}

/* 애니메이션 */
@keyframes audioWave {
	0%, 100% {
		transform: scaleY(1);
	}

	50% {
		transform: scaleY(1.5);
	}
}

.audio-wave {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: var(--space-3);
}

	.audio-wave span {
		width: 3px;
		height: 20px;
		background: var(--secondary-500);
		border-radius: 2px;
		animation: audioWave 1s ease-in-out infinite;
		opacity: 0;
	}

	.audio-wave.playing span {
		opacity: 1;
	}

	.audio-wave span:nth-child(1) {
		animation-delay: 0s;
	}

	.audio-wave span:nth-child(2) {
		animation-delay: 0.1s;
	}

	.audio-wave span:nth-child(3) {
		animation-delay: 0.2s;
	}

	.audio-wave span:nth-child(4) {
		animation-delay: 0.3s;
	}

	.audio-wave span:nth-child(5) {
		animation-delay: 0.4s;
	}