/* ============================================
   MINI MARKET WIDGET - Breaking News Section
   ============================================ */

/* Breaking News Content Layout */
.breaking-news-content {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 24px;
    align-items: start;
}

/* News List (Sol) */
.breaking-news-content .news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mini Market Widget (Sağ) */
.mini-market-widget {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Mini Market Tabs */
.mini-market-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.mini-tab {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mini-tab:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.mini-tab.active {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

/* Ana Fiyat */
.mini-market-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.price-value .text-success {
    color: #10B981;
}

.price-value .text-danger {
    color: #EF4444;
}

.price-change i {
    width: 32px;
    height: 32px;
}

.price-change .text-success {
    color: #10B981;
}

.price-change .text-danger {
    color: #EF4444;
}

/* Detaylar */
.mini-market-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-label {
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    color: #111827;
    font-weight: 600;
}

/* En Düşük / En Yüksek */
.mini-market-range {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.range-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.range-item:first-child {
    padding-right: 16px;
    border-right: 1px solid #e5e7eb;
}

.range-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-value {
    font-size: 14px;
    color: #111827;
    font-weight: 700;
}

/* Mini Chart */
.mini-chart-container {
    width: 100%;
    height: 120px;
    position: relative;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.mini-chart-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Loading Shimmer */
.loading-shimmer {
    display: inline-block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Text Colors */
.text-success {
    color: #10B981 !important;
}

.text-danger {
    color: #EF4444 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .breaking-news-content {
        grid-template-columns: 1fr 440px;
    }
    
    .mini-market-widget {
        padding: 16px;
    }
    
    .price-value {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .breaking-news-content {
        grid-template-columns: 1fr;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .mini-market-widget {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .breaking-news-content {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .breaking-news-content .news-list {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .mini-market-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mini-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .price-value {
        font-size: 36px;
    }
    
    .mini-chart-container {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .mini-market-widget {
        padding: 12px;
    }
    
    .price-value {
        font-size: 32px;
    }
    
    .detail-row {
        font-size: 12px;
    }
    
    .range-value {
        font-size: 13px;
    }
}

