/* TODO: Review box-shadow values - consider using design system shadow variables (--shadow-xs, --shadow-sm, etc.) */
/**
 * Mechanics Depth Indicators Styles - Sprint 5
 * Styles for mechanics depth visualization and feedback
 */

/* ============================================
   DEPTH INDICATOR
   ============================================ */

.mechanics-depth-indicator {
    position: fixed;
    bottom: calc(var(--spacing-lg) * 1.25);
    right: calc(var(--spacing-lg) * 1.25);
    background: var(--color-bg-card, var(--color-bg-card));
    border: 2px solid var(--color-info, #4a90e2);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.5);
    transition: all 0.3s ease;

.mechanics-depth-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.6);

.depth-indicator-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-primary, var(--color-text-primary));
    font-size: 0.875rem;

.depth-label {
    color: var(--color-text-secondary, var(--color-text-secondary));

.depth-score {
    font-weight: 600;
    font-family: var(--font-body, 'Roboto Mono', monospace);
    color: var(--color-info, #4a90e2);

.depth-level {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-tertiary, #333);

.depth-minimal .depth-level {
    background: var(--color-danger, #f44336);
    color: white;

.depth-basic .depth-level {
    background: var(--color-warning, #ffc107);
    color: #000;

.depth-intermediate .depth-level {
    background: var(--color-info, #4a90e2);
    color: white;

.depth-advanced .depth-level {
    background: var(--color-success, #5cb85c);
    color: white;

/* ============================================
   MECHANICS TUTORIAL
   ============================================ */

.mechanics-tutorial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;

.mechanics-tutorial.active {
    opacity: 1;
    pointer-events: all;

.tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;

.tutorial-content {
    background: var(--color-bg-card, var(--color-bg-card));
    border: 2px solid var(--color-info, #4a90e2);
    border-radius: var(--radius-lg);
    max-width: 800px;
    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);

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border, #444);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));

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

.tutorial-close {
    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: all 0.2s;

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

.tutorial-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;

.tutorial-section {
    margin-bottom: 2rem;

.tutorial-section h3 {
    margin: 0 0 0.75rem 0;
    color: var(--color-text-primary, var(--color-text-primary));
    font-family: var(--font-heading, 'Orbitron', sans-serif);

.tutorial-section p {
    margin: 0 0 0.75rem 0;
    color: var(--color-text-secondary, var(--color-text-secondary));
    line-height: 1.6;

.tutorial-section ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--color-text-primary, var(--color-text-primary));
    line-height: 1.8;

.tutorial-section li {
    margin-bottom: 0.5rem;

.tutorial-section strong {
    color: var(--color-info, #4a90e2);

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

@media (max-width: 768px) {
    .mechanics-depth-indicator {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;

    .depth-indicator-content {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;

    .tutorial-overlay {
        padding: 1rem;

    .tutorial-content {
        max-width: 100%;
        max-height: 95vh;

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

@keyframes fadeIn {
    from {
        opacity: 0;

    to {
        opacity: 1;

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mechanics-depth-indicator,
    .mechanics-tutorial {
        animation: none;
        transition: none;

/* ============================================
   SPRINT 11 ENHANCEMENTS
   ============================================ */

/* Depth Badge */
.mechanics-depth-badge {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: var(--spacing-lg);
    height: var(--spacing-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
    animation: badge-pulse 2s ease-in-out infinite;

.mechanics-depth-badge:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);

    50% {
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.7);

.mechanics-depth-badge.badge-top-right {
    top: -var(--spacing-sm);
    right: -var(--spacing-sm);

.mechanics-depth-badge.badge-top-left {
    top: -var(--spacing-sm);
    left: -var(--spacing-sm);

.mechanics-depth-badge.badge-bottom-right {
    bottom: -var(--spacing-sm);
    right: -var(--spacing-sm);

.mechanics-depth-badge.badge-bottom-left {
    bottom: -var(--spacing-sm);
    left: -var(--spacing-sm);

/* Floating Depth Meter */
.floating-depth-meter {
    position: fixed;
    top: 80px;
    right: calc(var(--spacing-lg) * 1.25);
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    min-width: 200px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.3);
    transition: all 0.3s ease;

.floating-depth-meter:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);

.meter-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);

.meter-icon {
    font-size: 18px;

.meter-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);

.meter-bar {
    width: 100%;
    height: var(--spacing-sm);
    background: rgba(var(--color-text-primary-rgb, 224, 224, 224), 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: var(--radius-sm);

.meter-fill.depth-minimal {
    background: linear-gradient(90deg, var(--color-text-secondary) 0%, var(--color-text-dim) 100%);

.meter-fill.depth-basic {
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);

.meter-fill.depth-intermediate {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);

.meter-fill.depth-advanced {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);

.meter-score {
    display: flex;
    justify-content: space-between;
    color: #b0b0b0;
    font-size: var(--font-size-xs);

.meter-level {
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-sm);

/* Complexity Badge */
.complexity-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: var(--spacing-sm);

.complexity-badge.complexity-low {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);

.complexity-badge.complexity-medium {
    background: rgba(var(--color-warning-rgb, 255, 193, 7), 0.2);
    color: #ffc107;
    border: 1px solid rgba(var(--color-warning-rgb, 255, 193, 7), 0.4);

.complexity-badge.complexity-high {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
    border: 1px solid rgba(255, 87, 34, 0.4);

.complexity-badge.complexity-extreme {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.4);

/* System Interaction Highlight */
.system-interaction-highlight {
    position: relative;
    border-left: calc(var(--spacing-xs) * 0.75) solid rgba(102, 126, 234, 0.5);
    padding-left: var(--spacing-sm);
    transition: all 0.2s ease;

.system-interaction-highlight:hover {
    border-left-color: rgba(102, 126, 234, 1);
    background: rgba(102, 126, 234, 0.05);

.depth-info-btn {
    background: rgba(var(--color-text-primary-rgb, 224, 224, 224), 0.1);
    border: none;
    color: white;
    width: calc(var(--spacing-lg) * 1.25);
    height: calc(var(--spacing-lg) * 1.25);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: var(--spacing-xs);

.depth-info-btn:hover {
    background: rgba(var(--color-text-primary-rgb, 224, 224, 224), 0.2);
    transform: scale(1.1);

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