/**
 * استایل‌های نمایش عمومی افزونه در سایت
 */

/* استایل‌های کلی */
.currency-remittance-container {
    direction: rtl;
    font-family: 'Vazirmatn', tahoma, sans-serif;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    position: relative;
    overflow: hidden;
}

.currency-remittance-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5em;
}

/* هدر */
.currency-remittance-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    gap: 20px;
    position: relative;
}

.currency-remittance-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2980b9);
}

.currency-remittance-last-update {
    color: #34495e;
    font-size: 0.95em;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.1);
}

.currency-remittance-last-update::before {
    content: "🕒";
    margin-left: 8px;
}

/* جستجو */
.currency-remittance-search {
    position: relative;
    flex-grow: 1;
    max-width: 350px;
}

.currency-remittance-search input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 55px;
    border-radius: 40px;
    border: none;
    font-family: 'Vazirmatn', tahoma, sans-serif;
    font-size: 1em;
    transition: all 0.4s;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.currency-remittance-search input:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
}

.currency-remittance-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 1.2em;
    transition: all 0.3s;
}

.currency-remittance-search input:focus + .currency-remittance-search-icon {
    transform: translateY(-50%) scale(1.2);
}

/* گرید آیتم‌ها */
.currency-remittance-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* کارت‌های ارز */
.currency-remittance-item {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.currency-remittance-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.currency-remittance-item-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.currency-remittance-item-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 80%);
    opacity: 0;
    transition: opacity 0.4s;
}

.currency-remittance-item:hover .currency-remittance-item-header::before {
    opacity: 1;
}

.currency-flag {
    font-size: 2.2em;
    margin-left: 12px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.currency-name {
    margin: 0;
    flex-grow: 1;
    font-size: 1.3em;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.currency-symbol {
    font-size: 0.95em;
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 20px;
}

.currency-remittance-item-body {
    padding: 0px;
    text-align: center;
    position: relative;
}

.currency-price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px 0;
}

.price-label {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1.1em;
    position: relative;
    display: inline-block;
}

.price-label::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 3px;
}

.price-value {
    font-weight: bold;
    direction: ltr;
    display: inline-block;
    font-size: 2.5em;
    color: #2980b9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.price-unit {
    display: block;
    color: #95a5a6;
    font-size: 0.9em;
    margin-top: 5px;
}

.final-price {
    position: relative;
}

.final-price::before {
    content: "";
    position: absolute;
    top: 0;
    left: -25px;
    right: -25px;
    height: 100%;
    background: linear-gradient(to right, rgba(52, 152, 219, 0) 0%, rgba(52, 152, 219, 0.1) 50%, rgba(52, 152, 219, 0) 100%);
    z-index: -1;
    border-radius: 30px;
}

/* پیام‌ها */
.currency-remittance-no-items,
.currency-remittance-no-results {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
    color: #6c757d;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .currency-remittance-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .currency-remittance-search {
        max-width: 100%;
        width: 100%;
    }
}