/* =============================================================================
   firstvoyage.css - First Voyage Onboarding Panel
   All selectors are namespaced under #fv-panel or .fv-* to prevent
   collision with any existing panel or component styles.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Panel open state - mirrors companion-panel--open, account-panel--open
   --------------------------------------------------------------------------- */
#fv-panel.fv-panel--open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

/* ---------------------------------------------------------------------------
   Hero overrides - the default rp-banner is blank;
   give the FV panel a subtle deep-sea texture via a gradient overlay
   --------------------------------------------------------------------------- */
#fv-panel .rp-banner {
    background: #040609;
    height: 480px;
    margin-bottom: -480px;
}

#fv-panel .rp-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 60% 30%, rgba(20, 40, 80, 0.45) 0%, transparent 70%),
        linear-gradient(180deg, rgba(4, 6, 10, 0.2) 0%, #080b10 55%);
}

/* Slightly tighter inner for this panel's content density */
#fv-panel .rp-inner {
    margin-top: -320px;
    padding: 36px 64px 52px;
    gap: 24px;
}

/* Hero title emphasis */
#fv-panel .rp-title {
    letter-spacing: 0.22em;
    font-size: var(--font-size-4xl);
}

#fv-panel .rp-eyebrow {
    opacity: 0.55;
    font-size: var(--font-size-sm);
    letter-spacing: 0.14em;
}

/* ---------------------------------------------------------------------------
   Section headers
   --------------------------------------------------------------------------- */
/* Diverges intentionally from .panel-section-title - intentionally namespaced, very small at 0.68rem, semi-transparent. */
.fv-section-label {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------------------
   Primary Objective Card
   --------------------------------------------------------------------------- */
.fv-objective {
    background: rgba(197, 160, 89, 0.045);
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 4px;
    padding: 20px 24px;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}

.fv-objective:hover {
    border-color: rgba(197, 160, 89, 0.42);
    background: rgba(197, 160, 89, 0.07);
}

.fv-obj-title {
    font-family: var(--font-display, var(--font-body));
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #e8d9b0;
    letter-spacing: 0.04em;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.fv-obj-detail {
    font-size: var(--font-size-sm);
    color: rgba(190, 175, 145, 0.65);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.fv-obj-location {
    font-size: var(--font-size-xs);
    color: rgba(197, 160, 89, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Progress bar */
.fv-obj-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fv-obj-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.fv-obj-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.4s ease;
    min-width: 2px;
}

.fv-obj-bar-label {
    font-size: var(--font-size-xs);
    color: rgba(197, 160, 89, 0.7);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: 3.5rem;
    text-align: right;
}

/* ---------------------------------------------------------------------------
   Guided Progression Flow
   --------------------------------------------------------------------------- */
.fv-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fv-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px 12px 14px;
    border-left: 2px solid transparent;
    border-radius: 0 3px 3px 0;
    position: relative;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

/* Completed step */
.fv-step--done {
    opacity: 0.45;
}

/* Active step */
.fv-step--active {
    border-left-color: rgba(197, 160, 89, 0.65);
    background: rgba(197, 160, 89, 0.04);
}

/* Future steps - opacity applied per-element inside .ob-module */
.fv-step--future {
}

/* Step marker (circle/check) */
.fv-step-marker {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(197, 160, 89, 0.3);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    font-size: var(--font-size-base);
    color: rgba(197, 160, 89, 0.8);
}

.fv-step--done .fv-step-marker {
    background: rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.4);
    color: rgba(197, 160, 89, 0.9);
}

.fv-step--active .fv-step-marker {
    border-color: rgba(197, 160, 89, 0.75);
    box-shadow: 0 0 6px rgba(197, 160, 89, 0.2);
    background: rgba(197, 160, 89, 0.1);
}

/* Step text */
.fv-step-label {
    font-size: var(--font-size-sm);
    color: #d4c4a0;
    line-height: 1.3;
    margin: 0;
}

.fv-step--active .fv-step-label {
    color: #e8d9b0;
    font-weight: 500;
}

.fv-step-sublabel {
    font-size: var(--font-size-xs);
    color: rgba(190, 175, 145, 0.4);
    margin: 2px 0 0 0;
    line-height: 1.3;
}

/* ---------------------------------------------------------------------------
   Current Activity
   --------------------------------------------------------------------------- */
.fv-activity {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.fv-activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(80, 200, 120, 0.75);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(80, 200, 120, 0.4);
    animation: fv-pulse 2.4s ease-in-out infinite;
}

@keyframes fv-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.fv-activity-body {
    flex: 1;
    min-width: 0;
}

.fv-activity-name {
    font-size: var(--font-size-sm);
    color: #d4c4a0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fv-activity-meta {
    font-size: var(--font-size-xs);
    color: rgba(190, 175, 145, 0.45);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------------
   Nearby Opportunities
   --------------------------------------------------------------------------- */
.fv-nearby {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fv-nearby-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 10px;
}

.fv-nearby-row:hover {
    background: rgba(197, 160, 89, 0.06);
}

.fv-nearby-name {
    font-size: var(--font-size-xs);
    color: #c8b890;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv-nearby-type {
    font-size: var(--font-size-xs);
    color: rgba(190, 175, 145, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    margin-left: 6px;
}

.fv-nearby-dist {
    font-size: var(--font-size-xs);
    color: rgba(197, 160, 89, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.fv-nearby-empty {
    font-size: var(--font-size-xs);
    color: rgba(190, 175, 145, 0.3);
    padding: 8px 12px;
    font-style: italic;
}

/* ---------------------------------------------------------------------------
   Contextual Tip
   --------------------------------------------------------------------------- */
.fv-tip {
    font-size: var(--font-size-xs);
    color: rgba(190, 175, 145, 0.38);
    line-height: 1.55;
    border-top: 1px solid rgba(197, 160, 89, 0.07);
    padding-top: 16px;
    font-style: italic;
}

.fv-tip::before {
    content: '- ';
    opacity: 0.5;
}
