/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 광고 배너 스타일 */
.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
    transition: margin 0.3s ease;
}

/* 개인정보 보호 문구 스타일 */
.privacy-notice {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0 auto 30px auto;
    max-width: 800px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: margin 0.3s ease;
}

.privacy-notice p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

.ad-placeholder {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* 메인 컨테이너 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
    transition: padding 0.3s ease;
}

/* 화면 전환 */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 헤더 스타일 */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 선택 화면 */
.selection-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.selection-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.5rem;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.option-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.option-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.option-card p {
    color: #666;
    margin-bottom: 20px;
}

.option-card ul {
    text-align: left;
    margin-bottom: 25px;
    padding-left: 20px;
}

.option-card li {
    margin-bottom: 8px;
    color: #555;
}

.select-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 진행 바 */
.progress-bar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.progress-fill {
    height: 8px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 질문 컨테이너 */
.question-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: padding 0.3s ease, margin-bottom 0.3s ease;
}

#question-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.5;
}

/* 옵션 스타일 */
.options-container {
    margin-bottom: 30px;
}

.option-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.option-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.option-item input[type="radio"] {
    display: none;
}

.option-item label {
    cursor: pointer;
    display: block;
    font-weight: 500;
    font-size: 1rem;
}

/* 숫자 입력 스타일 */
.number-input-container {
    text-align: center;
    margin: 20px 0;
}

.number-input {
    width: 100px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.number-input:focus {
    outline: none;
    border-color: #667eea;
}

.number-input-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #666;
}

/* 버튼 스타일 */
.navigation-buttons {
    text-align: center;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 결과 화면 */
.result-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.result-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.result-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: padding 0.3s ease;
}

.score-display {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

#final-score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-unit {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 5px;
}

#score-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.result-details {
    margin-bottom: 40px;
}

.result-details h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.result-breakdown-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.result-breakdown-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-breakdown-item p {
    color: #666;
    margin: 0;
}

.action-buttons {
    text-align: center;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .selection-content,
    .question-container,
    .result-content {
        padding: 25px;
    }
    
    .option-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .option-card {
        padding: 25px;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    #final-score {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .selection-content,
    .question-container,
    .result-content {
        padding: 20px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    #final-score {
        font-size: 2rem;
    }
    
    .score-unit {
        font-size: 1rem;
    }

    /* action-buttons 버튼 세로 정렬 및 간격 확보 */
    .action-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 20px;
    }
    .action-buttons .btn {
        margin: 0;
    }
    
    .privacy-notice {
        margin: 15px auto;
        padding: 12px 15px;
    }
    
    .privacy-notice p {
        font-size: 0.8rem;
    }
}

/* Footer 스타일 */
.main-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-top: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-brand p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nav-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section li {
    margin-bottom: 8px;
}

.nav-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding-left: 20px;
    position: relative;
}

.nav-section a::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.nav-section a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-section a:hover::before {
    color: white;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom p:first-child {
    font-weight: 500;
    opacity: 0.8;
}

/* Footer 반응형 디자인 */
@media (max-width: 768px) {
    .footer-container {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        text-align: center;
    }
    
    .nav-section {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        padding: 18px 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-section h4 {
        margin-bottom: 12px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-weight: 600;
    }
    
    .nav-section ul {
        margin-top: 8px;
    }
    
    .nav-section li {
        margin-bottom: 8px;
    }
    
    .nav-section a {
        padding-left: 0;
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.4;
        margin-bottom: 6px;
        display: block;
        text-align: center;
    }
    
    .nav-section a::before {
        display: none;
    }
    
    .footer-brand h3 {
        font-size: 1.3rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 25px 10px 10px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .nav-section {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-weight: 700;
    }
    
    .nav-section ul {
        margin-top: 10px;
    }
    
    .nav-section li {
        margin-bottom: 10px;
    }
    
    .nav-section a {
        font-size: 0.9rem;
        padding-left: 0;
        margin-bottom: 8px;
        display: block;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.4;
        text-align: center;
    }
    
    .nav-section a::before {
        display: none;
    }
    
    .nav-section a:hover {
        transform: none;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-section a:hover::before {
        transform: none;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-brand h3 {
        font-size: 1.2rem;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
    }
}

/* Privacy Notice Styles - Compact Version */
.privacy-notice {
    display: block;
    visibility: visible;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.notice-content-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.notice-content-compact:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notice-text-compact {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

.notice-links {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    line-height: 1.2;
}

.notice-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline;
}

.link-separator {
    color: #999;
    font-weight: 400;
    margin: 0 4px;
    display: inline;
}

.notice-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 반응형 디자인 - Privacy Notice Compact */
@media (max-width: 768px) {
    .privacy-notice {
        display: block !important;
        visibility: visible !important;
        margin: 15px auto 20px auto;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .notice-content-compact {
        gap: 6px;
        padding: 12px;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .notice-text-compact {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .notice-links {
        margin-top: 3px;
        font-size: 0.85rem;
    }
    
    .notice-links a {
        font-size: 0.85rem;
    }
    
    .link-separator {
        margin: 0 3px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .privacy-notice {
        display: block !important;
        visibility: visible !important;
        margin: 10px auto 15px auto;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .notice-content-compact {
        gap: 5px;
        padding: 10px;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .notice-text-compact {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .notice-links {
        margin-top: 2px;
        font-size: 0.8rem;
    }
    
    .notice-links a {
        font-size: 0.8rem;
    }
    
    .link-separator {
        margin: 0 2px;
        font-size: 0.8rem;
    }
} 