@charset "utf-8";

/* 애니메이션 */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* 입력 섹션 */
.place-input-section {
	background: #fff;
	padding: 30px;
	margin-bottom: 20px;
	border-radius: 15px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.place-input-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.place-input-section-title {
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--purple01);
	margin: 0;
}

.place-input-section-print {
	margin-left: 20px;
	color: inherit;
	font-size: 1.2em;
	text-decoration: none;
}

.place-input-notice {
	background: #f8f9fa;
	padding: 15px 20px;
	border-radius: 8px;
	border-left: 4px solid #1976d2;
	margin-bottom: 25px;
}

.place-input-notice p {
	margin: 0;
	color: #666;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.place-input-notice i {
	color: #1976d2;
	margin-right: 8px;
}

.input-group {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.input-group input {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.2s;
}

.input-group input:focus {
	border-color: #1976d2;
}

/* N지수 박스 */
.n-index-box {
	display: flex;
	gap: 20px;
	margin-top: 30px;
}

.n-index-item {
	flex: 1;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 15px;
	padding: 25px;
	color: #fff;
	text-align: center;
}

.n-index-item h4 {
	font-size: 1.25rem;
	opacity: 0.9;
	margin-bottom: 10px;
	font-weight: 700;
	color: #fff;
}

.n-index-item .value {
	font-size: 2.5rem;
	font-weight: 800;
	color: #fff;
}

.n-index-item-n1 {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.n-index-item-n2 {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.n-index-item-n3 {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.n-index-desc {
	font-size: 0.875rem;
	margin-top: 10px;
	opacity: 0.9;
	color: #fff;
}

/* 경쟁사 섹션 */
.competitor-section {
	margin-top: 30px;
}

.competitor-group {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

.competitor-group h4 {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.competitor-group.high h4 { 
	color: var(--pink01); 
}

.competitor-group.middle h4 { 
	color: var(--yellow01); 
}

.competitor-group.current h4 { 
	color: var(--green01); 
}

.competitor-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 개선 제안 섹션 */
.improvement-section {
	margin-top: 30px;
}

.improvement-item {
	background: linear-gradient(135deg, rgba(106, 0, 227, 0.05) 0%, rgba(106, 0, 227, 0.02) 100%);
	border-left: 4px solid var(--purple01);
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 15px;
}

.improvement-item h5 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--purple01);
	margin-bottom: 10px;
}

.improvement-item p {
	font-size: 0.9375rem;
	color: var(--text-color02);
	line-height: 1.6;
}

/* 버튼 스타일 */
.analyze-button-wrapper {
	display: flex;
	gap: 10px;
	justify-content: center;
}

#analyzeBtn {
	padding: 14px 40px;
	background-color: #1976d2;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

#analyzeBtn:hover {
	background-color: #1565c0;
}

/* 로딩 섹션 */
#loadingSection {
	display: none;
	text-align: center;
	padding: 30px;
	margin-top: 20px;
}

.loading-spinner {
	display: inline-block;
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #1976d2;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.loading-text {
	margin-top: 20px;
	color: #666;
	font-size: 1rem;
	font-weight: 600;
}

.progress-container {
	max-width: 400px;
	margin: 20px auto;
}

.progress-bar-wrapper {
	background: #f0f0f0;
	border-radius: 10px;
	height: 20px;
	overflow: hidden;
}

#progressBar {
	background: linear-gradient(90deg, #1976d2, #42a5f5);
	height: 100%;
	width: 0%;
	transition: width 0.3s ease;
}

#progressText {
	margin-top: 10px;
	color: #999;
	font-size: 0.875rem;
}

/* 리포트 섹션 */
.rpt_cont {
	display: none;
	width: 100%;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--purple01);
}

/* 기본 정보 섹션 */
.basic-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.info-card {
	padding: 20px;
	border-radius: 12px;
	text-align: center;
}

.info-card-purple {
	background: var(--purple05);
}

.info-card-blue {
	background: var(--blue05);
}

.info-card-orange {
	background: var(--orange04);
}

.info-card-green {
	background: var(--green04);
}

.info-card-pink {
	background: var(--pink04);
}

.info-card-label {
	font-size: 0.875rem;
	color: var(--text-color03);
	margin-bottom: 10px;
}

.info-card-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.info-card-value-large {
	font-size: 2.5rem;
	font-weight: 800;
}

.info-card-value-purple {
	color: var(--purple01);
}

.info-card-value-blue {
	color: var(--blue01);
}

.info-card-value-orange {
	color: var(--orange01);
}

.info-card-value-green {
	color: var(--green01);
}

.info-card-value-pink {
	color: var(--pink01);
}

/* 순위 및 검색량 섹션 */
.ranking-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.detail-info-container {
	background: var(--bg-color02);
	padding: 25px;
	border-radius: 12px;
}

.detail-info-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--text-color01);
}

#detail-info {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

