/* Swedish News Scraper — Slideshow Styles */

.snscraper-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    --sn-accent: #2271b1;
    --sn-overlay: rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.snscraper-no-articles {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* === Favicon === */

.snscraper-favicon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
}

.snscraper-source-badge {
    display: inline-flex;
    align-items: center;
    background: var(--sn-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

/* === Full-Bleed Carousel === */

.snscraper-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.snscraper-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.snscraper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: flex-end;
}

.snscraper-slide.active {
    opacity: 1;
    z-index: 1;
}

.snscraper-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0.5;
    z-index: 1;
}

.snscraper-slide-content {
    position: relative;
    z-index: 2;
    padding: 30px 40px;
    max-width: 700px;
}

.snscraper-slide-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 10px;
}

.snscraper-slide-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0 0 16px;
}

.snscraper-read-more {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--sn-accent);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.snscraper-read-more:hover {
    border-color: #fff;
}

/* === Card Grid Carousel === */

.snscraper-cards {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.snscraper-cards-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 0 10px;
}

.snscraper-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.snscraper-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.snscraper-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.snscraper-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.snscraper-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #222;
}

.snscraper-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    flex: 1;
}

/* === Navigation Controls === */

.snscraper-prev,
.snscraper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    opacity: 0.7;
}

.snscraper-prev:hover,
.snscraper-next:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.snscraper-prev {
    left: 15px;
}

.snscraper-next {
    right: 15px;
}

/* === Dots === */

.snscraper-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.snscraper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}

.snscraper-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* === Responsive === */

@media (max-width: 768px) {
    .snscraper-slide {
        min-height: 350px;
    }

    .snscraper-slide-content {
        padding: 20px 25px;
    }

    .snscraper-slide-title {
        font-size: 22px;
    }

    .snscraper-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .snscraper-slide {
        min-height: 300px;
    }

    .snscraper-slide-content {
        padding: 15px 20px;
    }

    .snscraper-slide-title {
        font-size: 18px;
    }

    .snscraper-slide-excerpt {
        font-size: 13px;
    }

    .snscraper-card {
        flex: 0 0 calc(80% - 8px);
        min-width: 200px;
    }

    .snscraper-prev,
    .snscraper-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
