/* RSS Feed Slider Styles - Fresh Start */

/* Container Styles */
.rss-feed-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}

/* Slider Styles */
.rss-feed-slider {
    display: flex;
    flex-wrap: nowrap;
    transition: none;
    width: auto;
    transform: translateX(0);
    gap: 20px;
    padding: 10px 0;
}

/* Item Styles */
.rss-feed-item {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-width: 300px;
    max-width: 350px;
    width: auto;
}

.rss-feed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Styles */
.rss-feed-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rss-feed-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.rss-feed-item:hover .rss-feed-thumbnail img {
    transform: scale(1.05);
}

/* Default Thumbnail */
.default-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.default-thumbnail .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.sports-icon {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Content Styles */
.rss-feed-content {
    padding: 20px;
}

.rss-feed-date {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.rss-feed-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.rss-feed-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rss-feed-title a:hover {
    color: #0073aa;
}

.rss-feed-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Grid Layout (for grid shortcode) */
.rss-feed-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.rss-feed-grid .rss-feed-item {
    min-width: auto;
    max-width: none;
    height: auto;
}

/* Responsive Grid Layout */
@media (min-width: 1200px) {
    .rss-feed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .rss-feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .rss-feed-grid {
        grid-template-columns: 1fr;
    }
}

/* Slider Mode Specific Styles */
.rss-feed-slider-container.slider-mode {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

.rss-feed-slider-container.slider-mode .rss-feed-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: none !important;
    width: auto !important;
    transform: translateX(0) !important;
    grid-template-columns: none !important;
    gap: 20px !important;
    position: relative !important;
}

.rss-feed-slider-container.slider-mode .rss-feed-item {
    flex: 0 0 auto !important;
    min-width: 300px !important;
    max-width: 350px !important;
    width: 300px !important;
    position: relative !important;
}

/* Responsive Slider */
@media (min-width: 1200px) {
    .rss-feed-slider-container.slider-mode .rss-feed-item {
        min-width: calc(25% - 15px) !important;
        max-width: calc(25% - 15px) !important;
        height: auto !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .rss-feed-slider-container.slider-mode .rss-feed-item {
        min-width: calc(33.333% - 15px) !important;
        max-width: calc(33.333% - 15px) !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    .rss-feed-slider-container.slider-mode .rss-feed-item {
        min-width: calc(100% - 15px) !important;
        max-width: calc(100% - 15px) !important;
        height: auto !important;
    }
}

/* Loading State */
.rss-feed-slider.loading {
    opacity: 0.7;
}

.rss-feed-slider.loading::after {
    content: 'Loading RSS feeds...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 5px;
    font-weight: 500;
}

/* Error State */
.rss-feed-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Smooth Transitions */
.rss-feed-slider {
    will-change: transform;
}

.rss-feed-item {
    will-change: transform;
}

/* Accessibility Improvements */
.rss-feed-item:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.rss-feed-title a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Slider Animation */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Auto-scroll animation for slider */
.rss-feed-slider.auto-scroll {
    animation: slideLeft 20s linear infinite;
}

/* Pause on hover */
.rss-feed-slider-container:hover .rss-feed-slider.auto-scroll {
    animation-play-state: paused;
}

/* Print Styles */
@media print {
    .rss-feed-slider-container {
        display: none;
    }
}