/* 
 * Custom Premium UI/UX Overrides 
 * Enhances the default layout with modern typography, glassmorphism, and hover interactions.
 */

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

body {
    font-family: 'Inter', sans-serif !important;
}

/* Dark mode enhancements */
.dark body {
    background-color: #0f172a !important;
    color: #f1f5f9;
}

.dark main,
.dark footer,
.dark nav {
    background-color: #0f172a !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ==========================================================================
   Header & Glassmorphism
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Video Cards & Hover Effects
   ========================================================================== */
.videocard {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1e293b;
    border: 1px solid transparent;
}

.videocard:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.thumbcont {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}

.thumbcont img {
    transition: transform 0.5s ease;
}

.videocard:hover .thumbcont img {
    transform: scale(1.05);
}

/* Overlay gradient for images */
.thumbcont::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    pointer-events: none;
    opacity: 0.8;
}

/* Time Duration Badge */
.durlabel {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* HD Badge adjustments */
.durlabel img {
    filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.5));
}

/* Video Info Section */
.videoinfo {
    padding: 12px 10px !important;
    background-color: #1e293b !important;
}

.videotitle {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    color: #e2e8f0 !important;
    margin-bottom: 6px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.videocard:hover .videotitle {
    color: #38bdf8 !important;
    /* Premium light blue accent on hover */
}

/* Meta Data (Author, Views) */
.author {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}

.author span.font-semibold {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

/* Views Icon */
.viewsIcon {
    opacity: 0.7;
    margin-right: 4px;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn,
button,
.button-class {
    transition: all 0.2s ease !important;
}

.btn:hover,
button:hover,
.button-class:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination,
.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 2rem 0;
}

.page-numbers {
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #1e293b;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-numbers:hover {
    background-color: #334155;
    color: #fff;
}

.page-numbers.current {
    background-color: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    font-weight: 600;
}