/* ==========================================================================
   events.wat.edu.pl — motyw WAT dla Indico 3.3.x
   Inspiracja: wojsko-polskie.pl/wat (czerń, czerwień #db002f, Roboto Condensed,
   wersaliki w nagłówkach, ostre krawędzie, mocne akcenty).

   Instalacja:  <CUSTOMIZATION_DIR>/css/10-wat-theme.css
   Fonty:       <CUSTOMIZATION_DIR>/files/fonts/*.woff2  (serwowane jako
                /static/custom/files/fonts/...)
   Plik ładuje się po 00-index.css (kolejność alfabetyczna).
   Testowane na Indico v3.3.14. Po każdej aktualizacji Indico sprawdź wygląd.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonty — hostowane lokalnie (bez Google Fonts: RODO, CSP, brak zależności)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "WAT Condensed";
  src: local("Roboto Condensed"),
       url("/static/custom/files/fonts/roboto-condensed-latin-wght.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "WAT Condensed";
  src: local("Roboto Condensed"),
       url("/static/custom/files/fonts/roboto-condensed-latin-ext-wght.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "WAT Sans";
  src: local("Open Sans"),
       url("/static/custom/files/fonts/open-sans-latin-wght.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "WAT Sans";
  src: local("Open Sans"),
       url("/static/custom/files/fonts/open-sans-latin-ext-wght.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. Tokeny — nadpisanie zmiennych Indico (zdefiniowanych na <body>)
   -------------------------------------------------------------------------- */
body {
  /* paleta WAT */
  --wat-red: #db002f;
  --wat-red-dark: #a8001f;
  --wat-red-light: #fbe5ea;
  --wat-black: #0d0d0d;
  --wat-graphite: #1c1c1c;
  --wat-gray-900: #2b2b2b;
  --wat-gray-600: #5c5c5c;
  --wat-gray-300: #d6d6d6;
  --wat-gray-100: #f3f3f3;
  --wat-steel: #e0ebf2;            /* akcent jasnoniebieski z wojsko-polskie.pl */
  --wat-font-head: "WAT Condensed", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --wat-font-body: "WAT Sans", "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;

  /* mapowanie na zmienne Indico */
  --text-color: #2b2b2b;
  --text-secondary-color: #5c5c5c;
  --accent-color: var(--wat-red);
  --accent-highlight-color: var(--wat-red-dark);
  --accent-border-color: var(--wat-red-dark);
  --accent-secondary-color: var(--wat-red-dark);
  --surface-accent-secondary-color: var(--wat-red-light);
  --surface-inverse-color: var(--wat-graphite);
  --surface-highlight-inverse-color: var(--wat-red);
  --active-color: var(--wat-red-dark);
  --visited-color: #7a1830;
  --control-border-radius: 0;
  --tag-generic-color: var(--wat-red);

  font-family: var(--wat-font-body);
  color: var(--text-color);
  background: #fff;
}

/* motyw domyślny stron konferencyjnych (zmienne z conferences.css).
   Kolory ustawione przez organizatora w „Układ/Layout” są stylami inline,
   więc nadal mają pierwszeństwo nad tym blokiem. */
:root {
  --conf-theme-header-bg: var(--wat-black, #0d0d0d);
  --conf-theme-header-border-bottom: #db002f;
  --conf-theme-header-text: #fff;
  --conf-theme-subtitle-bg: #1c1c1c;
  --conf-theme-subtitle-border: #1c1c1c;
  --conf-theme-subtitle-text: #e6e6e6;
  --conf-theme-menu-bg: #fff;
  --conf-theme-menu-border: #d6d6d6;
  --conf-theme-menu-link: #2b2b2b;
  --conf-theme-menu-selected: #db002f;
  --conf-theme-menu-selected-bg: #f3f3f3;
  --conf-theme-menu-selected-border: #db002f;
  --conf-theme-hover-bg: #f3f3f3;
  --conf-theme-hover-color: #db002f;
  --conf-theme-support-bg: #f3f3f3;
  --conf-theme-support-border: #d6d6d6;
  --conf-theme-support-header-bg: #1c1c1c;
  --conf-theme-support-header-text: #fff;
  --conf-theme-support-text: #5c5c5c;
  --conf-theme-announcement-bg: #fbe5ea;
  --conf-theme-announcement-border: #db002f;
  --conf-theme-announcement-text: #2b2b2b;
}

/* --------------------------------------------------------------------------
   2. Typografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4,
.category-title,
.conference-page header .title .text,
.confTitle h1,
.event-list h3,
.footer-links-heading {
  font-family: var(--wat-font-head);
  letter-spacing: .01em;
}

a { color: var(--wat-red); }
a:hover, a:focus-visible { color: var(--wat-red-dark); }

:focus-visible {
  outline: 2px solid var(--wat-red) !important;
  outline-offset: 2px;
}

::selection { background: var(--wat-red); color: #fff; }

/* --------------------------------------------------------------------------
   3. Nagłówek globalny: czarny pasek + logo + pasek sesji
   -------------------------------------------------------------------------- */
.page-header {
  background: var(--wat-black);
  border-bottom: 0;
}
.page-header img.header-logo {
  margin: 18px 0 14px 40px;
  height: 56px;
}

/* przyciski strefy czasowej / języka / logowania w pasku sesji */
#session-bar .toolbar .group {
  gap: 0;
}
#session-bar .i-button:not(.label) {
  background: transparent;
  background-image: none;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 0 !important;
  color: #d9d9d9;
  font-family: var(--wat-font-head);
  font-weight: 400;
  font-size: .95em;
  text-transform: uppercase;
  letter-spacing: .04em;
  height: 2.6em;
  box-shadow: none;
}
#session-bar .i-button:not(.label):first-child { border-left: 0 !important; }
#session-bar .i-button:not(.label):hover,
#session-bar .i-button:not(.label).open {
  background: rgba(255, 255, 255, .08);
  background-image: none;
  color: #fff;
}
#session-bar .i-button:not(.label):disabled,
#session-bar .i-button:not(.label).disabled {
  background: transparent;
  color: #7a7a7a;
  opacity: 1;
}
#session-bar .i-button.icon-enter:not(.label) {
  background: var(--wat-red);
  color: #fff;
  margin-left: .5em;
}
#session-bar .i-button.icon-enter:not(.label):hover { background: var(--wat-red-dark); }
#session-bar { padding: 14px 24px 0 0; }

/* --------------------------------------------------------------------------
   4. Menu główne (Home / Utwórz wydarzenie)
   -------------------------------------------------------------------------- */
#global-menu {
  --menu-background-color: var(--wat-graphite);
  --menu-background-hover-color: var(--wat-graphite);
  background: var(--wat-graphite);
  border-bottom: 4px solid var(--wat-red);
  padding: 0 2.2em;
  font-size: 1.05rem;
}
#global-menu li :is(a, button) {
  background: var(--wat-graphite);
  color: #fff;
  font-family: var(--wat-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .85em 1.1em;
  position: relative;
  transition: color var(--transition-quick), background var(--transition-quick);
}
#global-menu li :is(a, button)::before {
  content: "";
  position: absolute;
  left: 1.1em; right: 1.1em; bottom: 0;
  height: 3px;
  background: var(--wat-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#global-menu > menu > li > :is(a, button):hover,
#global-menu > menu > li > ind-menu > button:hover,
#global-menu li :is(a, button).open {
  background: #000;
  color: #fff;
}
#global-menu > menu > li > :is(a, button):hover::before,
#global-menu > menu > li > ind-menu > button:hover::before,
#global-menu li :is(a, button).open::before { transform: scaleX(1); }

/* rozwijane podmenu */
#global-menu ind-menu > menu,
ind-menu > menu {
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 3px solid var(--wat-red) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important;
}
#global-menu ind-menu > menu li :is(a, button) {
  background: #fff;
  color: var(--wat-gray-900);
  text-transform: none;
  font-family: var(--wat-font-body);
  font-weight: 600;
  letter-spacing: 0;
}
#global-menu ind-menu > menu li :is(a, button)::before { display: none; }
#global-menu ind-menu > menu li :is(a, button):hover {
  background: var(--wat-gray-100);
  color: var(--wat-red);
}

/* --------------------------------------------------------------------------
   5. Nagłówek kategorii i pasek narzędzi
   -------------------------------------------------------------------------- */
.category-header {
  background: #fff;
  background-image: none;
  border-top: 0;
  border-bottom: 1px solid var(--wat-gray-300);
  padding: 1.8em var(--horizontal-padding) 1.6em;
}
.category-title,
h1.category-title {
  color: var(--wat-black);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 2.1em;
  line-height: 1.1;
  position: relative;
  padding-left: .7em;
}
.category-title::before {
  content: "";
  position: absolute;
  left: 0; top: .1em; bottom: .1em;
  width: 6px;
  background: var(--wat-red);
}

/* wyszukiwarka */
#search-box .ui.input > input,
.category-header .ui.input > input {
  border-radius: 0 !important;
  border-color: var(--wat-gray-300) !important;
}
#search-box .ui.input > input:focus {
  border-color: var(--wat-red) !important;
}

/* przyciski Indico (.i-button) */
.i-button:not(.label):not(.borderless):not(.text-color) {
  border-radius: 0 !important;
}
.toolbar .i-button:not(.label),
.toolbar .action-button:not(.label) {
  font-family: var(--wat-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.i-button:not(.label):not(.highlight):not(.accept):not(.danger):not(.warning):not(.borderless):not(.text-color) {
  background: #fff;
  background-image: none;
  border-color: var(--wat-gray-300);
  color: var(--wat-gray-900);
}
.i-button:not(.label):not(.highlight):not(.accept):not(.danger):not(.warning):not(.borderless):not(.text-color):hover {
  background: var(--wat-gray-100);
  background-image: none;
  border-color: var(--wat-gray-600);
  color: var(--wat-black);
}
.i-button.highlight:not(.label):not(.borderless):not(.text-color),
.action-button:not(.label):not(.borderless):not(.text-color) {
  background: var(--wat-red);
  background-image: none;
  border-color: var(--wat-red);
  color: #fff;
}
.i-button.highlight:not(.label):not(.borderless):not(.text-color):hover,
.i-button.highlight:not(.label):not(.borderless):not(.text-color):active,
.i-button.highlight:not(.label):not(.borderless):not(.text-color).open,
.action-button:not(.label):not(.borderless):not(.text-color):hover {
  background: var(--wat-red-dark);
  background-image: none;
  border-color: var(--wat-red-dark);
  color: #fff;
}
.i-button.highlight.borderless { color: var(--wat-red); }

/* przyciski Semantic UI (formularze React: rejestracja, abstrakty, logowanie) */
.ui.button { border-radius: 0 !important; font-family: var(--wat-font-head); letter-spacing: .03em; }
.ui.primary.button,
.ui.primary.buttons .button,
.ui.blue.button {
  background-color: var(--wat-red) !important;
  color: #fff !important;
}
.ui.primary.button:hover,
.ui.primary.button:focus,
.ui.primary.buttons .button:hover,
.ui.blue.button:hover {
  background-color: var(--wat-red-dark) !important;
}
.ui.basic.primary.button,
.ui.basic.blue.button {
  background: transparent !important;
  color: var(--wat-red) !important;
  box-shadow: 0 0 0 1px var(--wat-red) inset !important;
}
.ui.form input:focus,
.ui.form textarea:focus,
.ui.selection.dropdown:focus,
.ui.selection.active.dropdown {
  border-color: var(--wat-red) !important;
}
.ui.checkbox input:checked ~ label::after { color: var(--wat-red) !important; }
.ui.toggle.checkbox input:checked ~ label::before { background-color: var(--wat-red) !important; }

/* --------------------------------------------------------------------------
   6. Strona główna: opis kategorii, lista kategorii
   -------------------------------------------------------------------------- */
.category-description pre {
  font-family: var(--wat-font-head);
}
.category-info .category-description h1 {
  font-family: var(--wat-font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wat-black);
  letter-spacing: .02em;
}

h2#category-list {
  font-family: var(--wat-font-head);
  text-transform: uppercase;
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--wat-gray-600);
  margin: 2em 0 .8em;
}

ul.category-list {
  border-top: 2px solid var(--wat-black);
}
ul.category-list li {
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid var(--wat-gray-300);
  border-left: 4px solid transparent;
  line-height: 1.35;
  padding-top: .8em;
  padding-bottom: .8em;
  color: var(--wat-gray-600);
  transition: border-color .2s ease, background .2s ease;
}
ul.category-list li:hover {
  background: var(--wat-gray-100);
  border-left-color: var(--wat-red);
}
ul.category-list li a {
  --link-color: var(--wat-black);
  --link-highlight-color: var(--wat-red);
  font-weight: 600;
}
ul.category-list li::after { color: var(--wat-red); }
ul.category-list li .number-events {
  font-family: var(--wat-font-head);
  text-transform: uppercase;
  font-size: .85em;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   7. Lista wydarzeń w kategorii
   -------------------------------------------------------------------------- */
.event-list h3 {
  color: var(--wat-black);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.05em;
  border-bottom: 2px solid var(--wat-black);
  padding-bottom: .3em;
}
.event-list h3.current-month span {
  background: var(--wat-red);
  color: #fff;
  border-radius: 0;
  border-bottom: 0;
  padding: .25em .6em;
}
.event-list li {
  padding: .5em 0;
  border-bottom: 1px solid var(--wat-gray-100);
}
.event-list li .date {
  font-family: var(--wat-font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wat-red);
  font-size: 13px;
  letter-spacing: .03em;
  min-width: 7.5em;
}
.event-list li .today {
  background: var(--wat-red);
  color: #fff;
  border-radius: 0;
}
.event-list li .list-name a {
  --link-color: var(--wat-black);
  --link-highlight-color: var(--wat-red);
  font-weight: 600;
}
.event-list li .event-icons a:hover { color: var(--wat-red); }

/* --------------------------------------------------------------------------
   8. Strony wydarzeń — pasek akcji nad wydarzeniem
   -------------------------------------------------------------------------- */
.page-header-dark,
.event-page-header {
  background: var(--wat-graphite);
}
.event-page-header .main-action-bar {
  border-bottom: 3px solid var(--wat-red);
}

/* --------------------------------------------------------------------------
   9. Strony konferencji (motyw „conference”)
   -------------------------------------------------------------------------- */
.confTitleBox {
  border-top: 0;
  border-bottom-width: 3px;
}
.confTitle h1,
.confTitle h1 a,
.conference-title-link {
  font-family: var(--wat-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
}
.confSubTitleContent { font-family: var(--wat-font-head); font-size: 1.05rem; }
.confSubTitleContent .date { font-weight: 700; }

/* menu boczne konferencji */
#outer {
  border: 0;
  border-top: 3px solid var(--wat-black);
}
#outer li a {
  font-family: var(--wat-font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .7em 1em .7em 1.1em;
  border-bottom: 1px solid var(--wat-gray-300);
  border-left: 4px solid transparent;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
#outer li a:hover {
  border-left-color: var(--wat-red);
}
#outer li.selected > a,
#outer li.menuConfSelected > a {
  color: var(--wat-red) !important;
  background: var(--wat-gray-100);
  border-left-color: var(--wat-red);
}
#outer ul li a { padding-left: 2em; font-weight: 400; }

/* tytuł podstrony konferencji */
.conference-page header .title .text h2,
.conference-page header .title-with-actions h2 {
  font-family: var(--wat-font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wat-black);
  padding-bottom: .35em;
  border-bottom: 3px solid var(--wat-red);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   10. Tabele, komunikaty, etykiety
   -------------------------------------------------------------------------- */
table.i-table th,
.i-table-widget th {
  font-family: var(--wat-font-head);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ui.label { border-radius: 0 !important; }
.i-box, .i-box .i-box-header { border-radius: 0 !important; }
.i-box .i-box-header .i-box-title {
  font-family: var(--wat-font-head);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* --------------------------------------------------------------------------
   11. Stopka
   -------------------------------------------------------------------------- */
.footer {
  --text-secondary-color: #b5b5b5;
  --clickable-text-color: #fff;
  --clickable-text-highlight-color: #ff4d6d;
  background: var(--wat-black);
  color: #b5b5b5;
  border-top: 4px solid var(--wat-red);
  padding: 18px 40px;
  width: 100%;
}
.footer > .flexrow { width: 100%; }
.footer a { font-weight: 600; }
.footer .footer-logo {
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-links a {
  font-family: var(--wat-font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   12. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 800px) {
  .page-header img.header-logo { margin: 14px 0 10px 16px; height: 44px; }
  #session-bar { padding: 10px 10px 0 0; }
  #global-menu { padding: 0 .6em; }
  .category-title, h1.category-title { font-size: 1.6em; }
  .footer { padding: 14px 16px; }
  .footer > .flexrow { --flex-wrap: wrap; flex-wrap: wrap !important; gap: .6em 1.5em; }
  .footer > .flexrow > * { flex: 1 1 100%; }
  .footer .footer-extra { text-align: left; }
  .page-header > .flexrow { --flex-wrap: wrap; flex-wrap: wrap !important; }
  #session-bar .i-button:not(.label) { font-size: .85em; padding: .2em .55em !important; }
  .event-list h3 { margin-left: 0; }
  .event-list li { margin-left: 0; flex-wrap: wrap; }
  .event-list li .list-name { display: flex; flex-direction: column; gap: .2em; }
  .category-content-wrapper { padding: 1.5em 1em; }
  .category-header { padding: 1.4em 1em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
