/* ═══════════════════════════════════════════════
   FONTS
═══════════════════════════════════════════════ */
:root {
    --site-font-body: 'Roboto', sans-serif;
    --site-font-h:    'GFS Didot', serif;
    --site-font-size: 1rem;
}

body {
    font-family: var(--site-font-body) !important;
    font-size:   var(--site-font-size) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--site-font-h) !important;
}

/* ═══════════════════════════════════════════════
   SKIP LINK
═══════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    z-index: 99999;
}
.skip-link:focus {
    top: 0;
}

/* ═══════════════════════════════════════════════
   NAVBAR ACTIVE LINK
═══════════════════════════════════════════════ */
.nav-link.page-active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY TOGGLE BUTTON
═══════════════════════════════════════════════ */
#a11y-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    border-radius: 8px 0 0 8px;
    border: none;
    background: #0d6efd;
    color: #fff;
    padding: 12px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: -2px 0 8px rgba(0,0,0,.25);
    transition: right .3s ease;
    text-decoration: none;
}

#a11y-toggle-btn:hover,
#a11y-toggle-btn:focus {
    background: #0b5ed7;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

#a11y-toggle-btn .a11y-btn-icon {
    font-size: 1.4rem;
    display: block;
    line-height: 1;
}

#a11y-toggle-btn .a11y-btn-label {
    writing-mode: vertical-rl;
    font-size: .7rem;
    letter-spacing: .05em;
    line-height: 1;
    font-family: var(--site-font-body);
}

body.a11y-panel-open #a11y-toggle-btn {
    right: 280px;
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY PANEL
═══════════════════════════════════════════════ */
#a11y-panel {
    position: fixed;
    right: -300px;
    top: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    z-index: 9999;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0,0,0,.2);
    transition: right .3s ease;
    border-left: 1px solid #dee2e6;
}

#a11y-panel.panel-open {
    right: 0;
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY CARDS
═══════════════════════════════════════════════ */
.a11y-card {
    cursor: pointer;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    background: #fff;
}

.a11y-card:hover {
    border-color: #0d6efd !important;
    background: #f0f4ff;
}

.a11y-card.active {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.a11y-card.active .a11y-icon,
.a11y-card.active small {
    color: #fff !important;
}

.a11y-card:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.a11y-icon {
    font-size: 1.75rem;
    display: block;
    line-height: 1;
    color: #212529;
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY MODES
═══════════════════════════════════════════════ */
body.a11y-contrast   { filter: contrast(1.6); }
body.a11y-saturation { filter: saturate(2.5); }
body.a11y-mono       { filter: grayscale(1);  }

body.a11y-links a {
    text-decoration: underline !important;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

body.a11y-titles h1,
body.a11y-titles h2,
body.a11y-titles h3,
body.a11y-titles h4,
body.a11y-titles h5,
body.a11y-titles h6 {
    background: rgba(0,0,200,.08);
    border-left: 4px solid #0d6efd;
    padding-left: .5rem;
}

body.a11y-dyslexia,
body.a11y-dyslexia * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: .07em !important;
    word-spacing: .25em !important;
    line-height: 1.9 !important;
}

body.a11y-big-cursor,
body.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath fill='black' stroke='white' stroke-width='1.5' d='M4 2 L4 38 L14 28 L20 44 L26 41 L20 25 L34 25 Z'/%3E%3C/svg%3E") 0 0, auto !important;
}

body.a11y-stop-anim *,
body.a11y-stop-anim *::before,
body.a11y-stop-anim *::after {
    animation: none !important;
    transition: none !important;
}

body.a11y-hide-images img,
body.a11y-hide-images svg,
body.a11y-hide-images figure {
    visibility: hidden;
}

body.a11y-text-left   main { text-align: left   !important; }
body.a11y-text-center main { text-align: center !important; }
body.a11y-text-right  main { text-align: right  !important; }

/* ═══════════════════════════════════════════════
   READING GUIDE
═══════════════════════════════════════════════ */
#reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 36px;
    background: rgba(255, 230, 0, .4);
    pointer-events: none;
    z-index: 9998;
    display: none;
    top: 0;
}

body.a11y-reading #reading-guide {
    display: block;
}

/* ═══════════════════════════════════════════════
   FONT SIZE LABEL (WCAG 3.3.2 fix)
═══════════════════════════════════════════════ */
label[for="fs-range"] {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

/* ═══════════════════════════════════════════════
   COOKIE CONSENT OVERLAY
   (χωρίς Bootstrap Modal - pure CSS)
═══════════════════════════════════════════════ */
#cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#cookie-overlay.cookie-hidden {
    display: none;
}

#cookie-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    max-width: 560px;
    width: 100%;
    padding: 1.5rem;
    font-family: var(--site-font-body);
}

#cookie-box h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .75rem 0;
    font-family: var(--site-font-h);
}

#cookie-box p {
    font-size: .9rem;
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #333;
}

#cookie-details-table {
    display: none;
    margin-bottom: 1rem;
}

#cookie-details-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

#cookie-details-table th,
#cookie-details-table td {
    padding: .4rem .6rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

#cookie-details-table th {
    background: #f8f9fa;
    font-weight: 600;
}

#cookie-details-table .ck-badge {
    display: inline-block;
    padding: .2em .5em;
    background: #198754;
    color: #fff;
    border-radius: 4px;
    font-size: .78rem;
}

#cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

#cookie-buttons button {
    padding: .45rem 1rem;
    border-radius: 4px;
    font-size: .875rem;
    cursor: pointer;
    font-family: var(--site-font-body);
    line-height: 1.5;
}

#cookie-buttons button:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

#btn-ck-customize {
    background: #fff;
    border: 2px solid #0d6efd;
    color: #0d6efd;
}
#btn-ck-customize:hover { background: #e7f1ff; }

#btn-ck-reject {
    background: #0d6efd;
    border: 2px solid #0d6efd;
    color: #fff;
}
#btn-ck-reject:hover { background: #0b5ed7; }

#btn-ck-accept {
    background: #198754;
    border: 2px solid #198754;
    color: #fff;
}
#btn-ck-accept:hover { background: #157347; }