/* TODO: Review box-shadow values - consider using design system shadow variables (--shadow-xs, --shadow-sm, etc.) */
/**
 * Mechanics Depth Metrics Styles
 * Beautiful metrics panel for mechanics depth tracking
 */

.metrics-trigger-btn {
    position: fixed !important;
    /* Position will be managed by corner-widget-manager.css */
    bottom: calc(var(--spacing-md, calc(var(--spacing-lg) * 1.25)) + var(--spacing-3xl, 60px) + var(--spacing-sm, 0.5rem)) !important;
    right: var(--spacing-md, calc(var(--spacing-lg) * 1.25)) !important;
    z-index: 9997 !important;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 25px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;

.metrics-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);

.mechanics-depth-metrics {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;

.mechanics-depth-metrics.visible {
    opacity: 1;
    visibility: visible;

.mechanics-depth-metrics > div {
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(var(--color-bg-primary-rgb, 26, 26, 26), 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;

.mechanics-depth-metrics.visible > div {
    transform: scale(1);

.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-bottom: calc(var(--spacing-xs) / 2) solid rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;

.metrics-header h2 {
    margin: 0;
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;

.metrics-close {
    background: rgba(var(--color-text-primary-rgb, 224, 224, 224), 0.2);
    border: none;
    color: white;
    width: var(--spacing-xl);
    height: var(--spacing-xl);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;

.metrics-close:hover {
    background: rgba(var(--color-text-primary-rgb, 224, 224, 224), 0.3);
    transform: rotate(90deg);

.metrics-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-2xl);
    background: var(--color-bg-tertiary);

.metrics-section {
    margin-bottom: var(--spacing-2xl);

.metrics-section:last-child {
    margin-bottom: 0;

.metrics-section h3 {
    margin: 0 0 calc(var(--spacing-lg) * 1.25) 0;
    color: white;
    font-size: 18px;
    font-weight: 600;

/* Complexity Display */
.complexity-display {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);

.complexity-score {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);

.score-value {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: #4a90e2;
    font-family: 'Roboto Mono', monospace;

.score-label {
    font-size: var(--font-size-xl);
    color: #b0b0b0;

.complexity-level {
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(74, 144, 226, 0.2);
    border-radius: var(--radius-md);
    display: inline-block;

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

.complexity-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
    transition: width 0.5s ease;
    border-radius: calc(var(--radius-sm) * 1.5);

/* Usage Statistics */
.usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);

.usage-item {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;

.usage-label {
    color: #b0b0b0;
    font-size: var(--font-size-sm);

.usage-value {
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    color: #4a90e2;

/* Progression Chart */
.progression-chart {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    min-height: 200px;

.chart-container {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-xs);
    height: 152px;
    margin-bottom: var(--spacing-md);

.chart-bar {
    flex: 1;
    background: rgba(74, 144, 226, 0.2);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    min-height: var(--spacing-sm);
    transition: all 0.3s ease;

.chart-bar:hover {
    background: rgba(74, 144, 226, 0.4);

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    height: 100%;

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

/* System Status */
.system-status-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);

.system-status-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: var(--radius-md);

.status-indicator {
    width: var(--spacing-md);
    height: var(--spacing-md);
    border-radius: var(--radius-full);
    flex-shrink: 0;

.status-indicator.active {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);

.status-indicator.inactive {
    background: var(--color-text-secondary);

.system-name {
    flex: 1;
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 500;

.system-status-text {
    color: #b0b0b0;
    font-size: var(--font-size-xs);

.no-data {
    text-align: center;
    color: var(--color-text-secondary);
    padding: calc(var(--spacing-2xl) * 1.25);
    font-size: var(--font-size-base);

/* Responsive */
@media (max-width: 768px) {
    .metrics-trigger-btn {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: var(--spacing-sm) calc(var(--spacing-lg) * 1.25);
        font-size: var(--font-size-xs);

    .usage-stats {
        grid-template-columns: 1fr;

    .score-value {
        font-size: 36px;

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .mechanics-depth-metrics,
    .chart-bar,
    .complexity-fill {
        transition: none;

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