/* Accessibility Widget Styles */
.acc-widget {
    position: fixed !important;
    right: 20px !important;
    bottom: 250px !important;
    /* Haber slider oklarını engellemeyecek konum */
    z-index: 999999 !important;
    display: block !important;
    touch-action: none;
    /* Mobil sürükleme için */
}

.acc-widget.dragging {
    opacity: 0.8;
    cursor: grabbing !important;
}

.acc-widget.dragging .acc-toggle {
    cursor: grabbing !important;
}

.acc-toggle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #2e5c89 !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer !important;
    font-size: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.acc-toggle:hover {
    transform: scale(1.1);
    background: #1a3a5c;
}

.acc-panel {
    position: absolute;
    right: 75px;
    bottom: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    overflow: hidden;
    animation: fadeInRight 0.3s ease;
}

.acc-panel.active {
    display: block;
}

.acc-header {
    background: #2e5c89;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.acc-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.acc-body {
    padding: 15px;
}

.acc-item {
    margin-bottom: 15px;
}

.acc-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.acc-btns {
    display: flex;
    gap: 5px;
}

.acc-btns button {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px;
}

.acc-btns button:hover {
    background: #e9ecef;
}

.acc-btn-block {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 5px;
}

.acc-btn-block:hover {
    background: #e9ecef;
}

.acc-btn-block.reset {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
    margin-top: 10px;
    text-align: center;
}

/* Accessibility Modes */
body.high-contrast {
    filter: contrast(1.5) !important;
}

body.high-contrast * {
    background-color: black !important;
    color: yellow !important;
    border-color: yellow !important;
}

body.monochrome {
    filter: grayscale(100%) !important;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2e5c89;
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keyboard Navigation Improvements */

/* Show submenus on focus */
nav ul li:focus-within>ul {
    display: inherit !important;
}

/* Enhanced Focus styles for menu items */
nav ul li a:focus {
    outline: 3px solid #f4a261 !important;
    /* Prominent orange color */
    outline-offset: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: white !important;
    text-decoration: none !important;
}

nav ul ul li a:focus {
    outline: 3px solid #1c75bc !important;
    outline-offset: 0px !important;
    background: #f0f7ff !important;
    color: #1c75bc !important;
}

/* Focus style for the new footer menu links */
.footer-list li a:focus {
    outline: 3px solid #1c75bc !important;
    outline-offset: 2px !important;
    background: rgba(28, 117, 188, 0.05) !important;
    padding-left: 10px !important;
    border-radius: 4px !important;
}

/* Fix focus-within for parent li if needed */
nav ul li:focus-within {
    outline: none;
}

/* Reset focus styles for the accessibility widget buttons */
.acc-widget button:focus {
    outline: 3px solid #f4a261 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(244, 162, 97, 0.3) !important;
}

/* Fix for visually hidden links or labels if any */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Force Font Scaling for px-based elements */
body[style*="font-size: 110%"] p,
body[style*="font-size: 110%"] a,
body[style*="font-size: 110%"] h1,
body[style*="font-size: 110%"] h2,
body[style*="font-size: 110%"] h3,
body[style*="font-size: 110%"] h4,
body[style*="font-size: 110%"] span,
body[style*="font-size: 110%"] li {
    font-size: 1.1em !important;
}

body[style*="font-size: 120%"] p,
body[style*="font-size: 120%"] a,
body[style*="font-size: 120%"] h1,
body[style*="font-size: 120%"] h2,
body[style*="font-size: 120%"] h3,
body[style*="font-size: 120%"] h4,
body[style*="font-size: 120%"] span,
body[style*="font-size: 120%"] li {
    font-size: 1.29em !important;
}

body[style*="font-size: 130%"] p,
body[style*="font-size: 130%"] a,
body[style*="font-size: 130%"] h1,
body[style*="font-size: 130%"] h2,
body[style*="font-size: 130%"] h3,
body[style*="font-size: 130%"] h4,
body[style*="font-size: 130%"] span,
body[style*="font-size: 130%"] li {
    font-size: 1.44em !important;
}

body[style*="font-size: 140%"] p,
body[style*="font-size: 140%"] a,
body[style*="font-size: 140%"] h1,
body[style*="font-size: 140%"] h2,
body[style*="font-size: 140%"] h3,
body[style*="font-size: 140%"] h4,
body[style*="font-size: 140%"] span,
body[style*="font-size: 140%"] li {
    font-size: 1.72em !important;
}

body[style*="font-size: 150%"] p,
body[style*="font-size: 150%"] a,
body[style*="font-size: 150%"] h1,
body[style*="font-size: 150%"] h2,
body[style*="font-size: 150%"] h3,
body[style*="font-size: 150%"] h4,
body[style*="font-size: 150%"] span,
body[style*="font-size: 150%"] li {
    font-size: 2.07em !important;
}

body[style*="font-size: 90%"] p,
body[style*="font-size: 90%"] a,
body[style*="font-size: 90%"] h1,
body[style*="font-size: 90%"] h2,
body[style*="font-size: 90%"] h3,
body[style*="font-size: 90%"] h4,
body[style*="font-size: 90%"] span,
body[style*="font-size: 90%"] li {
    font-size: 0.9em !important;
}

body[style*="font-size: 80%"] p,
body[style*="font-size: 80%"] a,
body[style*="font-size: 80%"] h1,
body[style*="font-size: 80%"] h2,
body[style*="font-size: 80%"] h3,
body[style*="font-size: 80%"] h4,
body[style*="font-size: 80%"] span,
body[style*="font-size: 80%"] li {
    font-size: 0.81em !important;
}