/* ========================================================================
 ! WARRANTEED COMPONENT: CORE SYSTEMS FOOTER & SUPPORT INTERACTIVE LAYER
 ! Developed/Tested: June 2026 // Target Viewport: Unified Cross-Device
 ======================================================================== */

/* --- 1. SECTOR CONTAINMENT BASELINE --- */
.warranteed-footer {
    background-color: #2e0155; 
    border-top: 1px solid #1e293b;
    padding: 80px 0 40px;
    font-family: 'JetBrains Mono', monospace;
    width: 100vw;
    box-sizing: border-box;
}

.footer-container {
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 50px; 
    box-sizing: border-box;
}

/* --- 2. LINK CORES DATA GRID LAYER (DESKTOP) --- */
.footer-grid-row {
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 60px; 
    padding-bottom: 60px; 
    border-bottom: 1px solid #1e293b; 
    text-align: left;
    box-sizing: border-box;
}

.footer-brand-block {
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    gap: 15px;
}

.footer-brand-title {
    font-size: 1.3rem; 
    font-weight: 800; 
    color: #fff; 
    margin: 0; 
    letter-spacing: -0.5px;
}

.footer-brand-tagline {
    color: #94a3b8; 
    font-size: 0.85rem; 
    line-height: 1.6; 
    margin: 0; 
    max-width: 280px;
}

.footer-status-indicator {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 5px;
}

.status-pulse-node.green-glow {
    width: 6px; 
    height: 6px; 
    background: #10b981; 
    border-radius: 50%; 
    box-shadow: 0 0 8px #10b981; 
    animation: terminal-cursor-blink 1.5s infinite steps(2, start);
}

.status-node-label {
    font-family: 'Space Mono', monospace; 
    font-size: 0.6rem; 
    font-weight: 700; 
    color: #10b981; 
    letter-spacing: 1px;
}

.footer-col-heading {
    font-size: 0.75rem; 
    color: #6366f1; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin: 0 0 20px 0; 
    font-weight: 700;
}

.footer-links-list {
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    font-size: 0.85rem;
}

.footer-links-list a {
    color: #94a3b8; 
    text-decoration: none; 
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-links-list a:hover {
    color: #fff;
}

/* --- 3. SYSTEM FOUNDATION META DOCK (DESKTOP) --- */
.footer-meta-dock {
    padding-top: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.8rem; 
    color: #64748b; 
    font-family: 'Space Mono', monospace;
}

.dock-copyright span { color: #94a3b8; }
.copyright-email {
    color: #94a3b8; 
    text-decoration: none; 
    font-weight: bold; 
    transition: color 0.2s;
}
.copyright-email:hover { color: #fff; }

.dock-nav-links {
    display: flex; 
    gap: 24px;
}
.dock-nav-links a {
    color: #64748b; 
    text-decoration: none; 
    transition: color 0.2s;
}
.dock-nav-links a:hover { color: #f8fafc; }

.dock-environment-hash {
    font-size: 0.65rem; 
    color: #334155; 
    text-align: right; 
    letter-spacing: 0.5px;
}
.dock-environment-hash .hash-value { color: #475569; }


/* --- 4. SECURE INGRESS SUPPORT POPUP DESK --- */
.support-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.93); 
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    will-change: opacity; 
    contain: strict; 
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain; /* Trap kinetic touch vectors on mobile */
}

.support-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.support-modal-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.96); 
    will-change: transform;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.support-modal-overlay.active .support-modal-card {
    transform: scale(1);
}

.support-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px dashed #1e293b;
    padding-bottom: 15px;
}

.support-modal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #6366f1;
    margin: 0;
    letter-spacing: 0.5px;
}

.support-modal-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.support-modal-close:hover { color: #fff; }

.support-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.support-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.support-field, 
.support-field-select, 
.support-field-area {
    width: 100%;
    padding: 12px 16px;
    background: #090d16;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.support-field:focus, 
.support-field-select:focus, 
.support-field-area:focus {
    outline: none;
    border-color: #6366f1;
}

.support-field-select {
    appearance: none; 
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); 
    background-repeat: no-repeat; 
    background-position: right 15px top 50%; 
    background-size: 10px auto;
}

.support-field-area {
    resize: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.support-submit-btn {
    width: 100%;
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.support-submit-btn:hover { background: #4f46e5; }

/* --- 5. SYSTEMIC ANIMATIONS --- */
@keyframes terminal-cursor-blink {
    0%, 100% { opacity: 0.2; box-shadow: 0 0 2px rgba(16, 185, 129, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 10px #10b981; }
}


/* ========================================================================
 ! --- 6. MOBILE BREAKPOINT RESPONSIVENESS (Screens under 768px wide) ---
 ======================================================================== */
@media (max-width: 768px) {
    .warranteed-footer {
        padding: 50px 0 30px !important;
    }

    .footer-container {
        padding: 0 24px !important;
    }

    /* Convert link matrix layout to a 2x2 grid for tablet/mobile parity */
    .footer-grid-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 24px !important;
        padding-bottom: 40px !important;
    }

    /* Span brand block fully across top row to give text proper width */
    .footer-brand-block {
        grid-column: span 2 !important;
        margin-bottom: 10px !important;
    }

    .footer-brand-tagline {
        max-width: 100% !important;
    }

    .footer-col-heading {
        margin-bottom: 12px !important;
        font-size: 0.7rem !important;
    }

    .footer-links-list {
        gap: 10px !important;
        font-size: 0.8rem !important;
    }

    /* Transmute bottom meta deck into a balanced vertical block */
    .footer-meta-dock {
        flex-direction: column !important;
        align-items: center !important;    /* SUCCESS: Centers all text sections globally */
        text-align: center !important;     /* Centers inline text anchors */
        gap: 24px !important;
        padding-top: 25px !important;
    }

    .dock-nav-links {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;    /* Centers individual items on the cross-axis */
        width: 100% !important;
    }

    .dock-environment-hash {
        text-align: center !important;     /* Align environment build hashes down the center line */
        font-size: 0.6rem !important;
        width: 100% !important;
    }

    /* --- EMERGENCY SYSTEM MODAL MOBILE WINDOW CLAMPING --- */
    .support-modal-overlay {
        padding: 8px !important;
    }

    .support-modal-card {
        padding: 20px 16px !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #supportTicketForm {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        padding-bottom: 10px !important;
    }
}