/**
 * Root Architecture Variables - Color Token Palette & Sizing Specifications
 */
:root {
    /* Color Palette (Neutral Professional Archetype) */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.75);
    --border-color: rgba(226, 232, 240, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* System Accents */
    --accent-primary: #2563eb;
    --accent-hover: #1d4ed8;
    --close-btn-bg: rgba(15, 23, 42, 0.06);
    --close-btn-hover: rgba(239, 68, 68, 0.15);
    --close-btn-text: #ef4444;
    
    /* Design Tokens & Depth Layout Shadows */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --glass-blur: blur(12px);
    
    /* Component Dimensional Constraints */
    --header-height: 10px;
    --ad-desktop-width: 180px;
    --ad-desktop-height: 100vh;
    --max-content-width: 1200px;
}








/* System Dark Mode Contextual Override Triggers */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-base: #0f172a;
        --bg-surface: #1e293b;
        --bg-surface-glass: rgba(30, 41, 59, 0.75);
        --border-color: rgba(51, 65, 85, 0.5);
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --close-btn-bg: rgba(248, 250, 252, 0.08);
        --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    }
}

/* Base Initialization Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}






/* Base Framework Advertisement Panel Styles */
.ad-panel {
    width: var(--ad-desktop-width);
    height: var(--ad-desktop-height);
    background-color: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: fixed;
    overflow: hidden;
    display: flex;
    top:10px;
    flex-direction: column;
    z-index: 10;
    
    /* Performance Accelerated Structural Transition Properties */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
    
    padding-bottom:50px;
    margin-bottom:50px;
}

.ad-panel-b{
    width: 325px ;
    height: 300px;
    background-color: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: fixed;
    overflow: hidden;
    display: flex;
    bottom: 10px;
    flex-direction: column;
    z-index: 12;
     top: calc(100vh - 300px);
    /* Performance Accelerated Structural Transition Properties */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
    
}


/* Concrete Desktop Positioning Layout Handles */
.ad-panel-left {
    grid-column: 1;
    transform: translateX(-30px);
    opacity: 0;
}

.ad-panel-right {
    grid-column: 3;
    transform: translateX(30px);
    opacity: 0;
}

/* Core Interface Conditional Active Display Utility Classes */
.ad-panel.visible {
    transform: translateX(0);
    opacity: 1;
}

.ad-panel.hidden {
    visibility: hidden;
    pointer-events: none;
}

/* Inner Advertisement Component Architecture Elements */
.ad-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--close-btn-bg);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ad-close-btn:hover {
    background-color: var(--close-btn-hover);
    color: var(--close-btn-text);
    transform: scale(1.05);
}

.ad-close-btn:active {
    transform: scale(0.95);
}

.ad-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ad-placeholder-text {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ad-dimension-tag {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    background-color: var(--close-btn-bg);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

    .ad-panel {
        position: fixed;
        height:calc(100vh / 2);
        top: 10px;
    }
    
    .ad-panel-b{
        position:fixed;
        
        top: calc(100vh - 300px);
        height:300px;
        width:350px;
        left:0px;
        
    }
    
    
    .ad-panel-left {
        position:fixed;
        top:80px;
        left: 20px;
        
        /*transform: translate(-220px, 100%);*/
    }
    
    
    
    .ad-panel-right {
        position:fixed;
        right: 20px;
        top:80px;
        
        /*transform: translate(220px, -50%);*/
    }
    
    
    
   
    
    .ad-panel-left.visible {
        transform: translate(0, 2%);
    }
    
    .ad-panel-right.visible {
        transform: translate(0, 2%);
    }

ad-panel-left-bottom{
        position:fixed;
        left: 10px;
        width:330px;
        height:300px;
        top:calc(100vh - 320px);
}

ad-panel-left-bottom.visible{
    transform: translate(0, 2%);
}

/* ==========================================================================
   Responsive Viewport Breakdown Layers
   ========================================================================== */

/* Tablet Viewport Breakpoint (Under 1400px down to 1024px) */
@media (max-width: 1399px) and (min-width: 1024px) {


    /* Banners fluidly absolute float off-screen left and right borders safely */
    .ad-panel {
        position: fixed;
        height:calc(100vh / 2);
        top: calc(50% + (var(--header-height) / 2));
    }
    
    .ad-panel-b{
        position:fixed;
         top: calc(100vh - 300px);
        height:300px;
        width:350px;
        left:0px;
    }
    
    
    .ad-panel-left {
        position:fixed;
        top:80px;
        left: 0px;
        
        /*transform: translate(-220px, 100%);*/
    }
    
    
    
    .ad-panel-right {
        position:fixed;
        right: 0px;
        top:80px;
        
        /*transform: translate(220px, -50%);*/
    }
    
    
    
   
    
    .ad-panel-left.visible {
        transform: translate(0, 2%);
    }
    
    .ad-panel-right.visible {
        transform: translate(0, 2%);
    }
    
    
    .ad-panel-left-bottom {
        position:fixed;
        
        left: 00px;
        top:calc(100vh - 350px);
        /*transform: translate(220px, -50%);*/
    } 
    
    .ad-panel-left-bottom.visible {
        top:calc(100vh - 320px);
        left:10px;
        position:fixed;
        width:330px;
        transform: translate(0, 0);
        
    }
}

/* Mobile Viewport Breakpoint Layer (Under 1024px UI/UX Adjustments) */
@media (max-width: 1023px) {


    /* Banners structurally morph into sleek modern floating dynamic card drawers */
    .ad-panel {
        position: fixed;
        top: calc(100vw - 122px);
        width: calc(100vw - 32px);
        
        height: 400px; /* Reduced vertical footprint optimized for mobile viewing */
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }

    .ad-panel-b{
        position:fixed;
         top: calc(100vh - 300px);
        height:300px;
        width:350px;
        left:0px;
        z-index:99999;
    }
    
    .ad-content-wrapper {
        padding: 12px;
        justify-content: flex-start;
    }
    
    .ad-placeholder-text {
        text-align: left;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .ad-dimension-tag {
        margin-top: 0;
        margin-left: auto;
        margin-right: 24px; /* Leaves clear breathing space for close interaction button */
    }
    
    /* Alternating Slider Entry Transformations */
    .ad-panel-left {
        left: 16px;
        transform: translateY(150px) scale(0.95);
        opacity: 0;
    }
    
    .ad-panel-right {
        right: 16px;
        transform: translateY(150px) scale(0.95);
        opacity: 0;
    }
    
    /* Unified entry trajectory paths for sleek layout alignment */
    .ad-panel-left.visible,
    .ad-panel-right.visible {
        transform: translateY(0) scale(1);
        opacity: 1;
         top:calc(100vh - 480px);
    }
    .ad-panel-left-bottom {
        position:fixed;
        width:350px;
        height:300px;
        left: 20px;
        top:calc(100vh - 480px);
        /*transform: translate(220px, -50%);*/
    }     
    
}



