/* 
 * HDC Interactive 2026 - Ultimate "Eventbrite Tier" Hybrid Theme
 * Absolute Fixed Screen Coordinates. No Divi Wrapper Limitations.
 * Colors: White/Gray Canvas -> Deep Navy Headers -> Bright Blue Actions
 */

:root {
    --hdc-bg-main: #f5f7f9;
    --hdc-bg-sidebar: #042a4f;
    --hdc-card-bg: #ffffff;
    --hdc-card-border: 1px solid rgba(0, 0, 0, 0.05);
    --hdc-text-primary: #1e293b;
    --hdc-text-secondary: #64748b;
    --hdc-accent: #064273;
    --hdc-gold: #f59e0b;
    --hdc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

body {
    background: var(--hdc-bg-main);
    color: var(--hdc-text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

/* High Contrast Accessibility Mode */
body.hdc-high-contrast {
    --hdc-bg-main: #000000;
    --hdc-text-primary: #ffffff;
    --hdc-text-secondary: #e2e8f0;
    --hdc-card-bg: #1e293b;
    --hdc-bg-sidebar: #0f172a;
}

/* Hard Kill Divi Wrappers */
#main-header, #main-footer, #et-top-navigation, #top-header { display: none !important; }
.et_builder_inner_content { padding: 0 !important; }

/* 
 * ABSOLUTE SCREEN PINNING (The Divi Override)
 * This forces the app to expand to physical screen edges.
 */
.hdc-app {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: -webkit-fill-available !important;
    overflow: hidden;
    z-index: 999999;
    background: var(--hdc-bg-main);
    display: flex;
}

/* --------------------------
 * UNIVERSAL COMPONENTS
 * -------------------------- */
.hdc-card {
    background: var(--hdc-card-bg);
    border: var(--hdc-card-border);
    border-radius: 12px;
    box-shadow: var(--hdc-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.hdc-btn {
    background: var(--hdc-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(6, 66, 115, 0.2);
    transition: transform 0.2s, background 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.hdc-btn:hover {
    transform: translateY(-2px);
    background: #042a4f;
}
.hdc-btn-secondary {
    background: white;
    color: var(--hdc-text-primary);
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.hdc-btn-secondary:hover {
    background: #f8fafc;
    color: var(--hdc-accent);
}

.hdc-spa-view { display: none; width: 100%; animation: fadeUp 0.3s ease; }
.hdc-spa-view.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------
 * HYBRID DESKTOP (Web App)
 * > 768px
 * -------------------------- */
@media (min-width: 768px) {
    /* Full Height Absolute Sidebar */
    .hdc-sidebar-desktop {
        width: 250px;
        background: var(--hdc-bg-sidebar);
        border-right: 1px solid rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        z-index: 100;
        height: 100%;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }
    
    .hdc-sidebar-logo {
        padding: 30px 20px;
        text-align: center;
        background: rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .hdc-sidebar-logo img { max-width: 140px; margin-bottom: 15px; }
    .hdc-sidebar-logo h1 { font-size: 15px; margin: 0; color: white; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

    .hdc-nav-menu { padding: 20px 15px; flex: 1; overflow-y: auto; }
    .hdc-nav-item {
        display: flex; align-items: center; padding: 12px 15px;
        color: rgba(255,255,255,0.7); text-decoration: none;
        border-radius: 8px; margin-bottom: 5px; transition: 0.2s;
        font-weight: 600; font-size: 14px;
    }
    .hdc-nav-item:hover { background: rgba(255,255,255,0.1); color: white; }
    .hdc-nav-item.active { background: white; color: var(--hdc-bg-sidebar); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
    .hdc-nav-item .dashicons { margin-right: 12px; font-size: 20px; }

    .hdc-tab-bar-mobile, .hdc-top-bar-mobile, .hdc-menu-overlay-mobile, .hdc-action-sheet-mobile, .hdc-action-sheet-overlay { display: none !important; }

    .hdc-main-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .hdc-desktop-header {
        height: 80px;
        padding: 0 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        z-index: 50;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    .hdc-desktop-header h2 { color: var(--hdc-bg-sidebar); }
    .hdc-content-area {
        flex: 1;
        padding: 40px;
        overflow-y: auto;
    }
}


/* --------------------------
 * HYBRID MOBILE (Native iOS App)
 * < 767px
 * -------------------------- */
@media (max-width: 767px) {
    .hdc-sidebar-desktop, .hdc-desktop-header { display: none !important; }
    .hdc-app { flex-direction: column; }

    /* Fix Wasted Top Space & iOS Native Top Bar */
    .hdc-top-bar-mobile {
        position: sticky; top: 0; z-index: 1050;
        background: rgba(6, 42, 79, 0.75);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        padding-top: max(calc(env(safe-area-inset-top) + 8px), 48px) !important;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 12px;
        display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
        box-sizing: border-box;
    }
    .hdc-top-bar-mobile h1 { font-size: 17px; font-weight: 600; margin: 0; color: white; letter-spacing: -0.4px; text-align: center; }

    .hdc-main-wrapper {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 15px;
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 15px));
        background: var(--hdc-bg-main);
    }
    .hdc-content-area { padding: 0; }

    .hdc-tab-bar-mobile {
        position: fixed; bottom: 0; left: 0; width: 100%;
        background: white;
        border-top: 1px solid #e2e8f0;
        z-index: 1000;
        display: flex; justify-content: space-around;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 15px)) 10px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
        box-sizing: border-box;
    }
    .hdc-tab-item {
        display: flex; flex-direction: column; align-items: center;
        color: var(--hdc-text-secondary); text-decoration: none;
        font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
    }
    .hdc-tab-item .dashicons { font-size: 24px; margin-bottom: 4px; }
    .hdc-tab-item.active { color: var(--hdc-accent); }

    .hdc-menu-overlay-mobile {
        position: fixed; top: 100%; left: 0; width: 100%; height: 100vh;
        background: var(--hdc-bg-main); z-index: 900;
        transition: top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        overflow-y: auto; padding-bottom: 120px;
    }
    .hdc-menu-overlay-mobile.open { top: 0; }
    .hdc-mobile-list-row {
        display: flex; justify-content: space-between; align-items: center;
        padding: 18px 20px; background: white;
        border-bottom: 1px solid #f1f5f9; cursor: pointer;
    }
    .hdc-mobile-list-row:last-child { border-bottom: none; }
    .hdc-mobile-list-row .dashicons { font-size: 22px; color: var(--hdc-accent); margin-right: 15px; }

    /* Bottom Action Sheet (for Programme/Seating) */
    .hdc-action-sheet-overlay {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(4, 42, 79, 0.4); z-index: 1090; backdrop-filter: blur(5px);
        opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .hdc-action-sheet-overlay.open { opacity: 1; pointer-events: all; }
    
    .hdc-action-sheet-mobile {
        position: fixed; bottom: -100%; left: 0; width: 100%;
        background: white; z-index: 1100;
        transition: bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        border-top-left-radius: 30px; border-top-right-radius: 30px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
        padding: 30px 20px calc(30px + env(safe-area-inset-bottom, 15px));
        box-sizing: border-box;
    }
    .hdc-action-sheet-mobile.open { bottom: 0; }
}

/* --------------------------
 * FEEDBACK MODAL OVERLAY (Light Theme)
 * -------------------------- */
.hdc-feedback-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(4, 42, 79, 0.8); backdrop-filter: blur(10px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.hdc-feedback-modal.open { opacity: 1; pointer-events: all; }
.hdc-feedback-box {
    background: white; border: none; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 30px; border-radius: 16px; width: 90%; max-width: 450px;
    transform: translateY(20px); transition: 0.3s;
}
.hdc-feedback-modal.open .hdc-feedback-box { transform: translateY(0); }
.hdc-feedback-box input, .hdc-feedback-box textarea, .hdc-feedback-box select {
    width: 100%; background: #f8fafc; border: 1px solid #cbd5e1;
    color: var(--hdc-text-primary); padding: 12px; border-radius: 8px; margin-bottom: 15px;
    font-family: inherit; font-size: 14px; box-sizing: border-box;
}
.hdc-feedback-box input:focus, .hdc-feedback-box textarea:focus, .hdc-feedback-box select:focus {
    border-color: var(--hdc-accent); outline: none; box-shadow: 0 0 0 3px rgba(6,66,115,0.1);
}

/* --------------------------
 * LAUNCHPAD MODALS (Workshop)
 * -------------------------- */
.hdc-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(4, 42, 79, 0.8); backdrop-filter: blur(10px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.hdc-modal-overlay.active { opacity: 1; pointer-events: all; }
.hdc-modal-content {
    background: white; border: none; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 30px; border-radius: 16px; width: 90%; max-width: 450px;
    transform: translateY(20px); transition: 0.3s;
}
.hdc-modal-overlay.active .hdc-modal-content { transform: translateY(0); }
