/**
 * استایل‌های اصلی پلاگین قیمت ارزهای دیجیتال
 */

/* بنر نمایش 5 ارز */
.mhm-crypto-banner {
    width: 100%;
    margin: 20px 0;
}

.mhm-crypto-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.mhm-crypto-item {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mhm-crypto-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mhm-crypto-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mhm-crypto-name strong {
    font-size: 16px;
    color: #333;
}

.mhm-crypto-code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.mhm-crypto-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mhm-crypto-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mhm-crypto-label {
    font-size: 13px;
    color: #666;
}

.mhm-crypto-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.mhm-crypto-buy .mhm-crypto-value {
    color: #28a745;
}

.mhm-crypto-sell .mhm-crypto-value {
    color: #dc3545;
}

.mhm-crypto-update {
    margin-top: 10px;
    text-align: left;
    color: #999;
    font-size: 11px;
}

/* لیست کامل ارزها */
.mhm-crypto-list {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
}

.mhm-crypto-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.mhm-crypto-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.mhm-crypto-table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.mhm-crypto-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

.mhm-crypto-table tbody tr:hover {
    background: #f8f9fa;
}

.mhm-crypto-table tbody tr:last-child td {
    border-bottom: none;
}

.mhm-crypto-name-cell strong {
    color: #333;
    font-size: 15px;
}

.mhm-crypto-code-cell .mhm-crypto-code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.mhm-crypto-buy-cell {
    color: #28a745;
    font-weight: 600;
}

.mhm-crypto-sell-cell {
    color: #dc3545;
    font-weight: 600;
}

.mhm-crypto-update-cell {
    color: #999;
    font-size: 12px;
}

/* ویجت */
.mhm-crypto-widget {
    width: 100%;
}

.mhm-crypto-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mhm-crypto-widget-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mhm-crypto-widget-item:last-child {
    margin-bottom: 0;
}

.mhm-crypto-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.mhm-crypto-widget-header strong {
    font-size: 14px;
    color: #333;
}

.mhm-crypto-widget-header .mhm-crypto-code {
    background: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    color: #666;
}

.mhm-crypto-widget-prices {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.mhm-crypto-widget-prices .mhm-crypto-buy {
    color: #28a745;
}

.mhm-crypto-widget-prices .mhm-crypto-sell {
    color: #dc3545;
}

.mhm-crypto-widget-prices strong {
    font-size: 14px;
}

.mhm-crypto-widget-update {
    margin-top: 8px;
    text-align: left;
    color: #999;
    font-size: 11px;
}

/* پیام خطا */
.mhm-crypto-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .mhm-crypto-banner-inner {
        flex-direction: column;
    }
    
    .mhm-crypto-item {
        min-width: 100%;
    }
    
    .mhm-crypto-table {
        font-size: 12px;
    }
    
    .mhm-crypto-table th,
    .mhm-crypto-table td {
        padding: 8px;
    }
    
    .mhm-crypto-widget-prices {
        flex-direction: column;
        gap: 5px;
    }
}

/* انیمیشن بارگذاری */
@keyframes mhm-crypto-loading {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.mhm-crypto-loading {
    animation: mhm-crypto-loading 1.5s ease-in-out infinite;
}

