/* ═══════════════════════════════════════════════════════════════════
 * DXY Adaptive Card - Score Badge + Pairs Grid Styles
 * Adds visual layer on top of existing .header-dxy without breaking anything.
 * ═══════════════════════════════════════════════════════════════════ */

/* ─── Score Badge ─── */
.dxy-score-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.dxy-score-badge:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Position the score badge: place it as first child, top-left */
.header-dxy {
    position: relative;
}

/* ─── Pairs Grid ─── */
.dxy-pairs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dxy-pair-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.72rem;
    min-width: 0;
}

.dxy-pair-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.dxy-pair-arrow {
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
}

.dxy-pair-arrow.up {
    color: #10b981;
}

.dxy-pair-arrow.down {
    color: #ef4444;
}

.dxy-pair-arrow.neutral {
    color: #94a3b8;
}

.dxy-pair-symbol {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dxy-pair-change {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: #64748b;
    margin-left: auto;
}

.dxy-pair-change.up {
    color: rgba(16, 185, 129, 0.8);
}

.dxy-pair-change.down {
    color: rgba(239, 68, 68, 0.8);
}

/* ─── Responsive: hide pairs on narrow cards ─── */
@media (max-width: 640px) {
    .dxy-pairs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .dxy-pairs-grid {
        display: none;
    }
    .dxy-score-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}
