/**
 * 환율 사이드바 위젯 스타일
 *
 * 이 파일은 widgets/currency.php 에서 로드됩니다.
 */

/* 부모 .widget padding 오버라이드 — 흰색 배경, 컴팩트 */
.widget.widget-currency {
    padding: 8px 10px;
    background: var(--color-widget-bg, #fff);
}

/* 헤더 */
.widget-currency .cx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.widget-currency .cx-base {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.widget-currency .cx-calc-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    color: #94a3b8;
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    border-radius: 3px;
}

.widget-currency .cx-calc-btn:hover {
    color: #3b82f6;
}

/* 환율 행 */
.widget-currency .cx-row {
    display: flex;
    align-items: baseline;
    padding: 5px 2px;
    border-radius: 4px;
    transition: background 0.15s;
    gap: 6px;
}

.widget-currency .cx-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* 통화 라벨 — 고정 폭 */
.widget-currency .cx-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    width: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 환율 값 — 왼쪽 정렬, 남은 공간 채움 */
.widget-currency .cx-value {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

/* 증감률 — 오른쪽 고정 */
.widget-currency .cx-change {
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.widget-currency .cx-up { color: #16a34a; }
.widget-currency .cx-down { color: #ef4444; }
.widget-currency .cx-flat { color: #d1d5db; }

/* 스켈레톤 로딩 애니메이션 */
.widget-currency .skeleton {
    background: var(--color-bg, #f1f5f9);
    border-radius: 3px;
    animation: cx-shimmer 1.2s ease-in-out infinite;
}

@keyframes cx-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
