/* TODO: Review box-shadow values - consider using design system shadow variables (--shadow-xs, --shadow-sm, etc.) */
/**
 * Help System Styles - Sprint 1
 * Styles for contextual help system
 */

/* ============================================
   HELP OVERLAY
   ============================================ */

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease-out;
    overflow-y: auto;

.help-overlay-content {
    background: var(--color-bg-card, var(--color-bg-card));
    border: 1px solid var(--color-border, #444);
    border-radius: var(--radius-md);
    max-width: 904px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.5);

.help-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border, #444);

.help-overlay-header h2 {
    margin: 0;
    color: var(--color-text-primary, var(--color-text-primary));
    font-family: var(--font-heading, 'Orbitron', sans-serif);

.help-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-primary, var(--color-text-primary));
    font-size: 2rem;
    cursor: pointer;
    width: calc(var(--spacing-2xl) * 1.375);
    height: calc(var(--spacing-2xl) * 1.375);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;

.help-close-btn:hover,
.help-close-btn:focus {
    background: var(--color-bg-hover, #333);
    outline: 2px solid var(--color-info, #4a90e2);
    outline-offset: 2px;

.help-overlay-body {
    display: flex;
    flex: 1;
    overflow: hidden;

/* ============================================
   HELP NAVIGATION
   ============================================ */

.help-nav {
    width: 248px;
    padding: 1.5rem;
    border-right: 1px solid var(--color-border, #444);
    overflow-y: auto;
    background: var(--color-bg-secondary, var(--color-bg-card));

.help-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;

.help-nav li {
    margin-bottom: 0.5rem;

.help-nav-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-primary, var(--color-text-primary));
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    min-height: calc(var(--spacing-2xl) * 1.375);
    display: flex;
    align-items: center;

.help-nav-btn:hover,
.help-nav-btn:focus {
    background: var(--color-bg-hover, #333);
    border-color: var(--color-border, #444);
    outline: none;

.help-nav-btn.active {
    background: var(--color-info, #4a90e2);
    color: white;
    border-color: var(--color-info, #4a90e2);

/* ============================================
   HELP CONTENT
   ============================================ */

.help-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    color: var(--color-text-primary, var(--color-text-primary));
    line-height: 1.6;

.help-content h2 {
    color: var(--color-info, #4a90e2);
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    margin-top: 0;
    margin-bottom: 1rem;

.help-content h3 {
    color: var(--color-text-primary, var(--color-text-primary));
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;

.help-content p {
    margin-bottom: 1rem;

.help-content ul,
.help-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;

.help-content li {
    margin-bottom: 0.5rem;

.help-content kbd {
    background: var(--color-bg-input, #222);
    border: 1px solid var(--color-border, #444);
    border-radius: calc(var(--radius-sm) * 0.75);
    padding: 0.25rem 0.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.2);

.help-content strong {
    color: var(--color-info, #4a90e2);

/* ============================================
   HELP BUTTON
   ============================================ */

.help-button-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: calc(var(--spacing-3xl) * 1.167);
    height: calc(var(--spacing-3xl) * 1.167);
    border-radius: var(--radius-full);
    background: var(--color-info, #4a90e2);
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: calc(var(--spacing-2xl) * 1.375);
    min-height: calc(var(--spacing-2xl) * 1.375);

.help-button-fixed:hover,
.help-button-fixed:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.6);
    outline: 3px solid var(--color-info, #4a90e2);
    outline-offset: 2px;

.help-button-fixed:active {
    transform: scale(0.95);

.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--spacing-lg);
    height: var(--spacing-lg);
    min-width: calc(var(--spacing-2xl) * 1.375);
    min-height: calc(var(--spacing-2xl) * 1.375);
    border-radius: var(--radius-full);
    background: var(--color-info, #4a90e2);
    color: white;
    border: none;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s;

.help-btn:hover,
.help-btn:focus {
    background: var(--color-info-dark, #357abd);
    transform: scale(1.1);
    outline: 2px solid var(--color-info, #4a90e2);
    outline-offset: 2px;

/* ============================================
   CONTEXTUAL HELP TOOLTIP
   ============================================ */

.contextual-help-tooltip {
    position: absolute;
    background: var(--color-bg-card, var(--color-bg-card));
    border: 1px solid var(--color-border, #444);
    border-radius: calc(var(--radius-sm) * 1.5);
    padding: 1rem;
    max-width: 304px;
    box-shadow: 0 4px 12px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.3);
    z-index: 10001;
    color: var(--color-text-primary, var(--color-text-primary));
    font-size: 0.875rem;
    line-height: 1.5;
    animation: fadeIn 0.2s ease-out;

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .help-overlay {
        padding: 0;

    .help-overlay-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;

    .help-overlay-body {
        flex-direction: column;

    .help-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border, #444);
        max-height: 200px;

    .help-nav ul {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;

    .help-nav li {
        margin-right: 0.5rem;
        margin-bottom: 0;
        flex-shrink: 0;

    .help-nav-btn {
        white-space: nowrap;

    .help-button-fixed {
        bottom: 1rem;
        right: 1rem;
        width: var(--spacing-2xl);
        height: var(--spacing-2xl);
        font-size: 1.25rem;

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;

/* Focus trap in help overlay */
.help-overlay:focus-within {
    outline: none;

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;

    to {
        opacity: 1;

@keyframes fadeOut {
    from {
        opacity: 1;

    to {
        opacity: 0;

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .help-overlay,
    .contextual-help-tooltip,
    .help-button-fixed,
    .help-btn {
        animation: none;
        transition: none;

}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}