@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@400;700&display=swap');

#boogeyman-rss-feed {
    font-family: 'Lato', sans-serif;
    background-color: #fff;
    color: #333;
    padding: 1rem;
    border-radius: .5rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
#boogeyman-rss-feed h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    text-align: center;
    color: #222;
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #eee;
}
.rss-status-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    z-index: 20;
    background-color: #fff;
}
.rss-loading-icon {
    height: 2rem;
    width: 2rem;
    color: #555;
    animation: spin 1.2s linear infinite;
}
.rss-status-text {
    margin-top: .75rem;
    font-size: .9rem;
    color: #777;
}
.rss-error { display: none; }
@keyframes spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}
.rss-slider-content {
    flex-grow: 1;
    position: relative;
    display: none;
}
.rss-slider-track-container {
    overflow: hidden;
    height: 100%;
}
.rss-slider-track {
    display: flex;
    height: 100%;
    transition: transform .6s cubic-bezier(.25,1,.5,1);
}
.rss-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 4px 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.rss-item-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: .5rem;
    margin-bottom: .75rem;
    background-color: #f8f9fa;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid #e9ecef;
}
.rss-item-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.rss-item-image-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: .5rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rss-item-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.rss-source {
    font-size: .8em;
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
    transition: color .2s ease;
}
.rss-source:hover {
    text-decoration: underline;
    color: #0056b3;
}
.rss-date {
    font-size: .75em;
    color: #6c757d;
    margin: .25rem 0 .75rem;
}
.rss-title {
    margin: 0 0 .5rem;
    font-size: 1.1em;
    line-height: 1.4;
    font-family: 'Merriweather', serif;
    font-weight: 700;
}
.rss-title a {
    color: #212529;
    text-decoration: none;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rss-title a:hover { color: #007bff; }
.rss-desc {
    color: #6c757d;
    line-height: 1.5;
    font-size: .9em;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rss-read-more {
    margin-top: .75rem;
    color: #007bff;
    text-decoration: none;
    font-size: .9em;
    font-weight: 600;
    align-self: flex-start;
    transition: all .2s;
    padding: .4em .8em;
    border: 1px solid #007bff;
    border-radius: .25rem;
    background-color: transparent;
}
.rss-read-more:hover {
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,.3);
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255,255,255,.9);
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
}
#boogeyman-rss-feed:hover .slider-nav {
    opacity: 1;
    pointer-events: auto;
}
.slider-nav:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,123,255,.4);
    transform: translateY(-50%) scale(1.1);
}
.slider-nav.prev { left: -18px; }
.slider-nav.next { right: -18px; }
.feed-stats {
    font-size: .75rem;
    color: #6c757d;
    text-align: center;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid #e9ecef;
}