/* 
   Videos Page Styles
   - Custom Variables
   - Animations
   - Carousel
   - Card Effects
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --secondary: #3b82f6;
    --secondary-light: #60a5fa;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(15, 23, 42, 0.85);
    --card-border: rgba(139, 92, 246, 0.25);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --shadow-primary: rgba(139, 92, 246, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #020617 0%, #1e1b4b 40%, #1e293b 70%, #020617 100%);
    background-attachment: fixed;
}

/* Scrollbar Styles */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Material Icons */
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out backwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    animation-delay: var(--delay, 0s);
}

/* =========================================
   Page Header
   ========================================= */
.page-header-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 40%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 8s ease infinite;
}

/* Upload Button */
.upload-btn {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

/* =========================================
   Featured Carousel
   ========================================= */
.carousel-container {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

/* Carousel Buttons */
.carousel-btn {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

/* Carousel Indicators */
.carousel-indicator {
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-indicator.active {
    width: 1.5rem;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* Featured Badge */
.featured-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(10px);
}

/* Featured Video Details */
.featured-video-bg {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 30, 0.98));
    backdrop-filter: blur(20px);
}

/* Watch Now Button */
.watch-now-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
    transition: all 0.3s;
}

.watch-now-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.7), 0 0 60px rgba(139, 92, 246, 0.3);
}

/* =========================================
   Category Filters
   ========================================= */
.filter-toolbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.category-filter {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-filter:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.category-filter[data-active="true"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6), 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* =========================================
   Video Cards
   ========================================= */
.video-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa, #22d3ee);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.5);
}

.video-card:hover::before {
    opacity: 0.3;
}

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

.video-thumbnail-bg {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-thumbnail-bg {
    transform: scale(1.1);
}

/* Play Button Overlay */
.play-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.play-button {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    transition: all 0.3s;
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.8);
}

/* Duration Badge */
.duration-badge {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video Meta */
.video-category {
    color: #a78bfa;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.video-title {
    transition: all 0.3s;
}

.video-card:hover .video-title {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Watch Button */
.watch-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.watch-link:hover {
    color: #a78bfa;
    transform: translateX(4px);
}

/* =========================================
   Empty State
   ========================================= */
.empty-state-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* =========================================
   Pagination
   ========================================= */
.pagination-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s;
}

.pagination-btn:hover:not([disabled]) {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .video-card {
        border-width: 1px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .category-filter {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* =========================================
   Additional Enhancements
   ========================================= */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}