/* Terrorisk Video Archive Styles */

.tva-archive-wrapper {
    margin: 2rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Loading & Error States */
.tva-loading,
.tva-error {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #999;
}

.tva-error {
    color: #d9534f;
    background: rgba(217, 83, 79, 0.1);
    border-left: 4px solid #d9534f;
    padding: 1.5rem;
}

/* Hero Section */
.tva-hero {
    margin-bottom: 3rem;
}

.tva-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
    max-height: 500px;
}

.tva-hero-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tva-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tva-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.tva-hero-card:hover .tva-hero-overlay {
    padding: 2.5rem;
}

.tva-hero-overlay h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.tva-hero-date {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Grid */
.tva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.tva-video-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tva-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.tva-video-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tva-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
}

.tva-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tva-video-card:hover .tva-card-image img {
    transform: scale(1.05);
}

.tva-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.tva-video-card:hover .tva-play-icon {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.tva-card-content {
    padding: 1rem;
}

.tva-card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tva-card-date {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tva-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .tva-hero-overlay {
        padding: 1.5rem;
    }

    .tva-hero-overlay h2 {
        font-size: 1.3rem;
    }

    .tva-play-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tva-grid {
        grid-template-columns: 1fr;
    }

    .tva-hero {
        margin-bottom: 2rem;
    }

    .tva-card-content h3 {
        font-size: 0.9rem;
    }
}
