/* ==================== ARCHETYPE PAGE STYLES ==================== */

:root {
    --owl: #0A5966;
    --elephant: #8B8680;
    --wolf: #8A123C;
    --hawk: #B8934C;
    --fox: #C4875C;
    --lion: #A67C52;
}

/* Fix for user avatar image display */
#user-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

#auth-button.signed-in #user-avatar {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
}

/* Progress Bar */
.archetype-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rule, #e0dcd4);
    z-index: 10001;
}

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

/* Page Container */
.archetype-page {
    display: none;
    min-height: calc(100vh - 120px);
    padding-top: 140px;
    padding-bottom: 80px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.archetype-page.active {
    display: block;
    opacity: 1;
}

/* ==================== INTRO PAGE ==================== */
.intro-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.intro-eyebrow {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--burgundy, #8A123C);
    margin-bottom: 24px;
}

.intro-title {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 400;
    color: var(--ink, #1a1a1a);
    margin-bottom: 24px;
    line-height: 1.2;
}

.intro-description {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 17px;
    color: var(--ink-secondary, #4a4a4a);
    line-height: 1.8;
    margin-bottom: 48px;
}

.intro-description em {
    font-style: italic;
    color: var(--ink, #1a1a1a);
}

/* Animal Preview */
.animal-preview {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    opacity: 0.5;
}

.animal-preview img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Stats */
.intro-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 48px;
}

.intro-stat {
    text-align: center;
}

.intro-stat-value {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--ink, #1a1a1a);
    line-height: 1;
    margin-bottom: 4px;
}

.intro-stat-label {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-tertiary, #7a7a7a);
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: var(--burgundy, #8A123C);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background: #6e0f31;
    transform: translateY(-1px);
}

.intro-note {
    margin-top: 32px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 13px;
    color: var(--ink-tertiary, #7a7a7a);
    font-style: italic;
}

/* Login prompt */
.login-prompt {
    margin-top: 24px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--ink-secondary, #4a4a4a);
}

.login-prompt a {
    color: var(--teal, #12728A);
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* ==================== QUESTION PAGE ==================== */
.question-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.section-dot {
    width: 32px;
    height: 4px;
    background: var(--rule, #e0dcd4);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.section-dot.active {
    background: var(--burgundy, #8A123C);
}

.section-dot.complete {
    background: var(--teal, #12728A);
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--burgundy, #8A123C);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--ink, #1a1a1a);
    margin-bottom: 8px;
}

.section-description {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 15px;
    color: var(--ink-secondary, #4a4a4a);
}

/* Question Card */
.question-card {
    background: var(--white, #fff);
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 32px;
}

.question-number {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 12px;
    color: var(--ink-tertiary, #7a7a7a);
    margin-bottom: 16px;
}

.question-prompt {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink, #1a1a1a);
    margin-bottom: 48px;
    line-height: 1.5;
}

/* Scale Selector - Assessio Style */
.scale-wrapper {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.scale-label {
    flex: 1;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--ink-secondary, #4a4a4a);
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.scale-label.left {
    text-align: right;
    justify-content: flex-end;
    padding-right: 8px;
}

.scale-label.right {
    text-align: left;
    justify-content: flex-start;
    padding-left: 8px;
}

.scale-selector {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.scale-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 12px 8px;
    transition: all 0.2s ease;
}

.scale-option .circle {
    border-radius: 50%;
    border: 2px solid var(--rule, #e0dcd4);
    background: white;
    transition: all 0.2s ease;
}

/* Graduated circle sizes */
.scale-option[data-value="1"] .circle,
.scale-option[data-value="6"] .circle {
    width: 36px;
    height: 36px;
}

.scale-option[data-value="2"] .circle,
.scale-option[data-value="5"] .circle {
    width: 28px;
    height: 28px;
}

.scale-option[data-value="3"] .circle,
.scale-option[data-value="4"] .circle {
    width: 22px;
    height: 22px;
}

/* The Dividing Line */
.scale-divider {
    width: 1px;
    height: 56px;
    background: var(--ink-tertiary, #7a7a7a);
    margin: 0 6px;
    flex-shrink: 0;
}

/* Hover States */
.scale-option:hover .circle {
    border-color: var(--gold, #B8934C);
    background: rgba(184, 147, 76, 0.08);
}

/* Selected States */
.scale-option.selected[data-value="1"] .circle,
.scale-option.selected[data-value="2"] .circle,
.scale-option.selected[data-value="3"] .circle {
    border-color: var(--teal, #12728A);
    background: var(--teal, #12728A);
    box-shadow: 0 0 0 4px rgba(18, 114, 138, 0.15);
}

.scale-option.selected[data-value="4"] .circle,
.scale-option.selected[data-value="5"] .circle,
.scale-option.selected[data-value="6"] .circle {
    border-color: var(--burgundy, #8A123C);
    background: var(--burgundy, #8A123C);
    box-shadow: 0 0 0 4px rgba(138, 18, 60, 0.15);
}

/* Navigation */
.question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-progress {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 13px;
    color: var(--ink-tertiary, #7a7a7a);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-nav.primary {
    background: var(--burgundy, #8A123C);
    color: white;
}

.btn-nav.primary:hover {
    background: #6e0f31;
}

.btn-nav.secondary {
    background: transparent;
    color: var(--ink-secondary, #4a4a4a);
    border: 1px solid var(--rule, #e0dcd4);
}

.btn-nav.secondary:hover {
    border-color: var(--ink-tertiary, #7a7a7a);
    color: var(--ink, #1a1a1a);
}

.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== RESULTS PAGE ==================== */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Archetype Reveal */
.archetype-reveal {
    text-align: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease;
}

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

.archetype-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    animation: scaleIn 0.6s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.archetype-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.archetype-label {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-tertiary, #7a7a7a);
    margin-bottom: 12px;
}

.archetype-name {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: clamp(42px, 8vw, 64px);
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.1;
}

.archetype-name.owl { color: var(--owl); }
.archetype-name.elephant { color: var(--elephant); }
.archetype-name.wolf { color: var(--wolf); }
.archetype-name.hawk { color: var(--hawk); }
.archetype-name.fox { color: var(--fox); }
.archetype-name.lion { color: var(--lion); }

.archetype-tagline {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: 22px;
    font-style: italic;
    color: var(--ink-secondary, #4a4a4a);
}

/* Profile Card */
.profile-card {
    background: var(--white, #fff);
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.profile-description {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: 20px;
    line-height: 1.8;
    color: var(--ink, #1a1a1a);
    margin-bottom: 32px;
}

.profile-traits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.trait {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.trait-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--paper, #faf9f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.trait-text {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--ink-secondary, #4a4a4a);
    line-height: 1.5;
}

.trait-text strong {
    color: var(--ink, #1a1a1a);
    display: block;
    margin-bottom: 2px;
}

/* Radar Card */
.radar-card {
    background: var(--white, #fff);
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.radar-header {
    text-align: center;
    margin-bottom: 32px;
}

.radar-title {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink, #1a1a1a);
    margin-bottom: 4px;
}

.radar-subtitle {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 13px;
    color: var(--ink-tertiary, #7a7a7a);
}

.radar-container {
    max-width: 400px;
    margin: 0 auto;
}

.radar-svg {
    width: 100%;
    height: auto;
}

/* Experience Card */
.experience-card {
    border-radius: 8px;
    padding: 48px;
    color: white;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.experience-label {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

.experience-title {
    font-family: var(--serif, 'Bodoni Moda', Georgia, serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 32px;
}

.experience-list {
    text-align: left;
    max-width: 480px;
    margin: 0 auto 40px;
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item::before {
    content: "→";
    opacity: 0.6;
    flex-shrink: 0;
}

.archetype-stat {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 32px;
}

.btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: white;
    border: none;
    border-radius: 4px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-continue:hover {
    background: var(--paper, #faf9f6);
    transform: translateY(-1px);
}

/* Share Card */
.share-card {
    background: var(--white, #fff);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-top: 32px;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.share-title {
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--paper, #faf9f6);
    border: 1px solid var(--rule, #e0dcd4);
    border-radius: 4px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 13px;
    color: var(--ink-secondary, #4a4a4a);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--ink-tertiary, #7a7a7a);
    color: var(--ink, #1a1a1a);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .archetype-page {
        padding-top: 120px;
    }
    
    .scale-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .scale-label {
        text-align: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .scale-selector {
        justify-content: center;
        order: -1;
    }

    .profile-traits {
        grid-template-columns: 1fr;
    }

    .intro-stats {
        gap: 32px;
    }

    .question-card {
        padding: 32px 24px;
    }
    
    .profile-card,
    .radar-card,
    .experience-card {
        padding: 32px 24px;
    }
}
