/* =============================================
   Video Categories & Videos Page Styles
   ============================================= */

/* Hero Section Adjustments */
.hero-section.hero-compact {
    min-height: auto;
    padding: 80px 40px 40px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.3s;
    position: relative;
    z-index: 10;
}

.back-link:hover {
    color: var(--accent-orange);
}

.back-link svg {
    transition: transform 0.3s;
}

.back-link:hover svg {
    transform: translateX(-5px);
}

/* Grid Layout - Same as News Page */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Base */
.news-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 1;
}

.news-card-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card Image */
.news-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #001e3c;
}

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

.news-card-item:hover .news-card-img img {
    transform: scale(1.1);
}

.news-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: linear-gradient(135deg, #001e3c 0%, #0a2647 100%);
}

.news-img-placeholder svg {
    opacity: 0.6;
}

/* Card Content */
.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
}

.news-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    margin-top: auto;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-read-more .arrow {
    transition: transform 0.3s ease;
}

.news-card-item:hover .news-read-more .arrow {
    transform: translateX(5px);
}

/* Video Category Card */
.video-category-card {
    cursor: pointer;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #001e3c;
    color: var(--accent-orange);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1);
}

/* Video Card */
.video-card {
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.6;
}

/* Load More Button */
.btn-load-more {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 40px;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-load-more:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 20px rgba(247, 148, 29, 0.3);
    transform: translateY(-3px);
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-more-container {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-bottom: 60px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal .modal-content::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.video-modal .modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
    line-height: 1;
}

.video-modal .close-modal:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #000;
}

/* Footer spacing */
.container-fluid {
    padding-bottom: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section.hero-compact {
        padding: 70px 20px 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 20px;
    }

    .news-card-img {
        height: 180px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-title {
        font-size: 1.1rem;
    }

    .video-modal .modal-content {
        width: 95%;
        border-radius: 8px;
    }

    .video-modal .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .container-fluid {
        padding-bottom: 40px;
    }
}
