/* YemenMarket.css - أنماط واجهة تحليل السوق اليمني */
.yemen-market-analysis {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.yemen-market-analysis::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.market-title {
    color: #c5a059;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
}

.market-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    color: #EF4444;
    font-size: 13px;
    font-weight: bold;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* شبكة الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-card.trending {
    border-left: 4px solid #c5a059;
}

.stat-card.high {
    border-left: 4px solid #10B981;
}

.stat-card.low {
    border-left: 4px solid #EF4444;
}

.stat-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    color: white;
    font-size: 22px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 5px;
}

.stat-detail {
    color: #666;
    font-size: 12px;
}

/* شريط الوقت */
.time-progress-container {
    margin: 25px 0;
    padding: 20px;
    background: rgba(26, 26, 26, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.time-progress-bar {
    height: 6px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 3px;
    transition: width 1s ease, background 1s ease;
}

.time-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 11px;
}

/* قسم سعر الصرف */
.exchange-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.exchange-card {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

.exchange-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exchange-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exchange-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.exchange-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.exchange-item:last-child {
    border-bottom: none;
}

.exchange-label {
    color: #999;
    font-size: 14px;
}

.exchange-value {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.exchange-value.gold {
    color: #c5a059;
}

.exchange-prediction {
    margin-top: 15px;
    padding: 15px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* التنبيهات */
.alerts-section {
    margin-top: 25px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.alert-item:hover {
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateX(-5px);
}

.alert-item.info {
    border-right: 4px solid #3B82F6;
}

.alert-item.warning {
    border-right: 4px solid #F59E0B;
}

.alert-item.success {
    border-right: 4px solid #10B981;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    color: white;
    font-weight: bold;
    margin-bottom: 3px;
}

.alert-message {
    color: #999;
    font-size: 13px;
}

.alert-time {
    color: #666;
    font-size: 11px;
    flex-shrink: 0;
}

/* أزرار التحكم */
.controls-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.market-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    border: none;
    outline: none;
}

.market-button.primary {
    background: linear-gradient(135deg, #c5a059 0%, #f0c929 100%);
    color: black;
}

.market-button.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
}

.market-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.market-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(197, 160, 89, 0.3);
}

/* التأثيرات */
.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .yemen-market-analysis {
        padding: 20px;
        margin: 15px 0;
    }
    
    .stats-grid,
    .exchange-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .market-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .market-title {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .controls-section {
        flex-direction: column;
    }
    
    .market-button {
        width: 100%;
        justify-content: center;
    }
}

/* أنيميشن للبيانات الجديدة */
@keyframes highlightUpdate {
    0% { background-color: rgba(197, 160, 89, 0.2); }
    100% { background-color: transparent; }
}

.data-updated {
    animation: highlightUpdate 1s ease;
}
