/* * File: part-header.css
 * Description: Master Wrapper Styles
 * Version: 1.0.0
 */

/* =========================================
   1. THEME OVERRIDE (3rd Party Themes)
   ========================================= */
body.vidnok-saas-body header:not(.vidnok-header),      
body.vidnok-saas-body .wp-block-template-part,         
body.vidnok-saas-body .wp-site-blocks > header,
body.vidnok-saas-body .wp-block-cover,
body.vidnok-saas-body #masthead,                       
body.vidnok-saas-body .site-header {
    display: none !important;
}

/* =========================================
   2. VIDNOK BACKGROUND
   ========================================= */
body.vidnok-saas-body .vidnok-fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    background-color: #0f172a;
    background: radial-gradient(circle at 50% -10%, #7c3aed 0%, #4c1d95 25%, #1e1b4b 50%, #0f172a 100%);
    background-size: cover;
    pointer-events: none;
}

/* =========================================
   3. VIDNOK HEADER DESIGN
   ========================================= */
body.vidnok-saas-body header.vidnok-header {
    display: block;
    width: 100%;
    position: fixed; 
    top: 0;
    left: 0;
    height:60px;
    background: rgba(15, 23, 42, 0.9); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 9999;
}

/* Layout */
body.vidnok-saas-body header.vidnok-header .vidnok-header-inner {
    padding: 0 30px;
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.vidnok-saas-body header.vidnok-header .vidnok-logo img {
    max-height: 50px;
    width: auto;
}

/* =========================================
   4. BODY RESET
   ========================================= */
body.vidnok-saas-body {
    margin-top: 0;
    padding-top: 50px;
    background: transparent;
}

/* =========================================
   5. MOBILE SIDEBAR
   ========================================= */
#vidnok-mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    z-index: 100000;
    
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(88, 28, 135, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    
    transition: left 0.3s ease-in-out;
}

/* Active State */
#vidnok-mobile-sidebar.active {
    left: 0;
}

/* Sidebar Links */
#vidnok-mobile-sidebar .vidnok-sidebar-links a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#vidnok-mobile-sidebar .vidnok-sidebar-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 25px;
}

/* Text Colors */
#vidnok-mobile-sidebar .v-close-btn, 
#vidnok-mobile-sidebar .v-menu-title, 
header.vidnok-header .vidnok-menu-btn {
    color: #ffffff;
    cursor: pointer;
}

/* =========================================
   6. PAGE SPECIFIC FIXES
   ========================================= */

/* Force Sidebar on Top */
body.page-template-templates-ai-media #vidnok-mobile-sidebar,
body.vidnok-saas-body #vidnok-mobile-sidebar {
    z-index: 2147483647; 
}

/* Sidebar Overlay */
body.vidnok-saas-body .vidnok-sidebar-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2147483640;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.vidnok-saas-body .vidnok-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Content Layering */
body.vidnok-saas-body .vidnok-media-wrap,
body.vidnok-saas-body .vidnok-ai-canvas-wrapper {
    position: relative;
    z-index: 1; 
}

/* Sidebar Tabs */
.vidnok-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.vidnok-sidebar-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 10px;
    gap: 5px;
}

.v-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.v-tab-btn.active {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.vidnok-sidebar-new-chat {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

.vidnok-hidden {
    display: none !important;
}