/* 아파트 시세 조회 사이트 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3436;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page {
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* [광고] 광고 컨테이너 스타일 */
.ad-container {
    margin: 16px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(116, 185, 255, 0.2);
    text-align: center;
}

.ad-container.top {
    margin-bottom: 20px;
}

.ad-container.mid {
    margin: 24px 0;
}

.ad-container.result {
    margin: 24px 0;
}

/* 시작 페이지 스타일 */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.building-icon, .chart-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.chart-icon {
    animation-delay: 1.5s;
}

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

.main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 20px;
    line-height: 1.3;
}

.subtitle-container {
    margin-bottom: 30px;
}

.feature-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-card {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
}

.vs-arrow {
    font-size: 1.5rem;
    color: #74b9ff;
}

.info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid #74b9ff;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text {
    font-weight: 600;
    color: #2d3436;
    font-size: 0.95rem;
}

.description {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.description strong {
    color: #0984e3;
}

.start-btn {
    background: linear-gradient(45deg, #e17055, #fdcb6e);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(225, 112, 85, 0.4);
    text-transform: none;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(225, 112, 85, 0.5);
}

/* 질문 페이지 스타일 */
#questionPage .container {
    padding-top: 40px;
}

.progress-container {
    margin-bottom: 40px;
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00b894, #00cec9);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.question-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.question-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-item {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid transparent;
    padding: 18px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.option-item:hover {
    background: rgba(116, 185, 255, 0.2);
    border-color: #74b9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
}

.option-item.selected {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    border-color: #0984e3;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(9, 132, 227, 0.4);
}

/* 분석 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.analysis-header h3 {
    font-size: 1.4rem;
    color: #2d3436;
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.analysis-header p {
    color: #636e72;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.analysis-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.loading-animation {
    margin: 30px 0;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #74b9ff;
    border-radius: 50%;
    animation: loading 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-container {
    margin-top: 20px;
}

.countdown-circle {
    width: 60px;
    height: 60px;
    border: 3px solid #e1e8ed;
    border-top: 3px solid #74b9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.countdown-timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #74b9ff;
}

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

.popup-ad-container {
    margin-top: 25px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(116, 185, 255, 0.2);
    text-align: center;
}

/* 결과 페이지 스타일 */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00b894, #00cec9);
    box-shadow: 0 15px 40px rgba(0, 184, 148, 0.3);
}

.result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.result-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.result-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.sites-summary {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(116, 185, 255, 0.2);
}

.recommended-sites {
    margin-bottom: 25px;
}

.site-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(116, 185, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.site-item:hover {
    border-color: #74b9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.2);
}

.site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.site-rank {
    background: linear-gradient(45deg, #e17055, #fdcb6e);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.site-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3436;
}

.site-description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.site-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag {
    background: rgba(116, 185, 255, 0.15);
    color: #0984e3;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.site-link {
    display: inline-block;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.site-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.primary-btn, .kakao-share, .restart-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.primary-btn {
    background: linear-gradient(45deg, #e17055, #fdcb6e);
    color: white;
    box-shadow: 0 10px 30px rgba(225, 112, 85, 0.4);
}

.kakao-share {
    background: #FEE500;
    color: #3C1E1E;
    box-shadow: 0 10px 30px rgba(254, 229, 0, 0.4);
}

.restart-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3436;
    border: 2px solid rgba(116, 185, 255, 0.3);
}

.primary-btn:hover, .kakao-share:hover, .restart-btn:hover {
    transform: translateY(-2px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .feature-cards {
        flex-direction: column;
        gap: 10px;
    }
    
    .vs-arrow {
        transform: rotate(90deg);
    }
    
    .question-container {
        padding: 30px 20px;
    }
    
    .question-title {
        font-size: 1.2rem;
    }
    
    .result-content {
        padding: 20px;
    }
    
    .action-buttons {
        gap: 12px;
    }
    
    .primary-btn, .kakao-share, .restart-btn {
        min-width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.3rem;
    }
    
    .info-section {
        gap: 10px;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

/* 사이트 모달 스타일 */
.sites-modal {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #e1f5fe;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
}

.site-section {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.site-section:last-child {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left-color: #f39c12;
}

.site-section h3 {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.site-section:last-child h3 {
    color: #f39c12;
}

.site-detail p {
    margin-bottom: 8px;
    color: #2d3436;
    line-height: 1.6;
}

.site-detail strong {
    color: #667eea;
    font-weight: 600;
}

.site-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.site-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.site-section ul {
    padding-left: 20px;
    margin-top: 12px;
}

.site-section li {
    margin-bottom: 8px;
    color: #2d3436;
    line-height: 1.6;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .sites-modal {
        max-width: 95vw;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .site-section {
        padding: 16px;
        margin-bottom: 16px;
    }
}
