/* Стили карточек */
.spread-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.spread-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spread-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-favourite {
    position: absolute;
    bottom: 20px;
    left: 25px;
    opacity: 0.3;
}
.card-favourite:hover {
    cursor: pointer;
    opacity: 0.6;
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coin-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.coin-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.coin-meta .symbol {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.coin-meta .chain {
    font-size: 0.8rem;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.spread-value, .spread-percentage {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spread-value .label, .spread-percentage .label {
    font-size: 0.9rem;
    color: #64748b;
}

.spread-value .value, .spread-percentage .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.exchanges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.exchange {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.exchange .buy {
    color: green;
}

.exchange .sell {
    color: red;
}

.first-exchange {
    background-color: #e0f2fe;
    color: #0369a1;
}

.second-exchange {
    background-color: #fef3c7;
    color: #92400e;
}

.exchange-name {
    font-weight: 500;
}

.exchange-price {
    font-family: 'Roboto Mono', monospace;
}

.card-footer {
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.card-footer .time {
    font-size: 0.8rem;
    color: #64748b;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}