
/*
 * AE4HF Custom Tool Board
 * SMF 2.0
 *
 * Desktop: Centered, fixed-width button columns
 * Mobile: Two equal columns
 * Toggle: White text and animated double chevrons
 */


/* =========================================
   MAIN TOOL BOARD CONTAINER
   ========================================= */

.ae4hf-toolboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    margin: 10px 0;
    padding: 10px;

    background: #00b2ed;
    border: 1px solid #000;
    border-radius: 10px;

    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}


/* =========================================
   SHOW / HIDE TOOLS TOGGLE
   ========================================= */

.ae4hf-toolboard-container #ae4hf-tools-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    align-self: center !important;
    float: none !important;

    gap: 15px !important;

    width: auto !important;
    min-width: 150px;
    max-width: 100%;

    height: 44px !important;
    min-height: 44px !important;

    margin: 0 auto !important;
    padding: 0 15px !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1 !important;

    text-align: center !important;
    text-shadow: none !important;

    position: relative !important;
    top: auto !important;

    box-sizing: border-box !important;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    transition: opacity 0.2s ease;
}


/* Toggle hover */

.ae4hf-toolboard-container #ae4hf-tools-toggle,
.ae4hf-toolboard-container #ae4hf-tools-toggle:hover,
.ae4hf-toolboard-container #ae4hf-tools-toggle:active,
.ae4hf-toolboard-container #ae4hf-tools-toggle:focus {
    opacity: 1 !important;
    color: #ffffff !important;
    background: transparent !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Toggle label */

#ae4hf-tools-toggle .ae4hf-toggle-label {
    display: inline-block;

    color: #ffffff !important;

    font-size: 18px;
    font-weight: bold;
    line-height: 1;

    white-space: nowrap;
}


/* Double chevrons */

#ae4hf-tools-toggle .ae4hf-chevron {
    display: inline-block;

    color: #ffffff !important;

    font-size: 28px;
    font-weight: bold;
    line-height: 1;

    transition: transform 0.25s ease;
}


/* Collapsed: chevrons point downward */

#ae4hf-tools-toggle[aria-expanded="false"] .ae4hf-chevron {
    transform: rotate(90deg);
}


/* Expanded: chevrons point upward */

#ae4hf-tools-toggle[aria-expanded="true"] .ae4hf-chevron {
    transform: rotate(-90deg);
}


/* Toggle keyboard accessibility */

#ae4hf-tools-toggle:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 4px;
}


/* =========================================
   EXPAND / COLLAPSE CONTENT
   ========================================= */

/* Ensure collapsed content stays hidden */

#ae4hf-tools-content[hidden] {
    display: none !important;
}


/* =========================================
   BUTTON GRID
   ========================================= */

.ae4hf-toolboard-container .ae4hf-toolboard {
    display: grid;

    grid-template-columns: repeat(auto-fit, 225px);

    justify-content: center;
    justify-items: center;
    align-items: center;

    gap: 15px;

    width: 100%;
    box-sizing: border-box;

    margin: 12px 0 0;
    padding: 10px 0 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}


/* =========================================
   NORMAL BUTTON LINKS
   ========================================= */

.ae4hf-toolboard-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    text-decoration: none;
}


/* =========================================
   ALL BUTTON IMAGES
   ========================================= */

.ae4hf-toolboard .zoomy {
    display: block;

    width: 100%;
    max-width: 225px;
    height: auto;

    margin: 0;
    padding: 0;
    border: 0;

    object-fit: contain;

    transition: transform 0.3s ease-in-out;
}


/* =========================================
   STAFF CHAT WRAPPER
   ========================================= */

.ae4hf-toolboard-item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
}

.ae4hf-staff-chat > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
}


/* =========================================
   DESKTOP HOVER ZOOM
   ========================================= */

@media (hover: hover) and (pointer: fine) {

    .ae4hf-toolboard .zoomy:hover {
        transform: scale(1.2);
        position: relative;
        z-index: 5;
    }

}


/* =========================================
   TABLET AND NARROW DESKTOP
   ========================================= */

@media (max-width: 768px) {

    .ae4hf-toolboard-container .ae4hf-toolboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-top: 12px;
    }

    .ae4hf-toolboard .zoomy {
        max-width: 200px;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .ae4hf-toolboard-container {
        padding: 10px;
    }

    .ae4hf-toolboard-container .ae4hf-toolboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-top: 10px;
    }

    .ae4hf-toolboard .zoomy {
        max-width: 100%;
    }

}


/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 360px) {

    .ae4hf-toolboard-container .ae4hf-toolboard {
        gap: 6px;
        padding-top: 6px;
    }

}


/* =========================================
   ACCESSIBILITY
   ========================================= */

/* Keyboard focus for tool links */

.ae4hf-toolboard a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .ae4hf-toolboard .zoomy,
    #ae4hf-tools-toggle .ae4hf-chevron,
    .ae4hf-toolboard-container #ae4hf-tools-toggle {
        transition: none;
    }

}

 