/* =====================================================================
   SHARE2INSPIRE - UNIFIED FLOATING HUB
   Single minimal floating button → expands to show Career Adviser + Feedback
   
   Created: 2026-02-16
   Updated: 2026-03-04 (Unified hub — one button, zero noise)
   Purpose: Minimal, non-intrusive access point for Career Adviser & Feedback
   ===================================================================== */

/* ===== HIDE ORIGINAL SIDE TABS (replaced by unified hub) ===== */
.feedback-side-widget .feedback-side-tab,
.career-side-widget .career-side-tab {
    display: none !important;
}

/* ===== UNIFIED HUB CONTAINER ===== */
.s2i-hub {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    font-family: 'Poppins', sans-serif;
}

/* ===== MAIN TRIGGER BUTTON ===== */
.s2i-hub-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1A1A1A;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 3;
}

.s2i-hub-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.s2i-hub-trigger.active {
    background: #333;
    transform: rotate(45deg);
}

.s2i-hub-trigger svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #C9A961;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

/* ===== MENU OPTIONS ===== */
.s2i-hub-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.s2i-hub.open .s2i-hub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.s2i-hub-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.s2i-hub-option:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateX(-4px);
}

.s2i-hub-option .opt-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f0e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.s2i-hub-option .opt-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1A1A1A;
    letter-spacing: 0.5px;
}

.s2i-hub-option .opt-desc {
    font-size: 0.65rem;
    font-weight: 300;
    color: #999;
    margin-top: 1px;
}

/* ===== OVERLAY (click outside to close) ===== */
.s2i-hub-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9997;
}

.s2i-hub.open ~ .s2i-hub-overlay {
    display: block;
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
    .s2i-hub {
        bottom: 20px;
        right: 20px;
    }

    .s2i-hub-trigger {
        width: 44px;
        height: 44px;
    }

    .s2i-hub-trigger svg {
        width: 18px;
        height: 18px;
    }

    .s2i-hub-option {
        padding: 8px 14px 8px 10px;
    }

    .s2i-hub-option .opt-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .s2i-hub-option .opt-label {
        font-size: 0.7rem;
    }

    .s2i-hub-option .opt-desc {
        display: none;
    }
}

@media (max-width: 400px) {
    .s2i-hub {
        bottom: 16px;
        right: 16px;
    }

    .s2i-hub-trigger {
        width: 40px;
        height: 40px;
    }
}
