/* ==========================================================================
   Valentini Anastassiou: custom CSS for the Cassiopeia template
   File: media/templates/site/cassiopeia/css/user.css (Cassiopeia loads it automatically)
   Added 2026-10-18. Recreates the old site's look (Protostar, blue #0088cc).
   ========================================================================== */

/* 1. Colours: same blue as the old site */
:root {
  --cassiopeia-color-primary: #0088cc;
  --cassiopeia-color-link: #0088cc;
  --cassiopeia-color-hover: #005580;
  --link-color: #0088cc;
  --link-color-rgb: 0, 136, 204;
  --link-hover-color: #005580;
  --link-hover-color-rgb: 0, 85, 128;
}
body.site {
  background: #fff;
  border-top: 3px solid #0088cc;
}
a { color: #0088cc; }
a:hover, a:focus { color: #005580; }

/* 2. Header: white with a dark site name, like the old site */
.container-header {
  background: #fff;
  background-image: none;
  box-shadow: none;
}
.container-header .navbar-brand,
.container-header .navbar-brand a,
.container-header .brand-logo {
  color: #1d1d1d;
  text-decoration: none;
}
.container-header .brand-logo span {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 400;
}
.container-header .site-description {
  color: #555;
}

/* 3. Main menu: light grey bar, bold blue links, blue pill on the current page */
.container-header .container-nav {
  margin-bottom: 1.5rem;
}
.container-header .mod-menu {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: .45rem .5rem;
  color: #0088cc;
}
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  display: inline-block;
  color: #0088cc;
  font-weight: 700;
  font-size: 1.15rem;
  padding: .3rem .75rem;
  border-radius: 4px;
  text-decoration: none;
}
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
  color: #005580;
  background: #e8e8e8;
}
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: #0088cc;
  color: #fff;
}
.container-header .mod-menu__toggle-sub {
  color: #0088cc;
}
.container-header .mod-menu__sub {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.container-header .mod-menu__sub a {
  color: #0088cc;
}
.container-header .navbar-toggler {
  color: #0088cc;
  border-color: #0088cc;
}

/* 4. Sidebar boxes and tag cloud */
.container-sidebar-right .card-header,
.container-sidebar-right h3 {
  color: #333;
}
/* Dense, flowing cloud like the old site: small base size, tags wrap inline, no underline */
.mod-tagspopular-cloud {
  font-size: .85rem;
  line-height: 1.35;
}
.mod-tagspopular-cloud .tag {
  display: inline;
  padding: 0;
  margin: 0;
}
.mod-tagspopular-cloud .tag-name {
  line-height: 1.15;
  text-decoration: none;
  margin-right: .2em;
}
.mod-tagspopular-cloud .tag-name:hover,
.mod-tagspopular-cloud .tag-name:focus {
  text-decoration: underline;
}

/* 5. Homepage flip cards (module "Βιβλία και συλλογές (αρχική)") */
.va-flip { perspective: 1000px; height: 300px; }
.va-flip a { display: block; height: 100%; color: inherit; text-decoration: none; }
.va-flip-inner { position: relative; height: 100%; transition: transform .7s; transform-style: preserve-3d; }
.va-flip:hover .va-flip-inner,
.va-flip a:focus .va-flip-inner { transform: rotateY(180deg); }
.va-flip-front,
.va-flip-back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.25rem;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.va-flip-front { background: #fff; color: #0088cc; }
.va-flip-front.va-blue { background: #0088cc; color: #fff; }
.va-flip-back { background: #2e3b3e; color: #fff; transform: rotateY(180deg); }
.va-flip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; margin-bottom: 1rem;
  border: 3px solid #0088cc; border-radius: 50%;
  background: #fff; color: #0088cc; font-size: 50px;
}
.va-blue .va-flip-icon { border-color: #fff; background: #0088cc; color: #fff; }
.va-kicker { font-size: 1.2rem; margin: 0; }
.va-title { font-size: 1.5rem; font-weight: 700; margin: .25rem 0 0; line-height: 1.2; }
.va-flip-back p { margin: .2rem 0; }
.va-flip-back .va-title { font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .va-flip-inner { transition: none; } }

/* 6. Search box at the top right of the header, like the old site */
.container-header .container-search {
  margin: .5rem 0 0;
}
.container-header .mod-finder__search {
  flex-wrap: nowrap;
}
.container-header .mod-finder__search .form-control {
  font-size: .9rem;
  padding: .25rem .75rem;
  border-radius: 0 1rem 1rem 0;
}
.container-header .mod-finder__search .btn {
  order: -1;
  font-size: .9rem;
  padding: .25rem .75rem;
  border-radius: .25rem 0 0 .25rem;
  background: #0088cc;
  border-color: #0077b3;
}
.container-header .mod-finder__search .btn .icon-search {
  display: none;
}
@media (min-width: 992px) {
  .container-header { position: relative; }
  .container-header .container-nav { flex-wrap: nowrap; }
  .container-header .container-search {
    position: absolute;
    top: 1.6rem;
    right: max(1rem, calc((100% - 1320px) / 2 + 1rem));
    width: 300px;
    margin: 0;
  }
  .container-header .mod-menu { flex: 1 1 auto; }
}

/* 7. "Όλες οι λέξεις κλειδιά" page: tags side by side, like the old site.
   Joomla shows one tag per row because each item is width:100%. */
.com-tags__items {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}
.com-tags__items > form {
  flex: 0 0 100%;
  margin-bottom: 1rem;
}
.com-tags__category.list-group {
  display: contents;
}
.com-tags__category .list-group-item {
  width: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: none;
  padding: .4rem 0;
}
.com-tags__category .list-group-item h3 {
  font-size: 1.15rem;
  font-weight: 400;
}
.com-tags__category .list-group-item h3 a {
  text-decoration: none;
}
.com-tags__category .list-group-item h3 a:hover {
  text-decoration: underline;
}

/* 8. Book contents table on "Ανέμοι της Μεσαριάς" (category description) */
.va-toc { margin-bottom: 2rem; }
.va-toc h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.va-toc h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .3rem; break-after: avoid; }
.va-toc ul { list-style: none; padding-left: 1rem; margin: 0 0 1rem; break-inside: avoid; }
.va-toc li { padding: .1rem 0; }
.va-toc a { text-decoration: none; }
.va-toc a:hover { text-decoration: underline; }
@media (min-width: 768px) { .va-toc { column-count: 2; column-gap: 2.5rem; } .va-toc h2 { column-span: all; } }
