@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary: #6c5ce7;
    --primary-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --secondary: #00cec9;
    --bg-color: #f8f9fa;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --card-bg: #ffffff;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(108, 92, 231, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

body { 
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    display: flex; 
    justify-content: center; 
    min-height: 100vh; 
    -webkit-font-smoothing: antialiased;
}

#app { 
    width: 100%; 
    max-width: 480px; 
    background: var(--card-bg); 
    box-shadow: var(--shadow-soft); 
    overflow-x: hidden; 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

.screen { 
    display: none; 
    padding: 40px 24px; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
    opacity: 0;
    transform: translateY(20px);
}
.screen.active { display: flex; }

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

/* Intro */
.intro-img { 
    width: 100%; 
    height: 320px; 
    object-fit: cover; 
    border-radius: var(--radius-lg); 
    margin-bottom: 30px; 
    box-shadow: var(--shadow-soft); 
}
h1 { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 12px; color: var(--text-main); letter-spacing: -0.5px; }
p { text-align: center; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; font-size: 16px; }

.primary-btn { 
    background: var(--primary-gradient); 
    color: white; 
    border: none; 
    padding: 18px 32px; 
    font-size: 18px; 
    border-radius: 100px; 
    cursor: pointer; 
    width: 100%; 
    transition: all 0.3s ease; 
    font-family: inherit; 
    font-weight: 700; 
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}
.primary-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.4); 
}

/* Question */
.progress-bar { 
    width: 100%; 
    height: 6px; 
    background: #f1f2f6; 
    border-radius: 10px; 
    margin-bottom: 40px; 
    overflow: hidden; 
}
#progress { 
    height: 100%; 
    background: var(--primary-gradient); 
    width: 0%; 
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    border-radius: 10px;
}
#question-text { 
    font-size: 22px; 
    font-weight: 700;
    text-align: left; 
    width: 100%;
    margin-bottom: 30px; 
    line-height: 1.5; 
    color: #1e272e;
    word-break: keep-all;
}
#options-container { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
.option-btn { 
    background: var(--card-bg); 
    border: 1px solid #dfe4ea; 
    padding: 20px; 
    border-radius: var(--radius-md); 
    font-size: 16px; 
    color: var(--text-main);
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    font-family: inherit; 
    text-align: left; 
    line-height: 1.5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
}
.option-btn:hover { 
    border-color: var(--primary); 
    background: #fcfbfe; 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-hover); 
}

/* Loading */
.spinner { 
    width: 60px; 
    height: 60px; 
    border: 4px solid #f1f2f6; 
    border-top-color: var(--primary); 
    border-radius: 50%; 
    animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite; 
    margin-bottom: 30px; 
    margin-top: 80px; 
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result-title { font-size: 20px; margin-bottom: 24px; color: var(--text-muted); font-weight: 600; }
.result-card { 
    background: var(--card-bg); 
    border-radius: var(--radius-lg); 
    padding: 30px 24px; 
    width: 100%; 
    box-shadow: var(--shadow-soft); 
    border: 1px solid rgba(0,0,0,0.04); 
    margin-bottom: 30px; 
}
#metaphor { font-size: 32px; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 16px; letter-spacing: -1px; word-break: keep-all; text-wrap: balance; line-height: 1.3; }
.hashtags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hashtag { background: #f1f2f6; padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: #2f3542; }
.summary { font-size: 17px; font-weight: 700; text-align: left; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f1f2f6; color: var(--text-main); line-height: 1.5; word-break: keep-all; }
.details-list { list-style-type: none; padding-left: 0; }
.details-list li { position: relative; padding-left: 24px; margin-bottom: 14px; line-height: 1.6; font-size: 15px; color: #4b4b4b; }
.details-list li::before { content: '✨'; position: absolute; left: 0; top: 0; font-size: 14px; }

.ad-banner { background: #fdfbfb; border: 1px solid #e0e0e0; padding: 12px; text-align: center; font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); margin-bottom: 12px; width: 100%; color: var(--text-muted); }
.premium-btn { 
    background: var(--text-main); 
    color: white; 
    border: none; 
    padding: 18px; 
    font-size: 16px; 
    border-radius: var(--radius-md); 
    cursor: pointer; 
    width: 100%; 
    font-weight: 700; 
    font-family: inherit; 
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.premium-btn:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* Premium Guide */
#premium-screen { padding: 0; background: #fafafa; }
#guide-content-to-pdf { width: 100%; padding: 40px 24px; background: #fafafa; }
#guide-content-to-pdf h1 { font-size: 28px; text-align: left; margin-bottom: 8px; color: var(--primary); }
.subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; text-align: left;}

.guide-chapter { page-break-inside: avoid; margin-bottom: 48px; width: 100%; background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.02); }
.chapter-img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 24px; }
.chapter-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 16px; border-left: 4px solid var(--primary); padding-left: 14px; text-align: left; letter-spacing: -0.5px;}
.chapter-text { font-size: 16px; line-height: 1.8; color: #444; text-align: left; word-break: keep-all; }
