/**
 * Tops/Flops Block Styles
 */

.crypto-news-tops-flops-block {
    width: 100%;
    padding: 24px 0;
}

.crypto-news-tops-flops-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

.crypto-news-tops-flops-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 20px;
}

.column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wp--preset--color--foreground, #e0e0e0);
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

.tops-column .column-title {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.flops-column .column-title {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

.coin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.coin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--wp--preset--color--background, #fff);
    border-radius: 6px;
    border: 1px solid var(--wp--preset--color--foreground, #e0e0e0);
    transition: all 0.2s ease;
}

.coin-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.coin-name {
    font-weight: 600;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    flex: 1;
}

.coin-price {
    font-weight: 500;
    color: var(--wp--preset--color--foreground, #666);
    font-variant-numeric: tabular-nums;
    margin: 0 12px;
}

.coin-change {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 70px;
    text-align: right;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.coin-change.positive {
    color: #16a34a;
    background-color: rgba(22, 163, 74, 0.1);
}

.coin-change.positive::before {
    content: '↑';
    font-size: 12px;
    line-height: 1;
}

.coin-change.negative {
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
}

.coin-change.negative::before {
    content: '↓';
    font-size: 12px;
    line-height: 1;
}

/* Editor Preview Styles */
.crypto-news-tops-flops-preview {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 12px;
}

.tops-flops-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.coin-item-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
}

.crypto-news-tops-flops-placeholder {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 12px;
}

.crypto-news-tops-flops-error {
    padding: 16px;
    background: #fee;
    color: #c33;
    text-align: center;
    border-radius: 4px;
}

/* Responsive - Mobile Kachel-Layout */
@media (max-width: 768px) {
    .crypto-news-tops-flops-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .coin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
    }

    .coin-name {
        font-size: 16px;
        width: 100%;
        margin-bottom: 4px;
    }

    .coin-price {
        margin: 0;
        width: 100%;
        font-size: 18px;
        font-weight: 600;
        order: 2;
    }

    .coin-change {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding: 6px 12px;
    }
}

