/* ── Modals & Overlays ──────────────────────────────────────────────
   Task reward toast, player search dropdown, and player profile card.
   Feature-scoped styles have been moved to their own files:
     marketplace.css, smithing.css, quest.css, contribution.css,
     skill-panel.css, city-services.css, activity-nodes.css,
     connection.css. City panel layout moved to city.css,
     ship purchase moved to vessel.css.
   ──────────────────────────────────────────────────────────────────── */

/* ================================================================== */
/* Time Allocation System - Active Task Panel                         */
/* ================================================================== */

/* ================================================================== */
/* Time Allocation System - Resource Reward Popup                     */
/* ================================================================== */
#task-reward-popup {
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 16, 22, 0.92);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--gold);
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 7px 16px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    z-index: var(--z-system-popup);
    transition: opacity 0.25s;
    white-space: nowrap;
}
#task-reward-popup.task-reward--show {
    opacity: 1;
}

/* ================================================================== */
/* Player Search Results & Profile Card                              */
/* ================================================================== */
.pp-hero-search-wrap {
    position: relative;
}

#pp-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-raised);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
}
#pp-search-results.psr--open {
    display: block;
}

.psr-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.12s;
}
.psr-item:last-child {
    border-bottom: none;
}
.psr-item:hover {
    background: rgba(197, 160, 89, 0.07);
}

.psr-icon {
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.psr-icon img[src$='.svg'] {
    filter: brightness(0) saturate(100%) invert(86%) sepia(95%) saturate(4642%) hue-rotate(311deg) brightness(83%)
        contrast(83%);
    opacity: 0.85;
}

.psr-name {
    flex: 1;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #c8d0da;
}

.psr-view-btn {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.25);
    color: rgba(197, 160, 89, 0.75);
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.13s;
}
.psr-view-btn:hover {
    background: rgba(197, 160, 89, 0.22);
}

.psr-empty {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.25);
    padding: 14px 12px;
    font-style: italic;
}

/* Player profile card */
#player-profile-card {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-content);
    align-items: center;
    justify-content: center;
}
#player-profile-card.ppc--open {
    display: flex;
}

.ppc-panel {
    position: relative;
    z-index: 1;
    width: min(320px, 94vw);
    background: var(--surface-raised);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
}

.ppc-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: 16px;
}

.ppc-portrait {
    width: 44px;
    height: 44px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    flex-shrink: 0;
}

.ppc-info {
    flex: 1;
    min-width: 0;
}

.ppc-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #dde2ea;
    margin-bottom: 3px;
}

.ppc-ship {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.4);
}

.ppc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 14px 0;
}

.ppc-skills-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 10px;
}

.ppc-skill-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 6px;
}
.ppc-skill-row:last-child {
    margin-bottom: 0;
}

.ppc-skill-icn {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.9;
}
.ppc-skill-icn--emoji {
    font-size: var(--font-size-base);
    line-height: 1;
    opacity: 0.75;
}

.ppc-skill-name {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.55);
    flex: 1;
}

.ppc-skill-lvl {
    font-size: var(--font-size-lg);
    font-family: var(--font-body);
    color: var(--gold);
}

.ppc-skill-bar-bg {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

.ppc-skill-bar-fill {
    height: 100%;
    background: rgba(197, 160, 89, 0.5);
    border-radius: 2px;
}
