﻿/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ffc107;
    color: #000;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    font-weight: bold;
}

    .skip-link:focus {
        top: 0;
    }

/* ============================================
   GUMB ZA OTVARANJE PANELA
   ============================================ */
.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffc107;
    color: #000;
    border: 2px solid #000;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

    .accessibility-toggle:hover {
        transform: scale(1.1);
    }

    .accessibility-toggle:focus {
        outline: 3px solid #fff;
        outline-offset: 2px;
    }

/* ============================================
   PANEL
   ============================================ */
.accessibility-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    background: #1a1a1a;
    color: #f0f0f0;
    border: 2px solid #ffc107;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 1001;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

    .accessibility-panel.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

.accessibility-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    background: #0d0d0d;
    border-radius: 10px 10px 0 0;
}

    .accessibility-panel-header h5 {
        margin: 0;
        color: #ffc107;
        font-size: 1rem;
    }

.accessibility-panel-body {
    padding: 16px;
}

.accessibility-group {
    margin-bottom: 16px;
}

    .accessibility-group label {
        display: block;
        font-size: 0.85rem;
        color: #aaa;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* ============================================
   TEMA: VISOKI KONTRAST
   ============================================ */
html[data-theme="high-contrast"] body {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

html[data-theme="high-contrast"] a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

html[data-theme="high-contrast"] .btn {
    border: 2px solid #ffff00 !important;
}

html[data-theme="high-contrast"] .navbar,
html[data-theme="high-contrast"] .site-footer {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffff00;
}

/* ============================================
   VELIČINA FONTA
   ============================================ */
html[data-font-size="small"] {
    font-size: 14px;
}

html[data-font-size="normal"] {
    font-size: 16px;
}

html[data-font-size="large"] {
    font-size: 18px;
}

html[data-font-size="xlarge"] {
    font-size: 21px;
}

/* ============================================
   FONT ZA DISLEKSIJU
   ============================================ */
html[data-dyslexia="true"] body,
html[data-dyslexia="true"] button,
html[data-dyslexia="true"] input,
html[data-dyslexia="true"] textarea {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
}

/* ============================================
   PODCRTAVANJE POVEZNICA
   ============================================ */
html[data-underline-links="true"] a {
    text-decoration: underline !important;
}

/* ============================================
   SMANJENE ANIMACIJE
   ============================================ */
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ============================================
   SIVI TONOVI
   ============================================ */
html[data-grayscale="true"] {
    filter: grayscale(100%);
}

/* ============================================
   LOGOTIPI
   ============================================ */
.brand-logo {
    height: 48px;
    width: auto;
}

.brand-text {
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffc107;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    opacity: 0.9;
}

.footer-idean {
    max-height: 32px;
    width: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .accessibility-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
    }

    .brand-logo {
        height: 36px;
    }
}

/* ============================================
   OSNOVNA POZADINA - DARK DEFAULT
   ============================================ */
html, body {
    min-height: 100vh;
}

body {
    background-color: #121212;
    color: #e0e0e0;
}

/* Svijetla tema */
html[data-theme="light"] body {
    background-color: #ffffff;
    color: #212529;
}

/* Visoki kontrast */
html[data-theme="high-contrast"] body {
    background-color: #000000;
    color: #ffff00;
}

/* ============================================
   HEADER I FOOTER - DARK DEFAULT
   ============================================ */
.site-header .navbar {
    background-color: #1a1a1a !important;
}

.site-footer {
    background-color: #1a1a1a !important;
}

html[data-theme="light"] .site-header .navbar {
    background-color: #f8f9fa !important;
}

html[data-theme="light"] .site-footer {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* ============================================
   LINKOVI
   ============================================ */
a {
    color: #ffc107;
}

    a:hover {
        color: #ffdb4d;
    }

html[data-theme="light"] a {
    color: #b8860b;
}
