/**
 * Scrollable News Cards CSS
 * Horizontal scrolling cards with images for real-time market data
 */

.sffc-news-container,
.sffc-news-scroller-container {
    width: 100%;
    padding: 15px 0;
    position: relative;
    background: linear-gradient(180deg, #fdfcf8 0%, #faf8f3 100%);
    border: 1px solid #e6d7c3;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.08);
}

.sffc-news-header {
    padding: 0 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sffc-news-title {
    font-size: 18px;
    font-weight: 600;
    color: #3a3026;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
}

.sffc-news-title::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.sffc-news-refresh {
    background: linear-gradient(135deg, #fdfcf8 0%, #f5f0e6 100%);
    border: 1px solid #d4af37;
    color: #6b5d4f;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-news-refresh:hover {
    background: linear-gradient(135deg, #f5f0e6 0%, #e8ddc7 100%);
    border-color: #b8941f;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(212, 175, 55, .2);
}

.sffc-news-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.sffc-news-scroll-container {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.sffc-news-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.sffc-news-scroll-container::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.08);
    border-radius: 3px;
}

.sffc-news-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.sffc-news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.sffc-news-card {
    flex: 0 0 320px;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcf8 100%);
    border: 1px solid #e6d7c3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.sffc-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
}

.sffc-news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.sffc-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sffc-news-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.7;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%);
}

.sffc-news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sffc-news-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sffc-news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #8b7355;
}

.sffc-news-source {
    font-weight: 500;
    color: #6b5d4f;
}

.sffc-news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sffc-news-time::before {
    content: "•";
    color: #ccc;
}

.sffc-news-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #3a3026;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Playfair Display', Georgia, serif;
}

.sffc-news-card-description {
    font-size: 13px;
    color: #6b5d4f;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sffc-news-card-footer {
    padding-top: 12px;
    border-top: 1px solid #e6d7c3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sffc-news-sentiment {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.sffc-news-sentiment.positive {
    color: #10b981;
}

.sffc-news-sentiment.negative {
    color: #ef4444;
}

.sffc-news-sentiment.neutral {
    color: #6b7280;
}

.sffc-news-sentiment-icon {
    font-size: 14px;
}

.sffc-news-read-more {
    color: #d4af37;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.sffc-news-read-more:hover {
    color: #b8941f;
}

.sffc-news-read-more::after {
    content: "→";
    transition: transform 0.2s;
}

.sffc-news-read-more:hover::after {
    transform: translateX(3px);
}

/* Scroll buttons */
.sffc-news-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fdfcf8 0%, #f5f0e6 100%);
    border: 1px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.sffc-news-scroll-btn:hover {
    background: linear-gradient(135deg, #f5f0e6 0%, #e8ddc7 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.sffc-news-scroll-btn.prev {
    left: 10px;
}

.sffc-news-scroll-btn.next {
    right: 10px;
}

.sffc-news-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sffc-news-scroll-btn svg {
    width: 20px;
    height: 20px;
    fill: #b8941f;
}

/* Loading state */
.sffc-news-loading {
    display: flex;
    gap: 15px;
    padding: 0 20px;
}

.sffc-news-skeleton {
    flex: 0 0 320px;
    height: 320px;
    background: linear-gradient(90deg, #faf8f3 25%, #e8ddc7 50%, #faf8f3 75%);
    background-size: 200% 100%;
    animation: sffc-skeleton-loading 1.5s infinite;
    border-radius: 10px;
    border: 1px solid #e6d7c3;
}

@keyframes sffc-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state */
.sffc-news-empty {
    width: 100%;
    padding: 40px;
    text-align: center;
    color: #8b7355;
}

.sffc-news-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.sffc-news-empty-text {
    font-size: 14px;
    color: #6b5d4f;
    font-family: 'Playfair Display', Georgia, serif;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sffc-news-card {
        flex: 0 0 280px;
    }
    
    .sffc-news-scroll-btn {
        display: none;
    }
    
    .sffc-news-container {
        margin: 10px 0;
    }
    
    .sffc-news-header {
        padding: 0 15px 10px;
    }
    
    .sffc-news-scroll-container {
        padding: 0 15px;
    }
}

/* Light gold theme only - no dark mode */
/* Premium elegant appearance maintained across all color schemes */