/* Crew Page Styles */

/* Crew Page Tabs */
.crew-tabs {
    display: flex; gap: 0; background: var(--bg-primary); border-radius: 12px; padding: 4px; margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.crew-tab {
    flex: 1; padding: 12px 16px; border: none; background: transparent; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--text-secondary); border-radius: 8px; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.crew-tab:hover { background: var(--bg-tertiary); }
.crew-tab.active { background: var(--color-primary); color: white; }
.crew-tab-icon { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.crew-tab-label { font-size: 12px; }

.commander-stats-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}
.stat-row-full {
    margin-bottom: 8px;
}
.stat-pill {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
}
.stat-pill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.stat-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}
.stat-max {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}
.stat-bonus {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-success);
    margin-left: 4px;
}
.stat-bar-container {
    height: 6px;
    background: var(--border-default);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}
.stat-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}
.stat-bar-fill.stat-base {
    border-radius: 3px 0 0 3px;
}
.stat-bar-fill.stat-bonus-bar {
    border-radius: 0 3px 3px 0;
}
.stat-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 400;
}
.stat-total {
    text-align: center;
    padding: 12px;
    margin-top: 4px;
    font-size: 15px;
    color: var(--text-secondary);
}
.stat-total strong {
    font-size: 20px;
    color: var(--color-primary);
}
.stat-total span {
    font-size: 14px;
    color: var(--text-muted);
}
.commander-stats-panel .stat-pill {
    margin-bottom: 8px;
}
.commander-stats-panel .stat-pill:last-of-type {
    margin-bottom: 0;
}
/* Commander card buttons */
.commander-card-actions {
    display: flex;
    gap: 8px;
}
.btn-set-active {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-set-active:hover {
    background: var(--primary-600);
}
.btn-active {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--color-success);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: default;
    opacity: 0.85;
}
.btn-delete {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-delete:hover {
    background: var(--color-danger);
    color: white;
}
/* Two-column hero grid */
.crew-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .hero-section { margin: -16px -16px 16px -16px !important; padding: 30px 16px 24px 16px !important; min-height: 140px !important; }
    .hero-title { font-size: 22px !important; }
    .hero-subtitle { font-size: 11px !important; letter-spacing: 1px !important; }
}
@media (max-width: 480px) {
    .hero-section { margin: -12px -12px 12px -12px !important; padding: 24px 12px 20px 12px !important; min-height: 120px !important; }
    .hero-title { font-size: 20px !important; }
}
.crew-portrait:hover {
    transform: scale(1.05);
}

/* Scientist research animations */
@keyframes sciPulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes sciSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
@keyframes sciFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes sciData { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.sci-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: sciPulse 2s ease-in-out infinite; box-shadow: 0 0 8px var(--color-success); }
.sci-sweep-bar { position: absolute; top: 0; left: 0; width: 25%; height: 100%; background: linear-gradient(90deg, transparent, rgba(74,222,128,0.3), transparent); animation: sciSweep 3s ease-in-out infinite; }
.sci-stat-ring { position: relative; width: 56px; height: 56px; }
.sci-stat-ring svg { transform: rotate(-90deg); }
.sci-stat-ring .ring-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 13px; font-weight: 700; }
.sci-data-particle { position: absolute; font-size: 9px; color: var(--color-success); opacity: 0; animation: sciData 4s ease-in-out infinite; font-family: monospace; }
