/* Naturkunskap-sida specifik styling - KOMPLETT VERSION */


/* DELNINGSKNAPP STYLING */
.share-button {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
    z-index: 10;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transform: translateY(10px);
}

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

.share-button:hover {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    transform: scale(1.1);
}








/* Hero navigation - NY */
.hero-nav {
    position: absolute;
    top: 20px;
    left: 50px;
    z-index: 10;
}

.hero-back-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-back-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Hero section för naturkunskap */
.naturkunskap-hero {
    background: linear-gradient(135deg, rgba(72, 198, 239, 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: 120px 50px 30px;
    margin-top: 80px;
    position: relative;
}

.naturkunskap-hero h1 {
    background: linear-gradient(135deg, #48c6ef, #6f86d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Breadcrumb navigation */
.breadcrumb {
    padding: 20px 50px 20px;
    margin-top: 80px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: #48c6ef;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: white;
}

.breadcrumb-nav span {
    color: rgba(255,255,255,0.4);
}

/* Content section */
.content {
    padding: 10px 40px;
    margin-top: -10px;
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    font-weight: 500;
}

/* Kurser grid */
.kurser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Kurskort */
.kurs-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(72, 198, 239, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 320px;
}

.kurs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(72, 198, 239, 0.2);
    border-color: rgba(72, 198, 239, 0.5);
}

.kurs-card:focus {
    outline: 2px solid #48c6ef;
    outline-offset: 2px;
}

.kurs-header {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
    border-radius: 12px 12px 0 0;
}

.kurs-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: none;
}

.kurs-level {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: none;
}

.kurs-content {
    padding: 25px;
    height: 160px;
    display: flex;
    flex-direction: column;
}

.kurs-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.2;
}

.kurs-description {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    flex: 1;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kurs-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.kurs-stats {
    display: flex;
    gap: 15px;
}

.kurs-duration {
    background: rgba(72, 198, 239, 0.2);
    color: #48c6ef;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Section headers */
.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section actions */
.section-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-sekundär {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sekundär:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Naturkunskap video cards - PREMIUM DESIGN */
.naturkunskap-video-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #1f2937);
    border: 1px solid rgba(72, 198, 239, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 380px;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
    flex: none;
    position: relative;
}

.naturkunskap-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(72, 198, 239, 0.05), rgba(111, 134, 214, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.naturkunskap-video-card:hover::before {
    opacity: 1;
}

.naturkunskap-video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(72, 198, 239, 0.25),
        0 0 0 1px rgba(72, 198, 239, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(72, 198, 239, 0.6);
}

.naturkunskap-video-thumbnail {
    height: 220px;
    background: linear-gradient(45deg, #48c6ef, #6f86d6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    border-radius: 16px 16px 0 0;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Förbättrad play button med glasmorfism */
.naturkunskap-video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.naturkunskap-video-card:hover .naturkunskap-video-thumbnail::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(72, 198, 239, 0.3);
}

.naturkunskap-video-content {
    padding: 20px;
    height: 160px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent, rgba(72, 198, 239, 0.02));
}

.naturkunskap-video-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

.video-duration {
    background: linear-gradient(135deg, rgba(72, 198, 239, 0.2), rgba(111, 134, 214, 0.2));
    color: #48c6ef;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(72, 198, 239, 0.3);
}

/* Video grid */
.kategori-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

/* Section spacing */
.section {
    margin-bottom: 40px;
}

.section:first-child {
    margin-top: 0;
}

/* Sökresultat */
.search-results {
    margin-bottom: 30px;
}

.search-results-header {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.search-highlight {
    background: linear-gradient(135deg, rgba(72, 198, 239, 0.3), rgba(111, 134, 214, 0.3));
    color: #48c6ef;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Säkerhet - överstyr eventuella konflikter */
.content .kategori-videos .naturkunskap-video-card {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    flex: none !important;
}

.section .kategori-videos {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 300px) !important;
    justify-content: center !important;
}

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

/* Mobile responsiv */
@media (max-width: 768px) {
    .naturkunskap-hero {
        padding: 100px 20px 20px;
    }
    
    .breadcrumb {
        padding: 100px 20px 20px;
    }
    
    .content {
        padding: 5px 20px;
        margin-top: -5px;
    }
    
    .kurser-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kurs-card {
        height: 260px;
    }
    
    .kurs-header {
        height: 130px;
        font-size: 40px;
        border-radius: 12px 12px 0 0;
    }
    
    .kurs-content {
        padding: 16px;
        height: 130px;
    }
    
    .kurs-title {
        font-size: 20px;
    }
    
    .section-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .kategori-videos {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 300px;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .naturkunskap-video-card {
        width: 100%;
        max-width: 300px;
        height: 340px;
        margin: 0 auto;
    }
    
    .naturkunskap-video-thumbnail {
        height: 180px;
    }
    
    .naturkunskap-video-content {
        height: 160px;
        padding: 14px;
    }
}

/* Tablet-storlek */
@media (min-width: 769px) and (max-width: 1024px) {
    .kategori-videos {
        grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
        justify-content: center;
        gap: 20px;
    }
}

/* Animationer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#sectionTitle, #videoCount {
    transition: all 0.3s ease-in-out !important;
}

* {
    transition: all 0.3s ease;
}