/* ==========================================================================
   VESTEL OFFICIAL ACCESSIBILITY WIDGET (SHIFT + W)
   Full Functional Design matching Vestel.com.tr
   ========================================================================== */

/* Floating Accessibility Button */
.vestel-acc-trigger-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3.5px solid #c31727;
    color: #c31727;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 28px rgba(195, 23, 39, 0.35);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    touch-action: manipulation;
}

.vestel-acc-trigger-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 30px rgba(195, 23, 39, 0.45);
}

.vestel-acc-trigger-btn:active {
    transform: scale(0.95);
}

.vestel-acc-trigger-btn.right-side {
    left: auto;
    right: 24px;
}

@media (max-width: 767px) {
    .vestel-acc-trigger-btn {
        bottom: 76px;
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
        border-width: 3px;
    }
    .vestel-acc-trigger-btn.right-side {
        left: auto;
        right: 16px;
    }
}

/* Accessibility Drawer Container */
.vestel-acc-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 440px;
    max-width: 92vw;
    background: #F8FAFC;
    z-index: 999999;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.vestel-acc-drawer.right-side {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.vestel-acc-drawer.is-open {
    transform: translateX(0) !important;
}

/* Header Bar */
.acc-drawer-header {
    background: #c31727;
    color: #FFFFFF;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.acc-drawer-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.acc-drawer-title span.shortcut-badge {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.acc-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.acc-header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFFFFF;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.acc-header-btn:hover {
    background: #FFFFFF;
    color: #c31727;
}

/* Drawer Body Content */
.acc-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Language Selection Dropdown */
.acc-lang-select-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Accordion Box for Profiles */
.acc-profiles-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.acc-profiles-header {
    padding: 0.875rem 1.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    font-weight: 800;
    font-size: 0.9375rem;
    color: #0F172A;
}

.acc-profiles-list {
    padding: 0.5rem 1.125rem;
    display: flex;
    flex-direction: column;
}

.acc-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.acc-profile-row:last-child {
    border-bottom: none;
}

.acc-profile-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #1E293B;
}

.acc-profile-label i.icon-left {
    font-size: 1.1rem;
    color: #0F172A;
    width: 20px;
    text-align: center;
}

.acc-info-icon {
    font-size: 0.8rem;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.acc-info-icon:hover {
    color: #c31727;
}

/* Custom iOS-Style Toggle Switch */
.acc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.acc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.acc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 34px;
}

.acc-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .acc-slider {
    background-color: #c31727;
}

input:checked + .acc-slider:before {
    transform: translateX(20px);
}

/* Adjustment Cards Grid (2-Column Grid) */
.acc-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.acc-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acc-card.active {
    border-color: #c31727;
    background: #FFF8F8;
}

.acc-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.acc-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.acc-card-title-wrap i {
    font-size: 1.1rem;
    color: #0F172A;
}

.acc-card-name {
    font-weight: 800;
    font-size: 0.8125rem;
    color: #0F172A;
    line-height: 1.2;
}

.acc-card-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F1F5F9;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
}

.acc-btn-step {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acc-btn-step:hover {
    background: #c31727;
    color: #FFFFFF;
    border-color: #c31727;
}

.acc-step-val {
    font-weight: 800;
    font-size: 0.875rem;
    color: #0F172A;
}

/* Indicator Bars / Ticks inside cards */
.acc-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 0.5rem;
}

.acc-indicator-dash {
    width: 16px;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
}

.acc-indicator-dash.active {
    background: #c31727;
}

/* Reset Button */
.acc-reset-btn {
    width: 100%;
    background: #c31727;
    color: #FFFFFF !important;
    border: none;
    border-radius: 14px;
    height: 48px;
    font-weight: 800;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(195, 23, 39, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.acc-reset-btn:hover {
    background: #c31727;
    transform: translateY(-1px);
}

/* ==========================================================================
   ACTIVE ACCESSIBILITY FUNCTIONAL STYLES ON PAGE
   ========================================================================== */

/* 1. Dyslexia Font */
body.acc-dyslexic-font,
body.acc-dyslexic-font * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
}

/* 2. High Contrast Modes */
body.acc-contrast-high {
    background: #000000 !important;
    color: #FFFF00 !important;
}

body.acc-contrast-high * {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
}

body.acc-contrast-invert {
    filter: invert(100%) hue-rotate(180deg) !important;
}

body.acc-contrast-dark {
    background: #0F172A !important;
    color: #F8FAFC !important;
}

body.acc-contrast-dark header,
body.acc-contrast-dark main,
body.acc-contrast-dark footer,
body.acc-contrast-dark section,
body.acc-contrast-dark div {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

/* 3. Color Blindness / Grayscale */
body.acc-grayscale {
    filter: grayscale(100%) !important;
}

/* 4. Highlight Links */
body.acc-highlight-links a,
body.acc-highlight-links button {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    text-decoration: underline !important;
    font-weight: 900 !important;
}

/* 5. Motor Impaired / Large Target Focus */
body.acc-motor-focus *:focus {
    outline: 4px solid #c31727 !important;
    outline-offset: 3px !important;
}

/* 6. Pause Animations & Seizure Safe */
body.acc-pause-animations *,
body.acc-pause-animations *::before,
body.acc-pause-animations *::after {
    animation: none !important;
    transition: none !important;
}

/* 7. Large Cursor */
body.acc-cursor-white * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="white" stroke="black" stroke-width="2"><path d="M3 3l7 18 3-7 7-3L3 3z"/></svg>'), auto !important;
}

body.acc-cursor-black * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="black" stroke="white" stroke-width="2"><path d="M3 3l7 18 3-7 7-3L3 3z"/></svg>'), auto !important;
}

/* 8. ADHD Reading Beam Overlay */
#acc-adhd-beam {
    position: fixed;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(195, 23, 39, 0.15);
    border-top: 2px solid #c31727;
    border-bottom: 2px solid #c31727;
    pointer-events: none;
    z-index: 999980;
    display: none;
    transform: translateY(-50%);
}

body.acc-adhd-active #acc-adhd-beam {
    display: block;
}

/* 9. Image Description Hover Tooltip */
.acc-img-tooltip {
    position: fixed;
    background: #0F172A;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 9999999;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    border: 1px solid #c31727;
}
