/**
 * File: /assets/css/mobile-sticky.css
 * Description: Scoped styling for the 2-button mobile conversion dock (Packages / Renew).
 * Dependency: Global CSS variables must be loaded from style.css first. 
 * Note: Enqueued strictly for viewports <= 768px via functions.php.
 */

/* ==========================================================================
   1. STRUCTURAL OVERRIDES
   ========================================================================== */
/* Prevents the fixed dock from covering the bottom of the footer or legal links */
body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
}

/* ==========================================================================
   2. MOBILE DOCK CONTAINER
   ========================================================================== */
.mobile-footer-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    z-index: 99999;
    
    /* Hardware acceleration for smooth sticky rendering */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* Crucial: Prevents overlap with modern iPhone home swipe bars */
    padding-bottom: env(safe-area-inset-bottom);
}

/* ==========================================================================
   3. THE 2-BUTTON SPLIT UI
   ========================================================================== */
.mobile-dock-btn {
    flex: 1; /* Forces exact 50/50 split */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 4px;
    
    /* Disables the default grey tap highlight on Android/iOS */
    -webkit-tap-highlight-color: transparent; 
    transition: background-color 0.1s ease;
}

/* SVG Icon Resets inside buttons */
.mobile-dock-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
}

/* -----------------------------------------
   Button 1: Packages (Acquisition Action)
   ----------------------------------------- */
.mobile-dock-btn.btn-packages {
    background-color: var(--accent-cyan);
    color: #000000; /* Strict black text on cyan for WCAG contrast */
}

/* Instant touch feedback */
.mobile-dock-btn.btn-packages:active {
    background-color: #00b8e6; 
}

/* -----------------------------------------
   Button 2: Renew (Retention Action)
   ----------------------------------------- */
.mobile-dock-btn.btn-renew {
    background-color: var(--text-primary); /* Deep charcoal */
    color: var(--bg-main); /* Pure white text */
}

/* Instant touch feedback */
.mobile-dock-btn.btn-renew:active {
    background-color: #000000;
}