@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");
:root { --primary: #6c5ce7; --primary-hover: #5b4bc4; --bg: #f5f6fa; --surface: #ffffff; --text: #2d3436; --text-light: #636e72; --border: #dfe6e9; --radius: 20px; --shadow: 0 10px 30px rgba(0,0,0,0.08); }

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

body { font-family: 'Pretendard', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

.container { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }

.site-header { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.site-header a { text-decoration: none; color: var(--text); }
.site-header h2 { font-size: 1.1rem; margin: 0; font-weight: 700; }

main { flex: 1; padding: 16px 24px 24px; display: flex; flex-direction: column; justify-content: flex-start; }

footer { text-align: center; padding: 24px; color: var(--text-light); font-size: 0.85rem; border-top: 1px solid var(--border); }

/* Home / Landing List */
.home-wrapper { text-align: center; padding: 20px 0; }

.hero h1 { font-size: 1.6rem; margin-bottom: 8px; font-weight: 800; }

.hero p { color: var(--text-light); margin-bottom: 32px; }

.hero-home, .archive-hero { text-align: left; margin-bottom: 28px; }

.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--primary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; }

.home-section { margin-top: 28px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; text-align: left; }

.section-heading h2 { font-size: 1.1rem; margin-bottom: 4px; }

.section-heading p, .section-count { color: var(--text-light); font-size: 0.9rem; }

.test-list { display: flex; flex-direction: column; gap: 16px; }

.test-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); border: 2px solid var(--border); text-decoration: none; color: inherit; transition: all 0.2s ease; background: var(--surface); text-align: left; }
.test-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(108, 92, 231, 0.1); border-color: var(--primary); }

.test-thumb { font-size: 2.8rem; }

.test-info { flex: 1; }

.test-meta-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #f1f3f5; color: var(--text-light); font-size: 0.78rem; font-weight: 700; }

.chip-primary { background: rgba(108, 92, 231, 0.12); color: var(--primary); }

.test-info h3 { font-size: 1.15rem; margin-bottom: 4px; font-weight: 700; }

.test-info p { margin: 0; color: var(--text-light); font-size: 0.9rem; }

.summary-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.summary-card { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border-radius: 18px; background: #f8f9ff; border: 1px solid rgba(108, 92, 231, 0.1); text-align: left; }

.summary-card strong { font-size: 1.25rem; margin-bottom: 4px; }

.summary-card span { color: var(--text-light); font-size: 0.9rem; }

.summary-card-wide { grid-column: 1 / -1; }

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

.archive-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: inherit; background: #fff; }

.archive-item:hover { border-color: var(--primary); box-shadow: 0 8px 18px rgba(108, 92, 231, 0.08); }

.archive-emoji { font-size: 1.6rem; flex-shrink: 0; }

.archive-title, .archive-body { flex: 1; text-align: left; }

.archive-body { display: flex; flex-direction: column; gap: 4px; }

.archive-body small, .archive-date, .archive-arrow, .archive-toolbar a { color: var(--text-light); }

.archive-arrow { font-weight: 700; }

.archive-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.archive-toolbar a { text-decoration: none; }

.archive-list-panel { text-align: left; }

.archive-item-detailed { align-items: flex-start; }

.archive-date { font-size: 0.82rem; white-space: nowrap; }

.seo-copy-block { margin-top: 28px; padding: 20px; border-radius: 18px; background: #fafbff; border: 1px solid rgba(108, 92, 231, 0.08); text-align: left; }

.seo-copy-block h2 { font-size: 1rem; margin-bottom: 10px; }

.seo-copy-block p { margin: 0 0 10px; color: var(--text-light); font-size: 0.94rem; }

.seo-copy-block p:last-child { margin-bottom: 0; }

/* Landing Template */
.landing-container { text-align: center; padding: 20px 0; }

.landing-container h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; word-break: keep-all; }

.landing-image { font-size: 7rem; margin: 30px 0; animation: float 3s ease-in-out infinite; }

.landing-desc { margin-bottom: 40px; color: var(--text-light); font-size: 1.05rem; word-break: keep-all; }

@keyframes float { 0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); } }
/* Common Buttons */
.btn { display: block; width: 100%; padding: 18px; border-radius: 16px; font-size: 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; box-sizing: border-box; text-align: center; border: none; transition: all 0.2s; }

.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3); }

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4); }

.btn-secondary { background: var(--border); color: var(--text); margin-top: 12px; }

.btn-secondary:hover { background: #d1d8dc; }

/* Test Question Layout */
.test-container { text-align: center; width: 100%; display: flex; flex-direction: column; flex: 1; }

.test-header { margin-bottom: 30px; }

.test-title { font-size: 1.2rem; margin-bottom: 20px; color: var(--text-light); font-weight: 600; }

.progress-bar-container { width: 100%; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; margin-bottom: 12px; }

.progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.progress-text { font-size: 0.95rem; color: var(--primary); font-weight: 700; }

.question-container { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 140px; margin-bottom: 40px; animation: fadeIn 0.4s ease; }

#question-text { font-size: 1.5rem; font-weight: 800; word-break: keep-all; line-height: 1.4; }

.options-container { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.test-actions { margin-top: auto; }

.btn-back { box-shadow: none; }

.btn-back:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.option-btn { padding: 18px 24px; border-radius: 16px; background: var(--surface); border: 2px solid var(--border); color: var(--text); font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; text-align: center; word-break: keep-all; animation: slideUp 0.4s ease backwards; }

.option-btn:nth-child(1) { animation-delay: 0.1s; }

.option-btn:nth-child(2) { animation-delay: 0.15s; }

.option-btn:nth-child(3) { animation-delay: 0.2s; }

.option-btn:nth-child(4) { animation-delay: 0.25s; }

.option-btn:hover, .option-btn:active { background: rgba(108, 92, 231, 0.08); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

@keyframes fadeIn { from { opacity: 0; }
  to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); } }
/* Result Layout */
.result-container { text-align: center; animation: fadeIn 0.6s ease; }

.result-header h2 { font-size: 1.1rem; color: var(--text-light); margin-bottom: 8px; font-weight: 600; }

.result-type { font-size: 2rem; color: var(--primary); margin-bottom: 24px; font-weight: 800; word-break: keep-all; }

.result-image { margin-bottom: 30px; }

.result-image img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.content-area { background: #f8f9fa; padding: 24px; border-radius: var(--radius); margin-bottom: 32px; text-align: left; }

.content-area p { margin-bottom: 12px; }

.content-area p:last-child { margin-bottom: 0; }

.content-area h3 { font-size: 1.2rem; margin: 20px 0 10px 0; color: var(--primary); }

.result-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.result-actions .btn { margin: 0; }

sult-actions .btn { margin: 0; }
