/**
 * VerseFlow Guidance Hub Styles
 * 
 * Styles for the interactive 'Stoic' Guidance entry point.
 */

.guidance-hub-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    position: relative;
}

/* Base Container Styles (Shared) */
.vf-guidance-container {
    max-width: 800px;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Visibility Logic */
.vf-guidance-container[aria-hidden="true"] {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.vf-guidance-container[aria-hidden="false"] {
    display: block;
    opacity: 1;
    pointer-events: auto;
    animation: vf-fade-in 0.6s ease forwards;
}

@keyframes vf-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container 1: Check-in */
.checkin-prompt h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--grounded-text);
}

.checkin-subtitle {
    color: var(--color-muted);
}

.checkin-controls {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    /* Spacing between scale and CTA */
}

/* Response gap for mobile stacking */
@media (max-width: 480px) {
    .checkin-controls {
        gap: 2.5rem;
    }
}

/* Mood Scale (Ticket-902) */
.mood-scale {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    width: 100%;
}

.mood-btn {
    background: var(--vf-surface);
    border: 1px solid var(--color-border);
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--grounded-text);
    /* Default color */
    opacity: 0.6;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.mood-btn svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.mood-label {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grounded-text);
}

.mood-btn:hover,
.mood-btn:focus {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--covenant-accent);
}

.mood-btn:focus-visible {
    outline: 2px solid var(--covenant-accent);
    outline-offset: 4px;
}

#vf-btn-checkin-start.main-cta {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Container 2: Emotion Selection */
.emotion-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
    /* Add space before search */
}

.emotion-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--covenant-accent);
    color: var(--covenant-accent);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 1rem;
    background: transparent;
}

.emotion-tag:hover,
.emotion-tag:focus {
    background-color: var(--covenant-accent);
    color: var(--mercy-base);
}

/* Go Deeper Search (Ticket-905) */
.go-deeper-search {
    margin-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    /* Separator */
    padding-top: var(--space-lg);
    display: flex;
    justify-content: center;
}

.vf-form-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
}

.vf-form-inline .form-group {
    display: flex;
    gap: var(--space-xs);
    width: 100%;
    max-width: 450px;
    align-items: stretch;
}

#vf-go-deeper {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    background: var(--vf-surface-strong);
    font-size: 1rem;
    color: var(--grounded-text);
}

#vf-go-deeper::placeholder {
    color: var(--color-muted);
}

#vf-go-deeper:focus {
    outline: 2px solid var(--covenant-accent);
    border-color: var(--covenant-accent);
}

.vf-seek-button.small {
    padding: 0 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.vf-error-message {
    color: var(--covenant-accent);
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2em;
    margin-top: 4px;
    text-align: center;
}

/* Container 3: Revealed (Placeholder) */
.reveal-envelope {
    /* Style depends on content - currently placeholder */
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    /* Faint covenant */
    background: var(--vf-surface);
}

/* --- Ticket #VF-GUIDE-UI-031: Follow-up Prompt Theming --- */
.vf-fork-overlay {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mercy-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-md);
}

/* Ensure the overlay respects night mode gradients */
body.atmosphere-night .vf-fork-overlay {
    background: rgba(18, 18, 18, 0.85);
}

.vf-fork-dialog {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--vf-surface-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: vf-fade-in 0.4s ease-out forwards;
}

.vf-fork-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--grounded-text);
    margin-bottom: var(--space-xl);
    line-height: 1.2;
}

.vf-fork-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vf-fork-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vf-fork-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--color-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 12px;
    transition: color 0.2s;
}

.vf-fork-close:hover {
    color: var(--covenant-accent);
}

@media (max-width: 480px) {
    .vf-fork-title {
        font-size: 1.5rem;
    }

    .vf-fork-dialog {
        padding: var(--space-lg) var(--space-md);
    }
}
