/* ============================================================
   IKKMO Erişilebilirlik Toolbar & WCAG 2.1 AA Yardımcıları
   ============================================================ */

/* ── 1. Skip to content ────────────────────────────────────── */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 100000;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top .15s ease;
}
.skip-to-content:focus {
    top: 0;
}

/* ── 2. WCAG Focus Visible (global) ────────────────────────── */
:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 3px !important;
    border-radius: 2px;
}

/* ── 3. Toolbar wrapper ─────────────────────────────────────── */
.a11y-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* ── 4. Toggle butonu ──────────────────────────────────────── */
.a11y-toggle {
    background: #8B1A4A;
    color: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    width: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 14px 0;
    box-shadow: -3px 0 10px rgba(0, 0, 0, .25);
    transition: background .2s;
}
.a11y-toggle:hover,
.a11y-toggle:focus-visible {
    background: #6d1239;
    outline: 3px solid #ffcf00 !important;
    outline-offset: 2px !important;
}
.a11y-toggle i {
    font-size: 1.1rem;
}
.a11y-toggle-label {
    font-size: 0.42rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 6px;
    opacity: .85;
}

/* ── 5. Panel ───────────────────────────────────────────────── */
.a11y-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
    width: 0;
    overflow: hidden;
    transition: width .25s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
}
.a11y-panel.open {
    width: 244px;
}
.a11y-panel-inner {
    width: 244px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.a11y-panel-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 2px;
}

/* ── 6. Seçenek butonları ───────────────────────────────────── */
.a11y-option {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f6f6f6;
    border: 1.5px solid #e4e4e4;
    border-radius: 6px;
    padding: 8px 11px;
    font-size: .83rem;
    cursor: pointer;
    color: #333;
    transition: background .15s, border-color .15s, color .15s;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.a11y-option:hover,
.a11y-option:focus-visible {
    background: #ffeef5;
    border-color: #8B1A4A;
    color: #6d1239;
    outline: none;
}
.a11y-option.active {
    background: #8B1A4A;
    border-color: #8B1A4A;
    color: #fff;
}
.a11y-option i {
    font-size: .95rem;
    flex-shrink: 0;
}

/* Font boyutu grubu */
.a11y-font-group {
    display: flex;
    gap: 5px;
}
.a11y-font-group .a11y-option {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
    font-weight: 600;
}

/* Sıfırla butonu */
.a11y-reset {
    background: transparent;
    border: 1.5px dashed #ccc;
    color: #888;
    margin-top: 2px;
}
.a11y-reset:hover,
.a11y-reset:focus-visible {
    background: #f0f0f0;
    border-color: #999;
    color: #333;
    outline: none;
}

/* ── 7. Erişilebilirlik Modları ─────────────────────────────── */

/* Yazı boyutu */
body.a11y-font-md  { font-size: 1.1rem !important; }
body.a11y-font-lg  { font-size: 1.25rem !important; }
body.a11y-font-xl  { font-size: 1.4rem !important; }

/* Yüksek kontrast */
body.a11y-high-contrast {
    filter: contrast(1.5) !important;
}
body.a11y-high-contrast img {
    filter: grayscale(20%);
}

/* Bağlantıları vurgula */
body.a11y-highlight-links a:not(.btn):not(.nav-link):not(.navbar-brand):not(.social-btn):not(.footer-links a) {
    background: #ffff00 !important;
    color: #000 !important;
    text-decoration: underline !important;
    padding: 0 2px;
    border-radius: 2px;
}

/* Animasyonları durdur */
body.a11y-stop-animations *,
body.a11y-stop-animations *::before,
body.a11y-stop-animations *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

/* Okuyucu modu */
body.a11y-reader-mode .site-footer,
body.a11y-reader-mode #backToTop,
body.a11y-reader-mode [data-aos],
body.a11y-reader-mode .social-btn,
body.a11y-reader-mode .swiper,
body.a11y-reader-mode .banner-section {
    display: none !important;
}
body.a11y-reader-mode #mainNavbar {
    background: #111 !important;
    position: sticky !important;
}
body.a11y-reader-mode main {
    max-width: 780px;
    margin: 80px auto 40px !important;
    padding: 0 20px;
    font-size: 1.1rem;
    line-height: 1.85;
}
body.a11y-reader-mode main img {
    max-width: 100% !important;
    border-radius: 4px;
}

/* Gece modu */
body.a11y-night-mode {
    background-color: #1a1a2e !important;
    color: #dde1e7 !important;
}
body.a11y-night-mode .card,
body.a11y-night-mode .card-body {
    background-color: #16213e !important;
    color: #dde1e7 !important;
    border-color: #2d3748 !important;
}
body.a11y-night-mode .site-footer {
    background-color: #0d0d1a !important;
}
body.a11y-night-mode #mainNavbar {
    background-color: #0f3460 !important;
}
body.a11y-night-mode a {
    color: #90caf9 !important;
}
body.a11y-night-mode a:hover {
    color: #ffcf00 !important;
}
body.a11y-night-mode .a11y-panel {
    background: #1e2a3a !important;
    border-color: #2d3748 !important;
}
body.a11y-night-mode .a11y-option {
    background: #253445 !important;
    border-color: #374151 !important;
    color: #dde1e7 !important;
}
body.a11y-night-mode .a11y-panel-title {
    color: #94a3b8 !important;
    border-color: #374151 !important;
}

/* ── 8. Mobil ayarlamaları ──────────────────────────────────── */
@media (max-width: 575.98px) {
    .a11y-panel.open {
        width: 200px;
    }
    .a11y-panel-inner {
        width: 200px;
        padding: 10px;
    }
    .a11y-option {
        font-size: .78rem;
        padding: 7px 8px;
    }
}

/* ── 9. Çerez Bildirim Banner ───────────────────────────────── */
.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #1c1c2e;
    color: #f0f0f0;
    border-top: 3px solid #7B1728;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .45);
    padding: 0.875rem 0;
    animation: cookieBannerSlideUp 0.35s ease-out;
}

@keyframes cookieBannerSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.55;
    min-width: 0;
}

.cookie-consent-text .bi-shield-lock-fill {
    font-size: 1.35rem;
    color: #c94b60;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cookie-consent-link {
    color: #e8a0aa;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-link:hover,
.cookie-consent-link:focus-visible {
    color: #fff;
    outline-color: #fff;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn-primary {
    background: #7B1728;
    color: #fff;
    border: 2px solid #7B1728;
    padding: 0.45rem 1.125rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus-visible {
    background: #5A0F1C;
    border-color: #5A0F1C;
    outline: 3px solid #e8a0aa;
    outline-offset: 2px;
}

.cookie-btn-secondary {
    background: transparent;
    color: #b0b0b0;
    border: 2px solid #4a4a5a;
    padding: 0.45rem 1.125rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus-visible {
    border-color: #888;
    color: #fff;
    outline: 3px solid #888;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-btn-primary,
    .cookie-btn-secondary {
        flex: 1;
        text-align: center;
    }
}
