﻿/* =========================================
   Accessibility Top Button
========================================= */

.accessibility-top-btn {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

    .accessibility-top-btn:hover {
        text-decoration: underline;
    }

    .accessibility-top-btn:focus {
        outline: 3px solid #ff9800;
        outline-offset: 3px;
    }


/* =========================================
   Accessibility Panel
========================================= */

.accessibility-panel {
    position: fixed;
    top: 45px;
    right: 20px;
    z-index: 99999;
    width: 360px;
    max-width: calc(100% - 40px);
    background: #ffffff;
    color: #000000;
    border: 2px solid #333333;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.30);
}


/* =========================================
   Panel Header
========================================= */

.accessibility-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #cccccc;
}

.accessibility-close-btn {
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    color: #000000;
}

    .accessibility-close-btn:focus {
        outline: 3px solid #ff9800;
    }


/* =========================================
   Accessibility Controls
========================================= */

.accessibility-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .accessibility-controls button {
        min-height: 45px;
        padding: 8px;
        background: #ffffff;
        color: #000000;
        border: 1px solid #333333;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

        .accessibility-controls button:hover {
            background: #eeeeee;
        }

        .accessibility-controls button:focus {
            outline: 3px solid #ff9800;
            outline-offset: 2px;
        }


/* =========================================
   Skip Link
========================================= */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 100000;
    background: #000000;
    color: #ffffff;
    padding: 10px 15px;
    text-decoration: none;
}

    .skip-link:focus {
        left: 10px;
    }


/* =========================================
   High Contrast
========================================= */
body.high-contrast .accessibility-screen-reader-link {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

    body.high-contrast .accessibility-screen-reader-link:hover {
        background: #ffffff !important;
        color: #000000 !important;
    }
body.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

    body.high-contrast a {
        color: #ffff00 !important;
    }

    body.high-contrast p,
    body.high-contrast span,
    body.high-contrast label,
    body.high-contrast h1,
    body.high-contrast h2,
    body.high-contrast h3,
    body.high-contrast h4,
    body.high-contrast h5,
    body.high-contrast h6 {
        color: #ffffff !important;
    }

    body.high-contrast input,
    body.high-contrast select,
    body.high-contrast textarea,
    body.high-contrast button {
        background: #000000 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
    }

    body.high-contrast .accessibility-panel {
        background: #000000 !important;
        color: #ffffff !important;
    }

    body.high-contrast .accessibility-panel-header {
        border-color: #ffffff !important;
    }


/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .accessibility-panel {
        top: 50px;
        right: 10px;
        width: calc(100% - 20px);
    }

    .accessibility-controls {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Screen Reader Access Link
========================================= */

.accessibility-screen-reader-link {
    min-height: 45px;
    padding: 8px;
    background: #ffffff;
    color: #000000 !important;
    border: 1px solid #333333;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
}

    .accessibility-screen-reader-link:hover {
        background: #eeeeee;
        color: #000000 !important;
        text-decoration: none !important;
    }

    .accessibility-screen-reader-link:focus {
        outline: 3px solid #ff9800;
        outline-offset: 2px;
    }