/* =====================================================================
   Infinit Ceremonial Board - PHP verze
   Rozmery, breakpointy a hodnoty prevzaty 1:1 z produkcniho buildu.

   Breakpointy puvodni aplikace (Quasar mel upravene lg/xl):
     sm 600px | md 1024px | lg 1901px | xl 3701px
   Typografie a velikosti maji tri stupne:
     <=1900px  ... maly (TV/monitor do FullHD)
     1901-3700 ... zakladni (FullHD panely)
     >=3701px  ... 4K panely
   ===================================================================== */

:root {
  --primary: #41aaa0;          /* prepisuje se z resort.color */
  --dark: #1d1d1d;             /* Quasar $dark */
  --hairline: rgba(255, 255, 255, .15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Soleil, sans-serif;
  background-color: #111;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  /* Quasar zaklad - dulezite, protoze na nem stoji vsechny em hodnoty (ikony) */
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------ fonty */
@font-face { font-family: Infinit; src: url(../asset.php?f=infinit_font.woff2) format("woff2"); font-weight: 400; font-style: normal; }
@font-face { font-family: Soleil;  src: url(../asset.php?f=soleil-bold.woff2)  format("woff2"); font-weight: 700; font-style: normal; }
@font-face { font-family: Soleil;  src: url(../asset.php?f=soleil-light.woff2) format("woff2"); font-weight: 400; font-style: normal; }

.font-infinit { font-family: Infinit, sans-serif; }
.font-bold { font-weight: 700; }
.text-uppercase { text-transform: uppercase; }
.text-primary { color: var(--primary) !important; }
.text-white { color: #fff !important; }

/* ------------------------------------------------ typografie (3 stupne)
   font-weight a letter-spacing prevzaty z Quasar typografie - bez nich
   se text renderuje jinou sirkou nez v produkci. */
h1 { font-weight: 300; letter-spacing: -.01562em; }
h2 { font-weight: 300; letter-spacing: -.00833em; }
h3 { font-weight: 400; letter-spacing: normal; }
h4 { font-weight: 400; letter-spacing: .00735em; }
h5 { font-weight: 400; letter-spacing: normal; }
h6 { font-weight: 500; letter-spacing: .0125em; }

h1 { font-size: 60px; margin: 0; line-height: .8; color: #fff; }
h2 { font-size: 48px; margin: 0; line-height: 1;  color: #fff; }
h3 { font-size: 32px; margin: 0; line-height: .8; color: #fff; }
h4 { font-size: 24px; margin: 0; line-height: .8; color: #fff; padding-top: 0 !important; }
h5 { font-size: 18px; margin: 0; line-height: 1;  color: #fff; }
h6 { font-size: 16px; margin: 0; line-height: 1;  color: #fff; }
p  { font-size: 22px; line-height: 1.4; color: #fff; margin: 0; }
.text-subtitle1 { font-size: 1rem; font-weight: 400; line-height: 1.75rem; letter-spacing: .00937em; }

@media (max-width: 1900px) {
  h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 20px; }
  h4 { font-size: 16px; } h5 { font-size: 12px; } h6 { font-size: 10px; }
  p  { font-size: 14.5px; }
}
@media (min-width: 3700px) {
  h1 { font-size: 120px; } h2 { font-size: 96px; } h3 { font-size: 64px; }
  h4 { font-size: 48px; }  h5 { font-size: 40px; } h6 { font-size: 36px; }
  p  { font-size: 44px; }
}

/* =====================================================================
   Layout stranky - misto QLayout / QHeader / QFooter
   ===================================================================== */
.cb-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.cb-header { flex: 0 0 auto; background: transparent; }
.cb-main   { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.cb-footer { flex: 0 0 auto; background: transparent; }

/* header s odsazenim pri padding=true (puvodni px-2xl q-pt-lg) */
.cb-layout.is-padding .cb-header { padding: 24px 72px 0; }

/* ------------------------------------------------ hlavicka */
.cb-header-row {
  display: flex;
  flex-wrap: wrap;
  padding: 16px;                       /* q-pa-md */
}
@media (min-width: 1024px) { .cb-header-row { padding: 24px; } }   /* q-pa-md-lg */
@media (min-width: 1901px) { .cb-header-row { padding: 48px; } }   /* q-pa-lg-xl */

.cb-header-titles { flex: 10000 1 0%; margin-right: 16px; }        /* col q-mr-md */

/* ------------------------------------------------ status panel (datum, cas, teplota) */
.cb-status {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.cb-status:before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -73%);
  width: 536px; height: 536px;
  background-color: #000;
  border-radius: 50%;
  z-index: -1;
}
@media (max-width: 1900px) { .cb-status:before { width: 340px;  height: 340px; } }
@media (min-width: 3700px) { .cb-status:before { width: 1040px; height: 1040px; } }

.cb-status-time {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.cb-status-date, .cb-status-clock { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.cb-status-date { margin-bottom: 4px; }                                     /* q-mb-xs */
@media (min-width: 1901px) { .cb-status-date { margin-bottom: 8px; } }       /* q-mb-lg-sm */
@media (min-width: 3701px) { .cb-status-date { margin-bottom: 16px; } }      /* q-mb-xl-md */

.cb-status-temp {
  display: flex; flex-direction: column; flex-wrap: wrap; justify-content: flex-end;
  margin-left: 30px; padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}
.cb-status-temp > .font-bold { margin-bottom: 4px; }
@media (max-width: 1900px) { .cb-status-temp { margin-left: 15px; padding-left: 15px; } }
@media (min-width: 3700px) { .cb-status-temp { margin-left: 60px; padding-left: 60px; } }
@media (min-width: 1901px) { .cb-status-temp > .font-bold { margin-bottom: 8px; } }
@media (min-width: 3701px) { .cb-status-temp > .font-bold { margin-bottom: 16px; } }

/* ------------------------------------------------ pas "Nejblizsi ritual"
   V produkci je to JEDEN element: NextRitualPanel dostane z layoutu tridy
   q-px-* + q-py-sm + border-top-bottom a sam ma q-py-lg + blur.
   Vertikalni padding vyhraje q-py-lg (24px). */
.cb-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow: hidden;
  padding: 24px 16px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 1024px) { .cb-next { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1901px) { .cb-next { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1900px) {
  .cb-next { border-top-color: rgba(255,255,255,.1); border-bottom-color: rgba(255,255,255,.1);
             backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
@media (min-width: 3700px) {
  .cb-next { border-top-color: rgba(255,255,255,.3); border-bottom-color: rgba(255,255,255,.3);
             backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
}
.cb-next:empty { padding: 0; border: 0; }

/* caret = presna geometrie Font Awesome fa-caret-right (viewBox 256x512 -> sirka .5em) */
.cb-caret { width: .5em; height: 1em; fill: currentColor; flex: 0 0 auto; display: block; }

.cb-next-caret { flex: 0 0 auto; font-size: 5.3em; color: var(--primary); line-height: 1; }
@media (max-width: 1900px) { .cb-next-caret { font-size: 3em; } }
@media (min-width: 3700px) { .cb-next-caret { font-size: 12em; } }

.cb-next-body { flex: 10000 1 0%; font-weight: 700; text-align: center; }

.cb-next-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  margin-left: -16px; margin-top: -16px;                /* q-col-gutter-md */
}
.cb-next-grid > * { padding-left: 16px; padding-top: 16px; }
@media (min-width: 1901px) {
  .cb-next-grid { margin-left: -24px; margin-top: -24px; }
  .cb-next-grid > * { padding-left: 24px; padding-top: 24px; }
}
@media (min-width: 3701px) {
  .cb-next-grid { margin-left: -48px; margin-top: -48px; }
  .cb-next-grid > * { padding-left: 48px; padding-top: 48px; }
}

.cb-next-list { flex: 0 0 auto; margin-left: -8px; margin-top: -8px; }   /* q-col-gutter-sm */
.cb-next-list > * { padding-left: 8px; padding-top: 8px; }

.cb-next-time { color: var(--primary); text-align: left; }
.cb-next-time > div { display: inline-block; width: 4.25em; }

/* =====================================================================
   Telo - seznam ceremonialu
   ===================================================================== */
.cb-page {
  height: 100%;
  padding: 8px 16px;                                    /* q-px-md q-py-sm */
}
@media (min-width: 1024px) { .cb-page { padding-left: 24px; padding-right: 24px; padding-top: 16px; padding-bottom: 16px; } }
@media (min-width: 1901px) { .cb-page { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 3701px) { .cb-page { padding-top: 24px; padding-bottom: 24px; } }

/* Layouty 2 a 3: vnejsi kontejner je BEZ paddingu (v produkci QPage.row),
   padding ma az vnitrni sloupec s ceremonialy. */
.cb-page-row { display: flex; flex-wrap: wrap; align-items: stretch; height: 100%; overflow: hidden; }
.cb-ceremonies-col { flex: 0 0 auto; width: 75%; }      /* col-9 */

.cb-cols { display: flex; flex-wrap: wrap; }
.cb-col  { flex: 10000 1 0%; }
.cb-vsep { width: 1px; align-self: stretch; background: #212121; }   /* QSeparator vertical grey-9 */

/* ------------------------------------------------ radek ceremonialu */
.cb-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 83px;                                          /* panel-height */
}
@media (max-width: 1900px) { .cb-item { height: 55px; } }
@media (min-width: 3700px) { .cb-item { height: 187px; } }

.cb-item .arrow-icon { font-size: 2.3em; visibility: hidden; line-height: 1; flex: 0 0 auto; }
@media (max-width: 1900px) { .cb-item .arrow-icon { font-size: 1.6em; } }
@media (min-width: 3700px) { .cb-item .arrow-icon { font-size: 4.7em; } }
.cb-item.is-next .arrow-icon { visibility: visible; }
.cb-item.is-next h3 { font-weight: 700; }
.cb-item.is-past h3, .cb-item.is-past .area-icon { opacity: .2; }

.cb-item-time {
  flex: 0 0 auto; width: 8.3333%;                        /* col-1 */
  margin-left: 16px; margin-right: 16px;                 /* q-mx-md */
}
@media (min-width: 1901px) { .cb-item-time { margin-left: 24px; margin-right: 24px; } }
@media (min-width: 3701px) { .cb-item-time { margin-left: 48px; margin-right: 48px; } }

.cb-item-text {
  flex: 10000 1 0%;                                      /* col */
  margin-left: 8px; margin-right: 8px;                   /* q-mx-sm */
  line-height: 1.1;
}
@media (min-width: 1901px) { .cb-item-text { margin-left: 16px; margin-right: 16px; } }
@media (min-width: 3701px) { .cb-item-text { margin-left: 24px; margin-right: 24px; } }

/* Geometrie Quasar QIcon - bez ni sedi vysky o par px vedle.
   content-box je podstatny: padding se pricita k 1em, nezmensuje ho. */
.area-icon, .cb-legend-place .icon, .cb-aside-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; line-height: .75em; box-sizing: content-box;
}

.area-icon {
  color: #fff; background-color: #000; border-radius: 50%;
  font-size: 28px; padding: 11px; flex: 0 0 auto;
}
@media (max-width: 1900px) { .area-icon { font-size: 19px; padding: 7.5px; } }
@media (min-width: 3700px) { .area-icon { font-size: 56px; padding: 22px; } }
.area-icon.is-empty { visibility: hidden; }

/* =====================================================================
   Patka - legenda mist a zanru
   ===================================================================== */
.cb-footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  padding: 24px 48px;                                    /* q-px-xl q-py-lg */
  background: var(--dark);
}
.cb-layout.is-padding .cb-footer-row { padding: 24px 72px 64px; }   /* q-pt-lg pb-2xl px-2xl */

.cb-legend-places { display: flex; flex-wrap: wrap; gap: 62px; }
@media (max-width: 1900px) { .cb-legend-places { gap: 40px; } }
@media (min-width: 3700px) { .cb-legend-places { gap: 80px; } }

.cb-legend-place { display: flex; flex-wrap: wrap; align-items: center; flex: 0 0 auto; }
.cb-legend-place .icon {
  color: #000; background-color: #d9d9d9; border-radius: 50%;
  font-size: 28px; padding: 11px; margin-right: 20px;
}
@media (max-width: 1900px) { .cb-legend-place .icon { font-size: 19px; padding: 7.5px; margin-right: 14px; } }
@media (min-width: 3700px) { .cb-legend-place .icon { font-size: 56px; padding: 22px; margin-right: 40px; } }

.cb-legend-genres {
  display: flex; flex-wrap: wrap; align-items: center;
  margin-left: -4px; margin-top: -4px;                   /* q-col-gutter-xs */
}
.cb-legend-genres > * { padding-left: 4px; padding-top: 4px; }
@media (min-width: 1024px) {
  .cb-legend-genres { margin-left: -8px; margin-top: -8px; }
  .cb-legend-genres > * { padding-left: 8px; padding-top: 8px; }
}
@media (min-width: 1901px) {
  .cb-legend-genres { margin-left: -16px; margin-top: -16px; }
  .cb-legend-genres > * { padding-left: 16px; padding-top: 16px; }
}
.cb-legend-genres .genre-item { flex: 0 0 auto; font-weight: 700; }

/* =====================================================================
   Bocni panel - layout 2 (spa procedury) a 3 (muzikorelaxace)
   ===================================================================== */
.cb-aside {
  flex: 0 0 auto; width: 25%;                            /* col-3 */
  min-height: 0; overflow: hidden;
  padding-right: 16px; padding-top: 16px; padding-bottom: 16px;
}
@media (min-width: 1024px) { .cb-aside { padding-right: 24px; padding-top: 24px; padding-bottom: 24px; } }
@media (min-width: 1901px) { .cb-aside { padding-right: 48px; } }

.cb-aside-head { margin-bottom: 16px; }                  /* q-mb-md */
@media (min-width: 1901px) { .cb-aside-head { margin-bottom: 24px; } }
@media (min-width: 3701px) { .cb-aside-head { margin-bottom: 48px; } }
.cb-aside-head.has-top-pad { padding-top: 16px; }
@media (min-width: 1901px) { .cb-aside-head.has-top-pad { padding-top: 24px; } }
@media (min-width: 3701px) { .cb-aside-head.has-top-pad { padding-top: 48px; } }

.cb-aside-row {
  display: flex; flex-wrap: wrap; align-items: center;
  margin-left: -8px; margin-top: -8px;                   /* q-col-gutter-sm */
  padding-top: 8px;                                      /* q-pt-sm */
}
.cb-aside-row > * { padding-left: 8px; padding-top: 8px; }
@media (min-width: 1901px) {
  .cb-aside-row { margin-left: -16px; margin-top: -16px; padding-top: 16px; }
  .cb-aside-row > * { padding-left: 16px; padding-top: 16px; }
}
@media (min-width: 3701px) {
  .cb-aside-row { margin-left: -24px; margin-top: -24px; padding-top: 24px; }
  .cb-aside-row > * { padding-left: 24px; padding-top: 24px; }
}
.cb-aside-name { flex: 10000 1 0%; }
.cb-aside-time { flex: 0 0 auto; text-align: right; }

.cb-aside-icon {
  color: #fff; background-color: #000; border-radius: 50%;
  padding: 11px; font-size: 28px; box-sizing: content-box;
}
@media (max-width: 1900px) { .cb-aside-icon { padding: 7.5px; font-size: 19px; } }
@media (min-width: 3700px) { .cb-aside-icon { padding: 22px; font-size: 56px; } }
.cb-aside-icon img { width: 100%; height: 100%; object-fit: contain; }

.separator-line { height: 1px; border: 0; background-color: #9e9e9e33; margin: 16px 0; }
@media (min-width: 1901px) { .separator-line { margin: 24px 0; } }
@media (min-width: 3701px) { .separator-line { margin: 48px 0; } }

/* V produkci vyhrava scoped h6 (line-height 1) nad Quasar .text-subtitle1 (1.75rem).
   Bez toho je bocni panel o desitky px vyssi. */
.cb-aside h6 { line-height: 1; margin: 0; }

.cb-aside-note { padding-top: 8px; }
@media (min-width: 1901px) { .cb-aside-note { padding-top: 16px; } }
@media (min-width: 3701px) { .cb-aside-note { padding-top: 24px; } }

/* =====================================================================
   Reklamy
   ===================================================================== */
.cb-ad {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.cb-ad .overlay {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to left, black, transparent); z-index: 1;
}
.cb-ad-text {
  display: flex; flex-wrap: wrap; width: 100%; justify-content: flex-end; z-index: 2;
}
.cb-ad-text > div {
  width: 50%; padding: 0 48px;
  display: flex; flex-wrap: wrap; align-items: center;
}

/* prechody stranek (puvodni animate.css fadeInRight / fadeOutLeft, 1.5 s) */
.cb-fade-enter { animation: cbFadeInRight 1.5s both; }
.cb-fade-leave { animation: cbFadeOutLeft 1.5s both; }
@keyframes cbFadeInRight  { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes cbFadeOutLeft  { from { opacity: 1; } to { opacity: 0; transform: translate3d(-100%, 0, 0); } }

/* =====================================================================
   Chybova stranka (zadna data)
   ===================================================================== */
.cb-nodata {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 48px; transform: translateY(5%);
}
@media (max-width: 1900px) { .cb-nodata { gap: 32px; } }
@media (min-width: 3700px) { .cb-nodata { gap: 96px; } }
.cb-nodata .exclamation-icon { font-size: 97px; color: var(--primary); }
@media (max-width: 1900px) { .cb-nodata .exclamation-icon { font-size: 65px; } }
@media (min-width: 3700px) { .cb-nodata .exclamation-icon { font-size: 194px; } }
