/*
 * Modern Design Overrides for RetroTube Theme
 * High-end dark aesthetics, glassmorphism, responsive banner styling, and clean transitions.
 */

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

/* --- 1. Global Typography & Core Theme Colors --- */
body, input, button, select, textarea, .site-title, .widget-title, .site-description, .entry-header span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Fix for FontAwesome input icons (e.g., search icon) which were overridden by global input style */
input.fa-input, .fa-input, #searchsubmit {
    font-family: 'FontAwesome' !important;
}

body {
    background-color: #0d0e12 !important; /* Premium rich deep dark mode */
    color: #e2e8f0 !important;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #ff3565;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff6b8b;
}

/* --- 2. Glassmorphism Headers & Menus --- */
#masthead.site-header {
    background: rgba(13, 14, 18, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    position: sticky !important;
    top: 0;
    z-index: 999;
}

.main-navigation {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    height: 50px !important;
}

.main-navigation ul.row {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation ul.row > li {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.main-navigation ul.row > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
}

.main-navigation ul.row > li > a:hover,
.main-navigation ul.row > li.current-menu-item > a {
    color: #ff3565 !important;
    background: rgba(255, 53, 101, 0.08) !important;
}

/* --- 3. Homepage Slider Container (Responsive, Fade & Animated) --- */
.modern-slider-container {
    position: relative;
    width: 100%;
    margin: 15px auto 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.modern-slider-wrapper {
    position: relative;
    width: 100%;
    height: 380px; /* Custom sleek slider height */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .modern-slider-wrapper {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .modern-slider-wrapper {
        height: 200px;
    }
}

.modern-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
    z-index: 1;
}

.modern-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.modern-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Responsive auto-fit without ratio breaking */
    display: block;
    transition: transform 6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Premium smooth Ken Burns zoom effect on the active slide */
.modern-slide.active img {
    transform: scale(1.05);
}

/* Glassmorphism Navigation Arrows */
.modern-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 14, 18, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.modern-slider-arrow:hover {
    background: #ff3565 !important;
    border-color: #ff3565 !important;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 15px rgba(255, 53, 101, 0.4);
}

.prev-arrow {
    left: 30px;
}

.next-arrow {
    right: 30px;
}

@media (max-width: 768px) {
    .modern-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
    .prev-arrow {
        left: 20px;
    }
    .next-arrow {
        right: 20px;
    }
}

/* Glassmorphic dots navigation */
.modern-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(13, 14, 18, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-dot.active {
    background: #ff3565;
    width: 20px; /* Modern dynamic pill shape for the active dot */
    border-radius: 4px;
}

/* --- 4. Premium Modern Video Cards --- */
.loop-video.thumb-block {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, background 0.3s ease !important;
    overflow: hidden;
}

.loop-video.thumb-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 53, 101, 0.15) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

.loop-video.thumb-block .post-thumbnail {
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative;
    background-color: #050608;
}

.loop-video.thumb-block .post-thumbnail img {
    transition: transform 0.5s ease !important;
}

.loop-video.thumb-block:hover .post-thumbnail img {
    transform: scale(1.06);
}

/* --- 5. Glassmorphism Overlays on Thumbnails --- */
.loop-video.thumb-block .duration,
.loop-video.thumb-block .views {
    background: rgba(13, 14, 18, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    bottom: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.loop-video.thumb-block .duration {
    right: 8px !important;
}

.loop-video.thumb-block .views {
    left: 8px !important;
}

.loop-video.thumb-block .views i,
.loop-video.thumb-block .duration i {
    margin-right: 4px;
    color: #ff3565;
}

.loop-video.thumb-block .hd-video {
    background: linear-gradient(135deg, #ff3565, #ff6b8b) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    top: 8px !important;
    left: 8px !important;
    box-shadow: 0 2px 8px rgba(255, 53, 101, 0.3);
}

/* --- 6. Sleek Minimalist Rating Bar --- */
.loop-video.thumb-block .rating-bar {
    height: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 2px !important;
    margin: 10px 2px 8px 2px !important;
    overflow: hidden !important;
    border: none !important;
    display: block !important;
    position: relative;
}

.loop-video.thumb-block .rating-bar-meter {
    height: 100% !important;
    background: linear-gradient(90deg, #ff3565, #ff8da6) !important;
    border-radius: 2px !important;
}

/* Hide the raw thumbs icon and text inside rating-bar for a clean, modern look */
.loop-video.thumb-block .rating-bar i,
.loop-video.thumb-block .rating-bar span {
    display: none !important;
}

/* --- 7. Elegant Entry Titles --- */
.loop-video.thumb-block .entry-header {
    padding: 0 4px !important;
    margin-top: 6px !important;
}

.loop-video.thumb-block .entry-header span {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
    height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    transition: color 0.3s ease !important;
}

.loop-video.thumb-block:hover .entry-header span {
    color: #ff3565 !important;
}

/* --- 8. Widget Titles & Theme Headings --- */
.widget-title, h1.widget-title, h2.widget-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #fff !important;
    border-left: 4px solid #ff3565 !important;
    padding-left: 12px !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

/* --- 9. Smooth Infinite Load / Preloader --- */
.video-debounce-bar {
    background-color: #ff3565 !important;
}

/* --- 10. Sidebar & Widgets Makeover --- */
.widget {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
}

/* --- 11. Pagination Makeover --- */
.page-navi a, .page-navi span {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.page-navi a:hover {
    background: #ff3565 !important;
    color: #fff !important;
    border-color: #ff3565 !important;
    transform: translateY(-1px);
}

.page-navi span.current {
    background: #ff3565 !important;
    color: #fff !important;
    border-color: #ff3565 !important;
}
