/* Accessibility & Localization Styles (v2) */

:root {
    --font-scale: 1;
    --base-font-size: 16px;
}

@media (max-width: 1024px) {
    :root {
        --base-font-size: 12.8px; /* 80% of 16px */
    }
}

/* TARGET THE HTML ELEMENT FOR GLOBAL REM UNIT SCALING */
html {
    font-size: calc(var(--base-font-size) * var(--font-scale)) !important;
}

/* FAB Styling */
.accessibility-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.accessibility-fab:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--blue);
}

.accessibility-fab i {
    font-size: 1.5rem;
}

/* Accessibility Menu */
.accessibility-menu {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: none;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: menuEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.accessibility-menu.active {
    display: flex;
}

@keyframes menuEntrance {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Menu Items */
.acc-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acc-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-400);
    letter-spacing: 1px;
}

/* Stepper UI */
.acc-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 6px;
}

.stepper-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    color: var(--navy);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stepper-btn:hover:not(:disabled) {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

.stepper-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.stepper-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    min-width: 60px;
    text-align: center;
}

/* Language Selection */
.acc-options {
    display: flex;
    gap: 8px;
}

.acc-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    transition: var(--transition-smooth);
}

.acc-btn:hover {
    border-color: var(--blue);
}

.acc-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .accessibility-fab {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    .accessibility-menu {
        right: 16px;
        bottom: 80px;
        width: calc(100% - 32px);
    }
}
