/* overview.css — раздел «Обзор». Карточки блоков, списки монет, состояния ошибок. */

.ov-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 1024px) {
    .ov-wrap { grid-template-columns: 1fr 1fr; }
    .ov-card--wide { grid-column: 1 / -1; }
}

.ov-card {
    background: #1e2430;
    border-radius: 15px;
    overflow: hidden;
}

.ov-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 2px solid #e59d02;
    font-size: 17px;
    font-weight: 700;
    color: #f0f6fc;
}

.ov-card-head i { color: #e59d02; font-size: 18px; }

.ov-card-sub {
    font-size: 12px;
    font-weight: 400;
    color: #8b949e;
}

/* Протухшая витрина внешне неотличима от свежей — метка обязательна */
.ov-stale {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--warning-color);
    background: rgba(255,152,0,.12);
    border-radius: 8px;
    padding: 3px 8px;
}

.ov-card-body { padding: 16px 20px; }

.ov-skeleton {
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(90deg, #232a37 25%, #2c3442 50%, #232a37 75%);
    background-size: 200% 100%;
    animation: ov-shimmer 1.4s infinite;
}

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

/* ── Ошибки и пустые состояния ───────────────────────────────────────────── */
.ov-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8b949e;
    padding: 10px 0;
}

.ov-msg--error { color: var(--danger-color); }

/* Счётчик отсеянных идей: короткий блок без него читается как «сигналов нет»,
   а не «остальные не окупаются». */
.ov-ideas-note {
    font-size: 11px;
    color: #6e7681;
    padding: 8px 2px 0;
    line-height: 1.5;
}

.ov-retry {
    background: rgba(229,157,2,.15);
    color: #e59d02;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ov-retry:hover { background: rgba(229,157,2,.28); }

/* ── Плитки метрик ───────────────────────────────────────────────────────── */
.ov-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.ov-tile {
    background: #232a37;
    border-radius: 10px;
    padding: 12px 14px;
}

.ov-tile-label { font-size: 11px; color: #8b949e; margin-bottom: 6px; }
.ov-tile-value { font-size: 18px; font-weight: 700; color: #f0f6fc; }
.ov-tile-sub   { font-size: 11px; color: #6e7681; margin-top: 4px; }

.ov-pos { color: #4ade80; }
.ov-neg { color: #f87171; }
.ov-dim { color: #8b949e; }

/* ── Списки монет по связи с BTC ─────────────────────────────────────────── */
.ov-lists {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .ov-lists { grid-template-columns: 1fr 1fr; }
}

.ov-list-title {
    font-size: 13px;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 8px;
}

.ov-list-note { font-size: 11px; color: #6e7681; margin-top: 8px; }

.ov-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.ov-row:nth-child(odd) { background: rgba(255,255,255,.02); }
.ov-row-sym { font-weight: 600; color: #f0f6fc; min-width: 96px; }
.ov-row-val { color: #8b949e; font-size: 12px; }
.ov-row-val b { color: #c9d1d9; font-weight: 600; }
.ov-row-tail { margin-left: auto; font-weight: 600; }

/* ── Позиции у стопа/цели ────────────────────────────────────────────────── */
.ov-now-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .ov-now-grid { grid-template-columns: 1fr 1fr; }
}

/* Позиция без стопа — не «далеко до стопа», а «стопа нет» */
.ov-nostop {
    border-left: 3px solid var(--danger-color);
    background: rgba(248,81,73,.08);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #f87171;
}

.ov-ideas-list { display: flex; flex-direction: column; gap: 12px; }

.ov-link { color: #e59d02; text-decoration: none; font-weight: 600; }
.ov-link:hover { text-decoration: underline; }
