/* Accessibility Menu Styles */

/* Widget Button */
.acc-menu-widget-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: #0d7fe8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.acc-menu-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.acc-menu-widget-btn svg,
.acc-menu-widget-btn .acc-menu-icon,
button.acc-menu-widget-btn svg {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    display: block !important;
}

/* Menu Modal */
.acc-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: none;
}

.acc-menu-modal.active {
    display: block;
}

.acc-menu-container {
    background: #f5f5f5;
    width: 35%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: absolute;
}

/* Header */
.acc-menu-header {
    background: #0d7fe8;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-menu-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.acc-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    line-height: 1;
    transition: background 0.2s;
}

.acc-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content */
.acc-menu-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Language Selector */
.acc-menu-language {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.acc-menu-language:hover {
    background: #f9f9f9;
}

.acc-menu-language-flag {
    width: 32px;
    height: 32px;
    background: #0d7fe8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    margin-right: 12px;
}

.acc-menu-language-text {
    flex: 1;
    font-weight: 500;
}

.acc-menu-language-arrow {
    color: #666;
}

.acc-menu-language-options {
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.acc-menu-language-option {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.acc-menu-language-option:hover {
    border-color: #0d7fe8;
    background: #f8fbff;
}

.acc-menu-language-option.active {
    border-color: #0d7fe8;
    background: #e8f4fd;
}

.acc-lang-flag {
    width: 28px;
    height: 28px;
    background: #0d7fe8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
}

.acc-lang-name {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Profiles Section */
.acc-menu-profiles {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.acc-menu-profiles-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.acc-menu-profiles-icon {
    width: 32px;
    height: 32px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.acc-menu-profiles-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.acc-menu-profiles-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.acc-menu-profiles-info {
    width: 20px;
    height: 20px;
    background: #e8f4fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d7fe8;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 8px;
}

.acc-menu-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.acc-menu-profile-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.acc-menu-profile-btn:hover {
    border-color: #0d7fe8;
    background: #f8fbff;
}

.acc-menu-profile-btn.active {
    border-color: #0d7fe8;
    background: #e8f4fd;
}

.acc-menu-profile-icon {
    font-size: 24px;
    display: block;
    flex-shrink: 0;
}

/* Toggle Option */
.acc-menu-toggle-option {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acc-menu-toggle-label {
    font-weight: 500;
    font-size: 15px;
}

.acc-menu-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.acc-menu-toggle.active {
    background: #0d7fe8;
}

.acc-menu-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.acc-menu-toggle.active .acc-menu-toggle-slider {
    transform: translateX(22px);
}

/* Options Grid */
.acc-menu-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.acc-menu-option {
    background: white;
    border: 2px solid transparent;
    padding: 20px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-align: center;
    min-height: 90px;
}

.acc-menu-option:hover {
    border-color: #0d7fe8;
    background: #f8fbff;
}

.acc-menu-option.active {
    border-color: #0d7fe8;
    background: #e8f4fd;
}

.acc-menu-option-icon {
    font-size: 32px;
    line-height: 1;
    display: block;
    color: #0d7fe8;
}

.acc-menu-option-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    display: block;
    color: #333;
}

/* Reset Button */
.acc-menu-reset {
    background: #0d7fe8;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-bottom: 16px;
}

.acc-menu-reset:hover {
    background: #0b6bc7;
}

.acc-menu-reset-icon {
    font-size: 20px;
}

/* Widget Settings */
.acc-menu-widget-settings {
    margin-top: 16px;
}

.acc-menu-widget-control {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.acc-menu-widget-control:hover {
    background: #f9f9f9;
}

.acc-menu-widget-control-icon {
    width: 32px;
    height: 32px;
    background: #0d7fe8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

.acc-menu-widget-control-icon svg {
    width: 18px;
    height: 18px;
}

.acc-menu-widget-control-text {
    flex: 1;
    font-weight: 500;
}

.acc-menu-widget-control-arrow {
    color: #666;
}

.acc-menu-position-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.acc-menu-position-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #333;
}

.acc-menu-position-btn:hover {
    border-color: #0d7fe8;
    background: #f8fbff;
}

.acc-menu-position-btn.active {
    border-color: #0d7fe8;
    background: #e8f4fd;
    font-weight: 700;
}

.acc-menu-position-btn span {
    font-size: 20px;
    color: #0d7fe8;
}

/* Widget hidden state */
.acc-menu-widget-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Accessibility Modifications */
body.acc-highlight-links a {
    background: yellow !important;
    padding: 2px 4px !important;
}

body.acc-bigger-text {
    font-size: 120% !important;
}

body.acc-bigger-text * {
    font-size: inherit !important;
}

body.acc-text-spacing * {
    letter-spacing: 2px !important;
    word-spacing: 4px !important;
}

body.acc-pause-animations * {
    animation: none !important;
    transition: none !important;
}

body.acc-hide-images img {
    opacity: 0 !important;
}

body.acc-dyslexia-friendly * {
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.8 !important;
}

body.acc-cursor * {
    cursor: crosshair !important;
}

body.acc-line-height * {
    line-height: 2 !important;
}

body.acc-text-align-left * {
    text-align: left !important;
}

body.acc-text-align-center * {
    text-align: center !important;
}

body.acc-text-align-right * {
    text-align: right !important;
}

body.acc-saturation {
    filter: saturate(0) !important;
}

body.acc-contrast-high {
    filter: contrast(150%) !important;
}

body.acc-contrast-smart {
    filter: contrast(120%) brightness(110%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .acc-menu-container {
        width: 95%;
        max-width: none;
    }
    
    .acc-menu-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .acc-menu-profiles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .acc-menu-widget-btn {
        width: 40px;
        height: 40px;
    }
    
    .acc-menu-widget-btn svg,
    .acc-menu-widget-btn .acc-menu-icon,
    button.acc-menu-widget-btn svg {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
    
    .acc-menu-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .acc-menu-option {
        padding: 16px 8px;
    }
    
    .acc-menu-option-icon {
        font-size: 24px;
    }
    
    .acc-menu-option-label {
        font-size: 11px;
    }
}

/* Footer Band */
.acc-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.acc-menu-footer-link {
    font-size: 12px;
    color: #0d7fe8;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.acc-menu-footer-link:hover {
    color: #0a5fb3;
    text-decoration: underline;
}

.acc-menu-footer-brand {
    font-weight: 600;
}

/* Accessibility Statement Page (inside same container) */
.acc-menu-statement-page {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background: white;
}

.acc-menu-statement-page[style*="display: block"],
.acc-menu-statement-page[style*="display: flex"] {
    display: flex !important;
}

.acc-statement-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.acc-statement-back {
    background: none;
    border: none;
    color: #0d7fe8;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.acc-statement-back:hover {
    background: #f0f0f0;
}

.acc-statement-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.acc-statement-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.acc-statement-body h3 {
    color: #333;
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.acc-statement-body h3:first-child {
    margin-top: 0;
}

.acc-statement-body h4 {
    color: #555;
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.acc-statement-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.acc-statement-body ul {
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.acc-statement-body li {
    margin-bottom: 6px;
}

.acc-statement-body strong {
    color: #333;
}

@media (max-width: 768px) {
    .acc-statement-header h2 {
        font-size: 18px;
    }
    
    .acc-statement-body {
        padding: 16px;
    }
    
    .acc-statement-body h3 {
        font-size: 16px;
    }
    
    .acc-statement-body h4 {
        font-size: 14px;
    }
}
