@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary: #3b82f6;
    --bg-color: #09090b;
    --surface: rgba(24, 24, 27, 0.65);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

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

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    overflow-x: hidden;
}

.container {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 600px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    display: none;
    z-index: 10;
}

.active {
    display: block;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: keep-all;
    letter-spacing: -0.5px;
}

p.subtitle {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.emoji-wrap {
    font-size: 80px;
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--glow-shadow);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

.btn:hover::after {
    opacity: 1;
}

/* Question Screen */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

.question-text {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
    line-height: 1.4;
    color: #fff;
    letter-spacing: -0.5px;
}

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

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    padding: 24px 20px;
    border-radius: 20px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    word-break: keep-all;
    line-height: 1.5;
}

.option-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Result Screen */
#result-screen h2 {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.result-type {
    font-size: 72px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 5px;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    word-break: keep-all;
    color: #e2e8f0;
}

.result-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--surface-border);
    word-break: keep-all;
}

.jobs-container {
    text-align: left;
    margin-bottom: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.jobs-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.job-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-tag:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Decorative Background Elements */
.bg-shape {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    animation: drift 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.shape-1 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.15);
    top: -150px; left: -150px;
}

.shape-2 {
    width: 500px; height: 500px;
    background: rgba(59, 130, 246, 0.12);
    bottom: -200px; right: -200px;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

@media (max-width: 480px) {
    .container { padding: 40px 25px; border-radius: 20px; }
    h1 { font-size: 28px; }
    .question-text { font-size: 20px; min-height: auto; margin-bottom: 30px; }
    .option-btn { font-size: 15px; padding: 18px 16px; }
    .result-type { font-size: 56px; }
    .emoji-wrap { font-size: 60px; }
}
