@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --brand-gold: #e8b85a;
    --brand-gold-dark: #c29545;
    --bg-dark: #0a0a1a;
    --card-bg: rgba(26, 26, 46, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, rgba(58, 38, 128, 0.5), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(12, 59, 143, 0.5), transparent 50%);
    font-family: 'Noto Sans KR', sans-serif;
    min-height: 100vh;
}

.font-playfair { font-family: 'Playfair Display', serif; }
.font-noto-sans { font-family: 'Noto Sans KR', sans-serif; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-15px); }
}

.animate-fade-in { animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.animate-fade-out { animation: fadeOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards; }

.hidden { display: none; }

.title-gradient {
    background: linear-gradient(90deg, #fde74c, #ffcf40, var(--brand-gold), var(--brand-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand-gold-dark), var(--brand-gold));
    color: #1a1a2e;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 184, 90, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 184, 90, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--brand-gold);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.progress-step {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    position: relative;
    text-align: center;
}
.progress-step.active {
    color: var(--brand-gold);
    font-weight: 700;
    transform: scale(1.1);
}
.progress-line {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.mbti-question {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}
.mbti-question:last-child { border-bottom: none; }

.mbti-option label {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mbti-option input[type="radio"] { display: none; }
.mbti-option input[type="radio"]:checked + label {
    background-color: var(--brand-gold-dark);
    border-color: var(--brand-gold);
    color: #1a1a2e;
    font-weight: 500;
}

.form-select {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    color: white;
    transition: border-color 0.2s ease;
}
.form-select:focus {
    outline: none;
    border-color: var(--brand-gold);
}
.form-select option {
    background-color: #1a1a2e;
    color: white;
}

.physiognomy-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.physiognomy-option {
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background-color: rgba(0,0,0,0.2);
}
.physiognomy-option:hover { background-color: rgba(255, 255, 255, 0.1); }
.physiognomy-option.selected {
    border-color: var(--brand-gold);
    background-color: rgba(232, 184, 90, 0.1);
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.result-title-gradient {
    background: linear-gradient(90deg, #d4d4d8, #fafafa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
