/* تم‌های مختلف */
.cgp-widget {
    font-family: IRANSans, Tahoma, Arial, sans-serif;
    direction: rtl;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    max-width: 100%;
    margin: 0 auto;
}

/* تم پیش‌فرض (بنفش) */
.cgp-theme-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* تم آبی */
.cgp-theme-blue {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: white;
}

/* تم سبز */
.cgp-theme-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

/* تم قرمز */
.cgp-theme-red {
    background: linear-gradient(135deg, #cb356b 0%, #bd3f32 100%);
    color: white;
}

/* تم تیره */
.cgp-theme-dark {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: white;
}

/* تم روشن */
.cgp-theme-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

.cgp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.cgp-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.cgp-update-time {
    font-size: 14px;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
}

.cgp-items {
    padding: 15px;
}

.cgp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: transform 0.2s;
}

.cgp-item:hover {
    transform: translateX(-5px);
    background: rgba(255,255,255,0.2);
}

.cgp-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cgp-currency-icon {
    font-size: 20px;
}

.cgp-currency-name {
    font-size: 14px;
    font-weight: 500;
}

.cgp-item-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cgp-price {
    font-size: 16px;
    font-weight: bold;
    direction: ltr;
}

.cgp-currency {
    font-size: 12px;
    opacity: 0.8;
}

.cgp-change {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 15px;
    font-weight: bold;
}

.cgp-change.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.cgp-change.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.cgp-change.neutral {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.cgp-footer {
    padding: 15px 20px;
    border-top: 2px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.8;
}

.cgp-source {
    font-size: 11px;
}

.cgp-update-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* حالت موبایل */
@media (max-width: 768px) {
    .cgp-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cgp-item-value {
        width: 100%;
        justify-content: space-between;
    }
}