/* VOIDBOUND - Crew Relationship Web Styles */

/* ============================================
   Crew Web Overlay
   ============================================ */
.crew-web-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.crew-web-container {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: linear-gradient(135deg,
        rgba(20, 25, 35, 0.98) 0%,
        rgba(10, 12, 20, 0.99) 100%);
    border: 2px solid var(--primary, #00f0ff);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================
   Header
   ============================================ */
.crew-web-header {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.crew-web-header h2 {
    flex: 1;
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 1.3rem;
    color: var(--primary, #00f0ff);
    letter-spacing: 3px;
    margin: 0;
}

.crew-web-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-dim, #888);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crew-web-close:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: var(--danger, #ff4444);
    color: var(--danger, #ff4444);
}

/* ============================================
   Canvas Content
   ============================================ */
.crew-web-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#crew-web-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   Tooltip
   ============================================ */
.crew-web-tooltip {
    position: absolute;
    display: none;
    padding: 12px 15px;
    background: rgba(20, 20, 35, 0.98);
    border: 1px solid var(--primary, #00f0ff);
    border-radius: 8px;
    z-index: 100;
    min-width: 180px;
    max-width: 250px;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.tooltip-name {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 1rem;
    color: var(--text-bright, #fff);
    margin-bottom: 4px;
}

.tooltip-role {
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    color: var(--accent, #ff6b00);
    margin-bottom: 8px;
}

.tooltip-trust {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.tooltip-mood {
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    color: var(--text-dim, #888);
    margin-bottom: 8px;
}

.tooltip-moral {
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.85rem;
    color: var(--primary, #00f0ff);
}

.tooltip-memories {
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.75rem;
    color: var(--text-dim, #888);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-memory {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    color: var(--text-normal, #ccc);
    font-style: italic;
    padding: 3px 0;
}

/* ============================================
   Legend
   ============================================ */
.crew-web-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.8rem;
    color: var(--text-dim, #888);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.positive {
    background: #4CAF50;
}

.legend-color.neutral {
    background: #FFC107;
}

.legend-color.negative {
    background: #f44336;
}

.legend-line {
    width: 30px;
    height: 3px;
}

.legend-line.tension {
    background: repeating-linear-gradient(
        90deg,
        #ff9800,
        #ff9800 5px,
        transparent 5px,
        transparent 10px
    );
}

.legend-line.respect {
    background: #2196F3;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .crew-web-container {
        width: 95%;
        height: 85vh;
    }

    .crew-web-header {
        padding: 12px 15px;
    }

    .crew-web-header h2 {
        font-size: 1rem;
    }

    .crew-web-legend {
        padding: 10px 15px;
        gap: 12px;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .crew-web-tooltip {
        font-size: 0.85rem;
        min-width: 150px;
    }
}
