/*
 * ═══════════════════════════════════════════════════════════════
 * AXION TERMINAL — Sovereign Yield Matrix (Aura/21st.dev Style)
 * ═══════════════════════════════════════════════════════════════
 */

.ym-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #0B0B0B;
    position: relative;
    overflow: hidden;
    color: #E8E8E8;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* 4D Blood-Glow Inversion Background */
.ym-inversion-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 0, 77, 0.18) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.ym-container.inverted .ym-inversion-glow {
    opacity: 1;
    animation: inversion-pulse 4s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes inversion-pulse {
    0% { opacity: 0.5; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Header Cards Layout */
.ym-header-cards {
    display: flex;
    gap: 16px;
    padding: 24px;
    z-index: 1;
}

.ym-card {
    flex: 1;
    background: rgba(17, 17, 17, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Institutional Glassmorphism Auto-Hover Effect */
.ym-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(198, 227, 16, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ym-card:hover {
    border-color: rgba(198, 227, 16, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(198, 227, 16, 0.05), 0 0 0 1px rgba(198, 227, 16, 0.1) inset;
}

.ym-card:hover::after {
    opacity: 1;
}

.ym-card-title {
    font-size: 11px;
    color: #8A8A8A;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-weight: 600;
}

.ym-card-value {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -1.5px;
    transition: color 0.3s ease-in-out;
}

.ym-card-value .unit {
    font-size: 16px;
    color: #505050;
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 4px;
}

/* Sub-millisecond state colors */
.ym-card-value.inverted-text {
    color: #FF004D !important;
}

.ym-card-value.normal-text {
    color: #C6E310 !important;
}

.ym-chart-wrapper {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0 24px 24px;
    min-height: 400px;
}

#ym-chart {
    width: 100%;
    height: 100%;
}
