/* Σελίδα Φυλλάδιο: flipbook */
.fl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 22px !important; padding: 26px 30px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 160% at 0% 100%, #0b3fae 0%, transparent 55%), linear-gradient(100deg, #082f86, #0a46c4 60%, #1572c0); }
.fl-crumbs { font-size: 13px; color: #cfe3ff; }
.fl-crumbs a { color: #fff; }
.fl-head h1 { margin: 6px 0 6px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.fl-sub { margin: 0; font-size: 14px; color: #dbe7ff; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl-dates { background: #fff; color: #0a3fae; font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.fl-dl { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: #fff; color: #0a3fae; font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px rgba(3,20,60,.25); transition: transform .2s; }
.fl-dl:hover { transform: translateY(-2px); }
.fl-dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.fl-stage { margin-top: 18px !important; }
.fl-frame { position: relative; display: grid; place-items: center; min-height: 420px; padding: 28px 64px; border-radius: var(--radius);
  background: radial-gradient(80% 90% at 50% 40%, #ffffff 0%, #eef2f7 70%, #e3e9f1 100%); border: 1px solid var(--line); overflow: hidden; }
.fl-book { width: 100%; max-width: 1100px; opacity: 0; transition: opacity .5s, transform .55s cubic-bezier(.3,.7,.3,1); }
.fl-loading[hidden] { display: none; }
.fl-frame.is-ready .fl-book { opacity: 1; }
.fl-book .stf__item { box-shadow: 0 10px 30px rgba(16,32,64,.18); }
/* σελίδες ως HTML (η κενή μισή δίπλα στο εξώφυλλο / στην τελευταία σελίδα μένει διάφανη) */
.fl-pg { background: #fff; overflow: hidden; }
/* σελίδα που ζωγραφίζεται ακόμα (μεγάλα PDF): απαλό «κενό» χαρτί με λάμψη */
.fl-pg.is-wait { background: linear-gradient(110deg, #fff 35%, #eef2f7 50%, #fff 65%) 0 0 / 220% 100%; animation: fl-wait 1.4s linear infinite; }
.fl-pg.is-wait img { visibility: hidden; }
.fl-thumbs button.is-wait { height: 104px; background: #eef2f7; }
@keyframes fl-wait { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.fl-pg img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* «Ξεφυλλίστε το φυλλάδιο»: κίτρινη ένδειξη πάνω δεξιά + βελάκι που «ζωγραφίζεται» προς το κουμπί «επόμενη» */
.fl-cue {
  position: absolute; top: 18px; right: 20px; z-index: 4; display: flex; align-items: flex-start; gap: 0;
  padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
  opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.fl-cue.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fl-cue.is-off { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.fl-cue__t {
  position: relative; padding: 9px 16px; border-radius: 999px; background: #ffd23f; color: #0b2e6e;
  font-size: 14.5px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(8,47,134,.65); animation: fl-cue-pulse 2.6s ease-in-out infinite;
}
.fl-cue__t::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(255,210,63,.75); opacity: 0; animation: fl-cue-ring 2.6s ease-out infinite; }
.fl-cue:hover .fl-cue__t { background: #ffdc5e; }
.fl-cue:focus-visible { outline: none; }
.fl-cue:focus-visible .fl-cue__t { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
/* το βελάκι ξεκινά από το κέντρο (κάτω) του κίτρινου και καμπυλώνει μέχρι την άκρη του φυλλαδίου
   (η διαδρομή υπολογίζεται στο fylladio.js· pathLength=100 → ίδιο «σχέδιο» για κάθε μήκος) */
.fl-cue__ar {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transition: opacity .5s ease;
}
.fl-cue__ar.is-on { opacity: 1; }
.fl-cue__ar.is-off, .fl-cue__ar.is-hidden { opacity: 0; }
.fl-cue__line { stroke-dasharray: 100; animation: fl-cue-draw 2.6s ease-in-out infinite; }
.fl-cue__head { stroke-dasharray: 100; animation: fl-cue-head 2.6s ease-in-out infinite; }
@keyframes fl-cue-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.04); } }
@keyframes fl-cue-ring { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes fl-cue-draw { 0% { stroke-dashoffset: 100; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes fl-cue-head { 0%, 40% { stroke-dashoffset: 100; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
.fl-frame.is-zoom .fl-cue, .fl-frame.is-zoom .fl-cue__ar { display: none; }
.fl-stage.is-fs .fl-cue__ar { stroke: #7fd3ff; }
@media (max-width: 700px) {
  .fl-cue { top: 10px; right: 10px; }
  .fl-cue__t { padding: 7px 12px; font-size: 13px; }
  .fl-cue__ar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-cue__t, .fl-cue__t::after, .fl-cue__ar, .fl-cue__line, .fl-cue__head { animation: none; }
  .fl-cue__line, .fl-cue__head { stroke-dashoffset: 0; }
}

/* Zoom: κουμπιά στη μπάρα + μεγεθυμένη προβολή μέσα στο πλαίσιο (κύλιση / σύρσιμο) */
.fl-zoomctl { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 3px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.fl-zoomctl + .fl-fs { margin-left: 0; }
.fl-zbtn, .fl-zval { display: grid; place-items: center; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--blue); font: inherit; cursor: pointer; transition: background-color .15s; }
.fl-zbtn { width: 36px; }
.fl-zbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fl-zval { min-width: 54px; padding: 0 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.fl-zbtn:hover:not(:disabled), .fl-zval:hover:not(:disabled) { background: #eef5fc; }
.fl-zbtn:disabled { opacity: .35; cursor: default; }
.fl-zval:disabled { cursor: default; }
.fl-zbtn:focus-visible, .fl-zval:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 1px; }
.fl-zoom { position: absolute; inset: 0; z-index: 6; overflow: auto; background: inherit; border-radius: inherit; cursor: grab; overscroll-behavior: contain; }
.fl-zoom[hidden] { display: none; }
.fl-zoom.is-pan { cursor: grabbing; }
.fl-zoom__in { display: flex; justify-content: center; align-items: flex-start; width: max-content; min-width: 100%; min-height: 100%; padding: 20px; box-sizing: border-box; }
.fl-zoom__in img { display: block; height: auto; max-width: none; background: #fff; box-shadow: 0 10px 30px rgba(16,32,64,.22); user-select: none; -webkit-user-drag: none; }
.fl-frame.is-zoom .fl-nav { z-index: 7; }
.fl-stage.is-fs .fl-zoomctl { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.fl-stage.is-fs .fl-zbtn, .fl-stage.is-fs .fl-zval { color: #fff; }
.fl-stage.is-fs .fl-zbtn:hover:not(:disabled), .fl-stage.is-fs .fl-zval:hover:not(:disabled) { background: rgba(255,255,255,.12); }

.fl-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-weight: 600; text-align: center; padding: 20px; }
.fl-loading p { margin: 0; }
.fl-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #d6e4f5; border-top-color: var(--blue); animation: fl-spin .9s linear infinite; }
@keyframes fl-spin { to { transform: rotate(360deg); } }
.fl-bar { width: 220px; height: 6px; border-radius: 6px; background: #d6e4f5; overflow: hidden; }
.fl-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.fl-loading.is-error .fl-spinner, .fl-loading.is-error .fl-bar { display: none; }

.fl-nav { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--blue); cursor: pointer; box-shadow: 0 6px 16px rgba(21,114,192,.35); transition: background .2s, transform .2s, opacity .2s; opacity: 0; pointer-events: none; }
.fl-frame.is-ready .fl-nav { opacity: 1; pointer-events: auto; }
.fl-nav:hover { background: #0f5fa6; transform: scale(1.08); }
.fl-nav:disabled { opacity: .25 !important; cursor: default; transform: none; }
.fl-nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fl-nav--prev { left: 12px; } .fl-nav--next { right: 12px; }

.fl-bar2 { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-top: 12px; }
.fl-count { font-weight: 700; color: var(--ink); }
.fl-hint { font-size: 13px; color: var(--muted); }
.fl-fs { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.fl-fs:hover { background: #eef5fc; }
.fl-fs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.fl-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scroll-snap-type: x proximity; }
.fl-thumbs button { position: relative; flex: none; width: 74px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; scroll-snap-align: start; box-shadow: 0 2px 6px rgba(16,32,64,.12); transition: border-color .2s, transform .2s; }
.fl-thumbs button:hover { transform: translateY(-2px); }
.fl-thumbs button.is-current { border-color: var(--blue); }
.fl-thumbs img { display: block; width: 100%; height: auto; }
.fl-thumbs span { position: absolute; right: 4px; bottom: 4px; min-width: 20px; padding: 1px 5px; border-radius: 6px; background: rgba(10,63,174,.85); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

/* Πλήρης οθόνη */
.fl-stage.is-fs { margin: 0 !important; padding: 16px; background: #0d1520; display: flex; flex-direction: column; height: 100vh; width: 100vw; }
.fl-stage.is-fs .fl-frame { flex: 1; background: #0d1520; border: 0; }
.fl-stage.is-fs .fl-count, .fl-stage.is-fs .fl-hint { color: #cfd8e3; }
.fl-stage.is-fs .fl-thumbs { display: none; }

@media (max-width: 700px) {
  .fl-head { padding: 22px 18px; }
  .fl-frame { padding: 16px 8px 60px; }
  .fl-nav { top: auto; bottom: 10px; margin-top: 0; width: 42px; height: 42px; }
  .fl-nav--prev { left: calc(50% - 52px); } .fl-nav--next { right: calc(50% - 52px); }
  .fl-hint { display: none; }
  .fl-thumbs { display: none; }   /* στο κινητό χωρίς τη λωρίδα μικρογραφιών */
}
@media (prefers-reduced-motion: reduce) { .fl-spinner { animation-duration: 2s; } }
