/* Favoriter-sida specifik styling */

/* Hero navigation */
.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 favoriter */
.favoriter-hero {
    background: linear-gradient(135deg, rgba(229, 9, 20, 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;
}

.favoriter-hero h1 {
    background: linear-gradient(135deg, #e50914, #ff6b35);
    -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: #e50914;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.breadcrumb-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

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

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

/* Active nav link */
.nav-links a.active {
    color: #e50914;
    font-weight: 600;
}

/* 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;
}

/* Ämnesfilter */
.subject-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.subject-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #e50914, #ff6b35);
    border-color: #e50914;
    color: white;
    transform: translateY(-1px);
}

.filter-btn:focus {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}

.filter-btn.active {
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.2);
}

/* Tom favoriter meddelande */
.empty-favorites {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.8);
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-favorites h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: white;
}

.empty-favorites p {
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, #e50914, #ff6b35);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

/* Favoriter grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 320px);
    gap: 25px;
    justify-content: center;
    margin-bottom: 50px;
}

/* Favorit video kort */
.favorite-video-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 360px;
    position: relative;
}

.favorite-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.4);
}

.favorite-video-thumbnail {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

/* Play button overlay */
.favorite-video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.favorite-video-card:hover .favorite-video-thumbnail::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Favoritknapp på videokort */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 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);
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    color: #ffeb3b;
}

.favorite-btn.favorited {
    background: rgba(229, 9, 20, 0.9);
    color: #ffeb3b;
}

.favorite-btn.favorited:hover {
    background: rgba(229, 9, 20, 1);
    color: #fff;
}

/* Ämnesbadge */
.subject-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

/* Videoinnehåll */
.favorite-video-content {
    padding: 16px;
    height: 160px;
    display: flex;
    flex-direction: column;
}

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

.favorite-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;
}

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

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

.favorite-date {
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11px;
}

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

.search-highlight {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.3), rgba(255, 107, 53, 0.3));
    color: #e50914;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Quick actions specifikt för favoriter */
.quick-actions .quick-action:first-child {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.quick-actions .quick-action:nth-child(2) {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Animation för kort som laddas in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorite-video-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation för flera kort */
.favorite-video-card:nth-child(1) { animation-delay: 0.1s; }
.favorite-video-card:nth-child(2) { animation-delay: 0.15s; }
.favorite-video-card:nth-child(3) { animation-delay: 0.2s; }
.favorite-video-card:nth-child(4) { animation-delay: 0.25s; }
.favorite-video-card:nth-child(5) { animation-delay: 0.3s; }
.favorite-video-card:nth-child(6) { animation-delay: 0.35s; }

/* Mobile responsiv */
@media (max-width: 768px) {
    .favoriter-hero {
        padding: 100px 20px 20px;
    }
    
    .breadcrumb {
        padding: 100px 20px 20px;
    }
    
    .content {
        padding: 5px 20px;
        margin-top: -5px;
    }
    
    .subject-filters {
        padding: 10px 20px;
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .favorite-video-card {
        width: 100%;
        max-width: 320px;
        height: 340px;
        margin: 0 auto;
    }
    
    .favorite-video-thumbnail {
        height: 180px;
    }
    
    .favorite-video-content {
        height: 160px;
        padding: 14px;
    }
    
    .empty-favorites {
        padding: 40px 20px;
    }
    
    .empty-icon {
        font-size: 60px;
    }
    
    .empty-favorites h3 {
        font-size: 24px;
    }
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}