/**
 * Unix 타임스탬프 변환기 전용 스타일
 *
 * 색·간격·라운드는 tools-common.css 의 토큰만 쓴다(새 색을 만들지 않는다).
 * 결과 값은 사용자가 '읽는' 본문이므로 --text-sm(14px), 라벨은 --text-ui-sm(13px).
 */

/* 현재 시각 카드 묶음 */
.ts-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.ts-now-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    min-width: 0;
}

.ts-now-label {
    display: block;
    font-size: var(--text-ui-sm);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.ts-now-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 0;
}

.ts-now-value {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* 결과 목록 */
.ts-rows {
    margin: var(--spacing-md) 0 0 0;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ts-row {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-ms) var(--spacing-md);
    border-bottom: 1px solid var(--border-color-light);
    background: var(--surface-2);
}

.ts-row:last-child {
    border-bottom: none;
}

.ts-row dt {
    font-size: var(--text-ui-sm);
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

.ts-row dd {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    min-width: 0;
}

.ts-value {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* 자동 판별 안내 문구 */
.ts-hint {
    margin: var(--spacing-sm) 0 0 0;
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

.ts-alert {
    margin-top: var(--spacing-md);
}

/* 복사 버튼은 아이콘만 있어 기본 좌우 패딩이 과하다 */
.ts-copy {
    flex-shrink: 0;
    padding: 0.375rem 0.5rem;
}

/* 좁은 화면 — 라벨/값을 세로로 쌓아 가로 스크롤을 만들지 않는다 */
@media (max-width: 576px) {
    .ts-now-grid {
        grid-template-columns: 1fr;
    }

    .ts-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
}
