/* =====================================================
   SVENSKA.CSS - Ämnesspecifik styling
   =====================================================
   Färger: Cyan-blå (#4facfe → #00f2fe)
   Ikon: 📝
   
   OBS: Kräver att subject-base.css laddas FÖRE denna fil!
   ===================================================== */

/* =====================================================
   FÄRGVARIABLER
   ===================================================== */

:root {
    /* Primära färger */
    --subject-primary: #4facfe;
    --subject-secondary: #00f2fe;
    --subject-gradient: linear-gradient(135deg, #4facfe, #00f2fe);
    
    /* RGB-värden för rgba() användning */
    --subject-primary-rgb: 79, 172, 254;
    --subject-secondary-rgb: 0, 242, 254;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.svenska-hero {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(15, 15, 15, 0.9));
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="40" opacity="0.1">📝</text></svg>');
    padding: 60px 50px 10px;
    margin-top: 70px;
    position: relative;
}

.svenska-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--subject-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.svenska-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
}

/* =====================================================
   VIDEOKORT
   ===================================================== */

.svenska-video-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(var(--subject-primary-rgb), 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease forwards;
    height: 340px;
    width: 300px;
    max-width: 300px;
}

.svenska-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(var(--subject-primary-rgb), 0.2);
    border-color: rgba(var(--subject-primary-rgb), 0.5);
}

.svenska-video-thumbnail {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    overflow: hidden;
    background: var(--subject-gradient);
}

.svenska-video-content {
    padding: 16px;
    height: 160px;
    display: flex;
    flex-direction: column;
}

.svenska-video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.svenska-video-description {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.svenska-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: auto;
}

/* =====================================================
   SHARE BUTTON HOVER
   ===================================================== */

.svenska-video-card:hover .share-button {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   LIGHT MODE
   ===================================================== */

body.light-mode .svenska-hero {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(245, 245, 247, 0.95));
}

body.light-mode .svenska-video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

body.light-mode .svenska-video-card:hover {
    box-shadow: 0 12px 30px var(--shadow-color);
}

body.light-mode .svenska-video-title {
    color: var(--text-primary);
}

body.light-mode .svenska-video-description {
    color: var(--text-secondary);
}

body.light-mode .svenska-video-meta {
    color: var(--text-tertiary);
}

/* =====================================================
   STAGGER ANIMATION
   ===================================================== */

.svenska-video-card:nth-child(1) { animation-delay: 0.1s !important; }
.svenska-video-card:nth-child(2) { animation-delay: 0.15s !important; }
.svenska-video-card:nth-child(3) { animation-delay: 0.2s !important; }
.svenska-video-card:nth-child(4) { animation-delay: 0.25s !important; }
.svenska-video-card:nth-child(5) { animation-delay: 0.3s !important; }
.svenska-video-card:nth-child(6) { animation-delay: 0.35s !important; }

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .svenska-hero {
        padding: 60px 20px 20px;
        margin-top: 60px;
    }
    
    .svenska-hero h1 {
        font-size: 32px;
    }
    
    .svenska-hero p {
        font-size: 15px;
    }
    
    .svenska-video-card {
        width: 100%;
        max-width: 300px;
        height: 340px;
        margin: 0 auto;
    }
}

/* =====================================================
   GRID OVERRIDE
   ===================================================== */

.content .kategori-videos .svenska-video-card {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    flex: none !important;
}

.section .svenska-video-card {
    width: 300px !important;
    max-width: 300px !important;
}

@media (max-width: 768px) {
    .content .kategori-videos .svenska-video-card,
    .section .svenska-video-card {
        width: 100% !important;
        max-width: 300px !important;
        min-width: auto !important;
    }
}