/* Webasatir Arz - Frontend Styles */
.warz-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    font-family: "Vazirmatn", "Tahoma", sans-serif;
    direction: rtl;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 8px 24px -8px rgba(15,23,42,0.10);
}

.warz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 8px;
}

.warz-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.warz-timer {
    font-size: 0.8rem;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 999px;
}

.warz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.warz-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.warz-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}

.warz-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.warz-item-icon {
    font-size: 1.5rem;
}

.warz-item-title {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.warz-item-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.warz-item-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.warz-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.warz-item-change {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.warz-item-change.up {
    background: #d1fae5;
    color: #059669;
}

.warz-item-change.down {
    background: #fee2e2;
    color: #dc2626;
}

.warz-item-change.neutral {
    background: #f1f5f9;
    color: #64748b;
}

.warz-item-source {
    color: #94a3b8;
    font-size: 0.75rem;
}

.warz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 8px;
}

.warz-last-update {
    font-variant-numeric: tabular-nums;
}

.warz-empty {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .warz-grid {
        grid-template-columns: 1fr;
    }
    .warz-wrapper {
        padding: 14px;
    }
}
