/* Video Page Base Styles */
.video-header {
    background: linear-gradient(135deg, #6236FF 0%, #8B5FFF 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    color: white;
    margin-bottom: 2rem;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.video-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category Tabs */
.video-categories {
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bs-body-bg);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 25px;
    color: var(--bs-body-color);
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.dark-mode .category-tab {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

.category-tab:hover {
    background: rgba(98, 54, 255, 0.1);
    border-color: rgba(98, 54, 255, 0.3);
    color: #6236FF;
    transform: translateY(-2px);
}

body.dark-mode .category-tab:hover {
    background: rgba(123, 110, 255, 0.2);
    border-color: rgba(123, 110, 255, 0.4);
    color: #7B6EFF;
}

.category-tab.active {
    background: linear-gradient(135deg, #6236FF, #8B5FFF);
    border-color: #6236FF;
    color: white;
    box-shadow: 0 4px 15px rgba(98, 54, 255, 0.3);
}

body.dark-mode .category-tab.active {
    background: linear-gradient(135deg, #7B6EFF, #9F7FFF);
    border-color: #7B6EFF;
}

.category-tab ion-icon {
    font-size: 1.2rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-card {
    background: var(--bs-body-bg);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.dark-mode .video-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(98, 54, 255, 0.15);
}

body.dark-mode .video-card:hover {
    box-shadow: 0 8px 30px rgba(123, 110, 255, 0.2);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-embed {
    width: 100%;
    height: 100%;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #6236FF, #9C27B0);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Info */
.video-info {
    padding: 1.5rem;
}

.video-info .video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    line-height: 1.4;
}

body.dark-mode .video-info .video-title {
    color: #ffffff;
}

.video-description {
    color: var(--bs-body-color);
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

body.dark-mode .video-description {
    color: #ffffff;
    opacity: 0.8;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.video-category {
    background: rgba(98, 54, 255, 0.1);
    color: #6236FF;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

body.dark-mode .video-category {
    background: rgba(123, 110, 255, 0.2);
    color: #7B6EFF;
}

.video-category.premium {
    background: linear-gradient(135deg, #6236FF, #9C27B0);
    color: white;
}

.video-views {
    color: var(--bs-body-color);
    opacity: 0.6;
    font-weight: 500;
}

body.dark-mode .video-views {
    color: #ffffff;
    opacity: 0.7;
}

/* Video Upload Info */
.video-upload-info .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 20px;
}

body.dark-mode .video-upload-info .card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 100%);
}

.video-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6236FF, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-body-color);
    opacity: 0.7;
}

body.dark-mode .stat-label {
    color: #ffffff;
    opacity: 0.8;
}

/* Filter Animation */
.video-card.hidden {
    display: none;
}

.video-card.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .video-title {
        font-size: 2rem;
    }

    .video-subtitle {
        font-size: 1rem;
    }

    .video-header {
        padding: 2rem 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-tabs {
        gap: 0.25rem;
    }

    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .video-thumbnail {
        height: 180px;
    }

    .video-info {
        padding: 1rem;
    }

    .video-info .video-title {
        font-size: 1.1rem;
    }

    .video-description {
        font-size: 0.85rem;
    }

    .video-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-thumbnail {
        height: 160px;
    }

    .category-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .video-info {
        padding: 0.75rem;
    }

    .video-info .video-title {
        font-size: 1rem;
    }

    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* Loading Animation */
.video-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--bs-body-color);
    opacity: 0.6;
}

.video-loading ion-icon {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

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