/* MATERIAL DESIGN 3 EXPRESSIVE - MOTION SYSTEM */
:root {
  --md-sys-motion-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --md-sys-motion-acceleration: cubic-bezier(0.4, 0, 1, 1);
  --md-sys-motion-deceleration: cubic-bezier(0, 0, 0.2, 1);
  --md-sys-motion-duration-short: 150ms;
  --md-sys-motion-duration-medium: 250ms;
  --md-sys-motion-duration-long: 400ms;
}

/* MATERIAL DESIGN 3 COLOR TOKENS - LIGHT MODE (DEFAULT) */
:root {
 /* Primary - Oranžová z obrázku */
  --md-sys-color-primary: rgb(179 93 0);
  --md-sys-color-surface-tint: rgb(179 93 0);
  --md-sys-color-on-primary: rgb(255 255 255);
  --md-sys-color-primary-container: rgb(255 220 195);
  --md-sys-color-on-primary-container: rgb(60 27 0);

  /* Secondary - Břidlicově modrá z obrázku */
  --md-sys-color-secondary: rgb(63 99 104);
  --md-sys-color-on-secondary: rgb(255 255 255);
  --md-sys-color-secondary-container: rgb(193 232 237);
  --md-sys-color-on-secondary-container: rgb(0 32 35);

  /* Tertiary - Zlatá/Žlutá z obrázku */
  --md-sys-color-tertiary: rgb(119 90 0);
  --md-sys-color-on-tertiary: rgb(255 255 255);
  --md-sys-color-tertiary-container: rgb(255 224 134);
  --md-sys-color-on-tertiary-container: rgb(36 26 0);

  /* Error */
  --md-sys-color-error: rgb(186 26 26);
  --md-sys-color-on-error: rgb(255 255 255);
  --md-sys-color-error-container: rgb(255 218 214);
  --md-sys-color-on-error-container: rgb(65 0 2);

  /* Background & General Surfaces */
  --md-sys-color-background: rgb(255 248 243);
  --md-sys-color-on-background: rgb(32 26 23);
  --md-sys-color-surface: rgb(255 248 243);
  --md-sys-color-on-surface: rgb(32 26 23);
  --md-sys-color-surface-variant: rgb(244 223 210);
  --md-sys-color-on-surface-variant: rgb(82 68 60);
  
  /* Outline & Scrim */
  --md-sys-color-outline: rgb(133 116 106);
  --md-sys-color-outline-variant: rgb(215 195 183);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);

  /* Inverse Colors */
  --md-sys-color-inverse-surface: rgb(54 47 43);
  --md-sys-color-inverse-on-surface: rgb(251 238 232);
  --md-sys-color-inverse-primary: rgb(255 182 140);

  /* Fixed Colors (Zůstávají stejné i v tmavém módu) */
  --md-sys-color-primary-fixed: rgb(255 220 195);
  --md-sys-color-on-primary-fixed: rgb(60 27 0);
  --md-sys-color-primary-fixed-dim: rgb(255 182 140);
  --md-sys-color-on-primary-fixed-variant: rgb(135 69 0);
  
  --md-sys-color-secondary-fixed: rgb(193 232 237);
  --md-sys-color-on-secondary-fixed: rgb(0 32 35);
  --md-sys-color-secondary-fixed-dim: rgb(164 205 210);
  --md-sys-color-on-secondary-fixed-variant: rgb(39 74 79);
  
  --md-sys-color-tertiary-fixed: rgb(255 224 134);
  --md-sys-color-on-tertiary-fixed: rgb(36 26 0);
  --md-sys-color-tertiary-fixed-dim: rgb(236 194 66);
  --md-sys-color-on-tertiary-fixed-variant: rgb(91 67 0);

  /* Nové Surface Containers a Elevace (Pro přesné stínování ploch) */
  --md-sys-color-surface-dim: rgb(226 216 209);
  --md-sys-color-surface-bright: rgb(255 248 243);
  --md-sys-color-surface-container-lowest: rgb(255 255 255);
  --md-sys-color-surface-container-low: rgb(252 241 235);
  --md-sys-color-surface-container: rgb(246 236 229);
  --md-sys-color-surface-container-high: rgb(240 230 223);
  --md-sys-color-surface-container-highest: rgb(235 224 218);
  --pozadi: url('/o/S.jpg');
}

/* MATERIAL DESIGN 3 COLOR TOKENS - DARK MODE */
@media (prefers-color-scheme: dark) {
  :root{
  /* Primary */
    --md-sys-color-primary: rgb(255 182 140);
    --md-sys-color-surface-tint: rgb(255 182 140);
    --md-sys-color-on-primary: rgb(93 47 0);
    --md-sys-color-primary-container: rgb(135 69 0);
    --md-sys-color-on-primary-container: rgb(255 220 195);

    /* Secondary */
    --md-sys-color-secondary: rgb(164 205 210);
    --md-sys-color-on-secondary: rgb(10 53 58);
    --md-sys-color-secondary-container: rgb(39 74 79);
    --md-sys-color-on-secondary-container: rgb(193 232 237);

    /* Tertiary */
    --md-sys-color-tertiary: rgb(236 194 66);
    --md-sys-color-on-tertiary: rgb(63 46 0);
    --md-sys-color-tertiary-container: rgb(91 67 0);
    --md-sys-color-on-tertiary-container: rgb(255 224 134);

    /* Error */
    --md-sys-color-error: rgb(255 180 171);
    --md-sys-color-on-error: rgb(105 0 5);
    --md-sys-color-error-container: rgb(147 0 10);
    --md-sys-color-on-error-container: rgb(255 218 214);

    /* Background & General Surfaces */
    --md-sys-color-background: rgb(32 26 23);
    --md-sys-color-on-background: rgb(235 224 218);
    --md-sys-color-surface: rgb(32 26 23);
    --md-sys-color-on-surface: rgb(235 224 218);
    --md-sys-color-surface-variant: rgb(82 68 60);
    --md-sys-color-on-surface-variant: rgb(215 195 183);

    /* Outline & Scrim */
    --md-sys-color-outline: rgb(159 140 129);
    --md-sys-color-outline-variant: rgb(82 68 60);
    --md-sys-color-shadow: rgb(0 0 0);
    --md-sys-color-scrim: rgb(0 0 0);

    /* Inverse Colors */
    --md-sys-color-inverse-surface: rgb(235 224 218);
    --md-sys-color-inverse-on-surface: rgb(54 47 43);
    --md-sys-color-inverse-primary: rgb(179 93 0);

    /* Fixed Colors (Zrcadlení stejných hodnot jako u světlého tématu) */
    --md-sys-color-primary-fixed: rgb(255 220 195);
    --md-sys-color-on-primary-fixed: rgb(60 27 0);
    --md-sys-color-primary-fixed-dim: rgb(255 182 140);
    --md-sys-color-on-primary-fixed-variant: rgb(135 69 0);
    
    --md-sys-color-secondary-fixed: rgb(193 232 237);
    --md-sys-color-on-secondary-fixed: rgb(0 32 35);
    --md-sys-color-secondary-fixed-dim: rgb(164 205 210);
    --md-sys-color-on-secondary-fixed-variant: rgb(39 74 79);
    
    --md-sys-color-tertiary-fixed: rgb(255 224 134);
    --md-sys-color-on-tertiary-fixed: rgb(36 26 0);
    --md-sys-color-tertiary-fixed-dim: rgb(236 194 66);
    --md-sys-color-on-tertiary-fixed-variant: rgb(91 67 0);

    /* Surface Containers pro tmavé téma (Různé odstíny tmavé pro hloubku) */
    --md-sys-color-surface-dim: rgb(26 20 17);
    --md-sys-color-surface-bright: rgb(64 56 52);
    --md-sys-color-surface-container-lowest: rgb(15 10 7);
    --md-sys-color-surface-container-low: rgb(32 26 23);
    --md-sys-color-surface-container: rgb(37 30 27);
    --md-sys-color-surface-container-high: rgb(43 36 32);
    --md-sys-color-surface-container-highest: rgb(54 47 43);
    --pozadi: url('/o/T.png');
  }
}

    @font-face {
  font-family: 'Mustela-Mundi';
  src: url('https://ginnino.nett.to/styles/Mustela-Mundi.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
    }

/* ZÁKLADNÍ RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Flex', 'Roboto', Arial, sans-serif;
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--pozadi);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: -1;
  filter: blur(1px) saturate(1.2);
}

/* HEADER & NAVIGACE */
header {
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

nav {
  font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

nav li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard),
              color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
  
  /* AKTUALIZOVANÉ ZAROVNÁNÍ NA STŘED */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Udělá mezeru mezi ikonou a textem */
}


nav a:hover {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-primary);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 12px;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--md-sys-color-on-surface);
  border-radius: 2px;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
}

.menu-toggle:hover {
  background: var(--md-sys-color-surface-container-highest);
}

/* TYPOGRAFIE */
h1 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 3.5625rem;
  line-height: 4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--md-sys-color-primary);
  margin-bottom: 24px;
  font-variation-settings: "GRAD" 0, "opsz" 40;
}

h2 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 2.8125rem;
  line-height: 3.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--md-sys-color-secondary);
  margin-bottom: 20px;
}

h3 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 2.25rem;
  line-height: 2.75rem;
  font-weight: 400;
  color: var(--md-sys-color-tertiary);
  margin-bottom: 16px;
}

h4 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 12px;
}

h5 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 500;
  color: var(--md-sys-color-primary-fixed);
  margin-bottom: 12px;
}

h6 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 2rem;
  font-weight: 500;
  color: var(--md-sys-color-secondary-fixed);
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
}

.subtitle1 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.subtitle2 {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}

.body1 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.body2 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.caption, small {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}

.label {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

/* ODKAZY */
a {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  color: var(--md-sys-color-primary);
  text-decoration: none;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
  position: relative;
}

a:hover {
  color: var(--md-sys-color-primary-fixed);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* SEZNAMY */
ul, ol {
  margin-bottom: 16px;
  padding-left: 32px;
}

li {
  margin-bottom: 8px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.75;
}

li::marker {
  color: var(--md-sys-color-primary);
}

/* CITACE */
q {
  font-style: italic;
  color: var(--md-sys-color-tertiary);
  quotes: "„" """ "‚" "'";
  padding: 0 4px;
}

q::before {
  content: open-quote;
}

q::after {
  content: close-quote;
}

cite {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  display: block;
  font-style: italic;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 8px;
  font-size: 0.9rem;
  border-left: 3px solid var(--md-sys-color-outline);
  padding-left: 16px;
}

blockquote {
  background: var(--md-sys-color-surface-container-low);
  border-left: 4px solid var(--md-sys-color-primary);
  padding: 16px;
  margin: 24px 0;
  border-radius: 12px;
  font-style: italic;
  color: var(--md-sys-color-on-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

/* ZKRATKY */
abbr {
  text-decoration: none;
  border-bottom: 2px dotted var(--md-sys-color-primary);
  cursor: help;
  color: var(--md-sys-color-primary-fixed);
  font-weight: 500;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
}

abbr:hover {
  background: var(--md-sys-color-surface-container);
  padding: 2px 6px;
  border-radius: 8px;
  border-bottom: none;
}

/* OBRÁZKY */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-standard);
  margin: auto;
}

img:hover {
  transform: translateY(-4px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

figure {
  margin: 24px 0;
}

figcaption {
  text-align: center;
  font-style: italic;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 8px;
  font-size: 0.9rem;
}

/* SEKCE & ČLÁNKY */
section {
  padding: 48px 16px;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--md-sys-color-surface-container-low);
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

article {
  background: var(--md-sys-color-surface-container);
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-standard);
}

article:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-3px);
}

div:not([class]) {
  margin-bottom: 16px;
}

/* FOOTER */
footer {
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  padding: 32px 16px;
  text-align: center;
  margin-top: 48px;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.12);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

footer p {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 8px;
}

footer a {
  color: var(--md-sys-color-secondary);
}
/* ODKAZY NA SOCIÁLNÍ SÍTĚ */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.social-icon:hover {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.16), 0 2px 4px rgba(0,0,0,0.12);
}

.social-icon:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* MODÁLNÍ OKNO */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn var(--md-sys-motion-duration-medium) var(--md-sys-motion-standard);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--md-sys-color-surface);
  padding: 32px;
  border-radius: 28px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  position: relative;
  animation: slideUp var(--md-sys-motion-duration-medium) var(--md-sys-motion-emphasized);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-error);
  border: 1px solid var(--md-sys-color-outline);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
}

.modal-close:hover {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  transform: rotate(90deg) scale(1.1);
}

/* TLAČÍTKA */
button, .btn {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  border: 1px solid var(--md-sys-color-outline);
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover, .btn:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-2px);
}

button:active, .btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-filled, .mdc-button--raised {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.btn-filled:hover, .mdc-button--raised:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-1px);
}

.btn-outlined, .mdc-button--outlined {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
}

.btn-outlined:hover, .mdc-button--outlined:hover {
  background: var(--md-sys-color-surface-container-high);
}

.btn-text {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: none;
  padding: 10px 12px;
}

.btn-text:hover {
  background: var(--md-sys-color-surface-container-high);
}

/* FORMULÁŘE */
input, textarea, select {
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  border: 1px solid var(--md-sys-color-outline);
  padding: 12px;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  border-width: 2px;
  padding: 11px;
}

input::placeholder, textarea::placeholder {
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.6;
}

label {
    font-family: 'Mustela-Mundi', Roboto Flex, Roboto, Arial, sans-serif;
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 4px;
}

/* TABULKY */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--md-sys-color-surface-container);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

thead {
  background: var(--md-sys-color-surface-container-high);
}

th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--md-sys-color-primary);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface);
}

tr:hover {
  background: var(--md-sys-color-surface-container-highest);
}

tr:last-child td {
  border-bottom: none;
}

/* ANIMACE */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* UTILITY CLASSES */
.text-primary { color: var(--md-sys-color-primary); }
.text-secondary { color: var(--md-sys-color-secondary); }
.text-tertiary { color: var(--md-sys-color-tertiary); }
.text-error { color: var(--md-sys-color-error); }
.text-on-surface { color: var(--md-sys-color-on-surface); }
.text-on-surface-variant { color: var(--md-sys-color-on-surface-variant); }

.bg-primary { background: var(--md-sys-color-primary); }
.bg-secondary { background: var(--md-sys-color-secondary); }
.bg-tertiary { background: var(--md-sys-color-tertiary); }
.bg-surface { background: var(--md-sys-color-surface); }
.bg-surface-variant { background: var(--md-sys-color-surface-variant); }
.bg-surface-container { background: var(--md-sys-color-surface-container); }
.bg-surface-container-low { background: var(--md-sys-color-surface-container-low); }
.bg-surface-container-high { background: var(--md-sys-color-surface-container-high); }
.bg-surface-container-highest { background: var(--md-sys-color-surface-container-highest); }

.elevation-0 { box-shadow: none; }
.elevation-1 { box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 1px 1px rgba(0,0,0,0.14); }
.elevation-2 { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
.elevation-3 { box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); }
.elevation-4 { box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); }
.elevation-5 { box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); }

.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: 4px; }
.rounded { border-radius: 8px; }
.rounded-md { border-radius: 12px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 20px; }
.rounded-full { border-radius: 9999px; }

.center {
  text-align: center;
  align-items: center;
  align-content: center;
}

/* KARTY */
.card, .mdc-card {
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-standard);
  margin-bottom: 16px;
}

.card-filled {
  background: var(--md-sys-color-surface-container-highest);
}

.card-elevated {
  background: var(--md-sys-color-surface-container-low);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.card-elevated:hover, .mdc-card:hover, .card:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.16), 0 3px 8px rgba(0,0,0,0.23);
  transform: translateY(-2px);
}

.card-outlined {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: none;
}

.card > div:not([class]) {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 8px;
}

.card span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

/* PROFIL KOMPONENTA */
.profil {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 50px;
  padding: 6px;
  padding-right: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
  max-width: fit-content;
}

.profil:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-2px);
}

.profil img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--md-sys-color-outline);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.profil p {
  margin: 0;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  white-space: nowrap;
  flex-grow: 1;
}

.profil .ikona {
  width: 24px;
  height: 24px;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
  flex-shrink: 0;
}

.profil .ikona:hover {
  color: var(--md-sys-color-primary);
  transform: rotate(90deg);
}

/* POLOŽKY - MASONRY LAYOUT */

.polozka-container {
  column-count: 4;
  column-gap: 16px;
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
}
/* ----- DETEKCE PRO POČÍTAČE (od 1025px nahoru, 4 sloupce) ----- */
@media screen and (min-width: 1025px) {
    /* Pokud kontejner NEMÁ 4. prvek (obsahuje jen 1, 2 nebo 3 položky) */
    .polozka-container:not(:has(> .polozka:nth-child(4))) {
        display: flex;
        justify-content: center;
        gap: 16px;
    }
    .polozka-container:not(:has(> .polozka:nth-child(4))) .polozka {
        width: 100%;
        max-width: calc((100% - 48px) / 4);
        margin-bottom: 0; 
    }
}
.polozka {
  background: var(--md-sys-color-surface-container-low);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-standard);
  border: 1px solid var(--md-sys-color-outline-variant);
  break-inside: avoid;
  margin-bottom: 16px;
}

.polozka:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.polozka-image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: var(--md-sys-color-surface-container);
  overflow: hidden;
}

.polozka-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-standard);
  border-radius: 0;
  border: none;
}

.polozka:hover .polozka-image img {
  transform: scale(1.05);
}

.polozka-icon-btn {
  position: absolute;
  top: 12px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  z-index: 3;
}

.polozka-icon-btn:hover {
  background: var(--md-sys-color-surface-container-highest);
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.polozka-icon-btn:active {
  transform: scale(0.95);
}

.polozka-favorite {
  left: 12px;
  color: var(--md-sys-color-error);
}

.polozka-share {
  right: 12px;
  color: var(--md-sys-color-primary);
}

.polozka-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.polozka-content h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

.polozka-content p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  flex: 1;
  font-size: 0.95rem;
}

.polozka-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-primary);
  text-decoration: none;
  border-radius: 12px;
  text-align: center;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
  align-self: flex-start;
  font-weight: 600;
  border: 1px solid var(--md-sys-color-outline);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.polozka-button:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.polozka-button:active {
  transform: translateY(0);
}

/* RESPONZIVNÍ DESIGN */

/* TABLET (768px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 768px) {
  h1 { font-size: 2.75rem; line-height: 3.25rem; }
  h2 { font-size: 2.25rem; line-height: 2.75rem; }
  h3 { font-size: 1.875rem; line-height: 2.375rem; }
  h4 { font-size: 1.5rem; line-height: 2rem; }
  h5 { font-size: 1.25rem; line-height: 1.75rem; }
  h6 { font-size: 1.125rem; line-height: 1.5rem; }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--md-sys-color-surface-container);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    border-radius: 0 0 16px 16px;
    display: none;
    gap: 4px;
  }

  nav ul.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

   .polozka-container {
    column-count: 3;
    column-gap: 12px;
    padding: 12px;
  }
  /* Na tabletu centrujeme, jen pokud chybí 3. prvek (jsou jen 1 nebo 2) */
    .polozka-container:not(:has(> .polozka:nth-child(3))) {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    .polozka-container:not(:has(> .polozka:nth-child(3))) .polozka {
        width: 100%;
        max-width: calc((100% - 24px) / 3); /* Zabrání rozplyznutí do šířky */
    }

  section {
    padding: 32px 12px;
    margin-bottom: 16px;
  }

  article {
    padding: 24px;
  }
}

/* MOBIL (do 767px) */
@media screen and (max-width: 767px) {
  h1 { font-size: 2rem; line-height: 2.5rem; margin-bottom: 16px; }
  h2 { font-size: 1.75rem; line-height: 2.25rem; margin-bottom: 12px; }
  h3 { font-size: 1.5rem; line-height: 2rem; margin-bottom: 12px; }
  h4 { font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 8px; }
  h5 { font-size: 1.125rem; line-height: 1.5rem; margin-bottom: 8px; }
  h6 { font-size: 1rem; line-height: 1.375rem; margin-bottom: 8px; }

  p { font-size: 0.9375rem; margin-bottom: 12px; }

  section {
    padding: 24px 8px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  article {
    padding: 16px;
    margin-bottom: 16px;
  }

  .polozka-container {
        display: block !important;
        column-count: 1 !important; /* Toto tam musí být pro ten masonry layout */
        column-gap: 0;
        padding: 8px;
    }
    .polozka-container .polozka {
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 16px; /* Aby karty měly na mobilu mezi sebou mezeru */
    }
  nav {
    padding: 8px;
      z-index: 100;
  }

  nav ul {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: var(--md-sys-color-surface-container);
    flex-direction: row;
    justify-content: space-around;
    padding: 8px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.16);
    border-radius: 16px 16px 0 0;
    gap: 0;
    display: flex;
    z-index: 1000;
  }

  nav li {
    flex: 1;
    text-align: center;
  }

  nav a {
    padding: 8px 4px;
    font-size: 0.75rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .menu-toggle {
    display: none;
  }

  footer {
    padding: 24px 8px;
    margin-bottom: 72px;
  }

  button, .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  input, textarea, select {
    font-size: 16px;
  }

  .modal-content {
    padding: 20px;
    border-radius: 16px;
    max-width: 95vw;
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 12px 8px;
  }

  .profil {
    padding-right: 12px;
  }

  .profil img {
    width: 40px;
    height: 40px;
  }

  .profil p {
    font-size: 0.9rem;
  }

  .card {
    padding: 12px;
  }
}

/* PREFERENCE PRO SNÍŽENOU ANIMACI */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 8px;
  pointer-events: none;
}

.cookie-banner__surface {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--md-sys-color-outline-variant);
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.16);
  pointer-events: auto;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__title {
  margin: 0 0 4px 0;
}

.cookie-banner__description {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
}

.cookie-banner__buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner__link {
  margin-top: 8px;
  padding-left: 0;
}
@media screen and (max-width: 767px) {
  .cookie-banner__surface {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }

  .cookie-banner__buttons {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* Iconify ikony – zarovnání s textem */
iconify-icon {
  display: inline-block !important;
  vertical-align: -0.15em !important;
}

/* Oprava pro samotnou ikonu uvnitř odkazu */
nav a iconify-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================
   Sjednocené třídy pro Raidho a další sekce
   Přidáno při refaktorizaci pro vizuální sjednocení
   ============================================ */

/* Aliasy tlačítek - Raidho používá btn-primary/btn-secondary */
.btn-primary {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--md-sys-color-surface-container-high);
}

/* Input pole - jednotný styl */
.input {
  padding: 12px 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 12px;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  border-width: 2px;
}

textarea.input {
  resize: vertical;
  min-height: 80px;
}

select.input {
  cursor: pointer;
  appearance: auto;
}

/* Chip - filtrovací tlačítka */
.chip {
  padding: 8px 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 999px;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--md-sys-color-surface-container-high);
}

.chip-active {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-color: var(--md-sys-color-secondary-container);
}

/* Sjednocený layout pro Raidho */
.raidho-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.raidho-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.raidho-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}

.raidho-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Sjednocený footer pro sekce */
.section-footer {
  text-align: center;
  padding: 32px 16px;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 48px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Souhvězdí pro Lumie */
.constellation {
  position: relative;
  background: linear-gradient(180deg, var(--md-sys-color-surface-container) 0%, var(--md-sys-color-surface) 100%);
  border-radius: 20px;
  padding: 24px;
  min-height: 280px;
  overflow: hidden;
}

.constellation-title {
  text-align: center;
  margin-bottom: 16px;
  color: var(--md-sys-color-primary);
}

.constellation-canvas {
  display: block;
  width: 100%;
  height: 240px;
}

.constellation-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
}

.constellation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.constellation-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Dashboard pro přihlášené uživatele */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 auto 24px;
  max-width: 1200px;
}

.dashboard-section {
  padding: 20px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: 16px;
}

.dashboard-section:hover {
  transform: none;
  box-shadow: none;
}

.dashboard-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-sys-color-primary);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-empty {
  color: var(--md-sys-color-on-surface-variant);
  font-style: italic;
  padding: 16px 0;
}

.dashboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--md-sys-color-surface-container);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.dashboard-item:hover {
  background: var(--md-sys-color-surface-container-high);
  text-decoration: none;
  transform: none;
}

.dashboard-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.dashboard-item-content {
  flex: 1;
  min-width: 0;
}

.dashboard-item-content h4 {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--md-sys-color-on-surface);
}

.dashboard-item-content p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 auto 20px;
  max-width: 1200px;
}

.dashboard-stat {
  padding: 16px;
  border-left: 3px solid var(--md-sys-color-primary);
  text-align: left;
}

.dashboard-stat:hover {
  transform: none;
}

.dashboard-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  line-height: 1;
}

.dashboard-stat-label {
  font-size: 0.8rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 6px;
}

@media (max-width: 767px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Raidho article detail (clanek.php) */
.raidho-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px;
}

.raidho-meta {
  margin-bottom: 8px;
}

.raidho-perex {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 24px;
}

.raidho-article-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 24px;
}

.raidho-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--md-sys-color-on-surface-variant);
}

.raidho-article-content {
  margin-bottom: 40px;
}

.raidho-comment-form {
  margin-bottom: 24px;
}

/* Domovská stránka - třídy nahrazující inline styly */
.gc-home-title {
  margin: 5px auto 2px auto;
}

.gc-home-subtitle {
  margin: 0 auto 1px auto;
}

.gc-user-profile-wrap {
  margin: 0 auto;
}

.gc-footer-text {
  text-align: center;
}

.gc-footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.gc-footer-logo {
  width: auto;
  max-height: 50px;
}

.dashboard-constellation-wrap {
  margin-top: 24px;
}

.dashboard-hidden {
  display: none;
}

.profil-h1 {
  margin-bottom: 8px;
}

.profil-constellation-wrap {
  margin: 24px auto;
  max-width: 1200px;
}

/* Lumie specifické třídy nahrazující inline styly */
.lumie-play-icon {
  font-size: 28px;
}

.lumie-journal-card {
  padding: 2rem;
}

.lumie-journal-icon {
  font-size: 3rem;
  color: var(--md-sys-color-primary);
}

.lumie-journal-text {
  color: var(--md-sys-color-on-surface-variant);
}

.lumie-journal-title {
  margin-top: 0;
}

/* ============ SJEDNOCENÁ NAVIGACE ============ */
.gc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .5rem 1rem;
  background: var(--md-sys-color-surface-variant, #f5f5f5);
  border-bottom: 1px solid var(--md-sys-color-outline-variant, #e0e0e0);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.gc-nav::-webkit-scrollbar {
  display: none;
}

.gc-nav a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--md-sys-color-on-surface-variant, #555);
  font-size: .95rem;
  text-decoration: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
}

.gc-nav a:hover,
.gc-nav a.active {
  background: var(--md-sys-color-secondary-container, #e8def8);
  color: var(--md-sys-color-on-secondary-container, #1d192b);
}

.gc-nav a iconify-icon {
  font-size: 1.2rem;
}

/* ============ SJEDNOCENÝ HEADER ============ */
.gc-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.gc-page-header-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.gc-page-header-title iconify-icon {
  font-size: 1.8rem;
  color: var(--md-sys-color-primary, #6750A4);
}

.gc-page-header-subtitle {
  margin: .25rem 0 0;
  color: var(--md-sys-color-on-surface-variant, #555);
  font-size: .9rem;
}

/* ============ SJEDNOCENÝ FOOTER ============ */
.gc-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--md-sys-color-outline-variant, #e0e0e0);
  margin-top: 2rem;
}

.gc-footer .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gc-footer .social-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--md-sys-color-on-surface-variant, #555);
  transition: fill 150ms;
}

.gc-footer .social-icon:hover svg {
  fill: var(--md-sys-color-primary, #6750A4);
}

/* ============ SEKCE-SPECIFICKÉ LAYOUT TŘÍDY ============ */
.gc-section-logo {
  max-width: 15%;
}

.gc-search-input {
  flex: 1;
  max-width: 400px;
}

.gc-sort-label {
  font-weight: 500;
  margin-right: 1rem;
}

.gc-loading-center {
  text-align: center;
  padding: 2rem;
}

.gc-loading-icon {
  font-size: 48px;
  animation: gc-rotate 2s linear infinite;
}

@keyframes gc-rotate {
  to { transform: rotate(360deg); }
}

.gc-filters-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.gc-filters-container {
  flex-wrap: wrap;
}

.gc-search-input-wide {
  flex: 1;
  max-width: 520px;
}

.gc-section-transparent {
  background-color: transparent;
}

.gc-loading-large {
  padding: 40px;
}


/* ============================================================
   DOMOVSKÁ STRÁNKA – sjednocený responzivní layout
   Nahrazuje inline styly z původního index.php.
   ============================================================ */

.gc-hero {
  padding: 24px 16px 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.gc-home-title {
  margin: 5px auto 2px;
  font-size: clamp(1.75rem, 5vw, 3.5625rem);
}

.gc-home-subtitle {
  margin: 0 auto 1px;
  color: var(--md-sys-color-on-surface-variant);
  font-family: 'Mustela-Mundi', 'Roboto Flex', Roboto, Arial, sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
}

/* Topbar: navigace vlevo + účet vpravo */
.gc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navigace uvnitř topbaru nepotřebuje vlastní sticky (topbar je sticky celý) */
.gc-topbar .gc-nav {
  position: relative;
  top: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding: .25rem .5rem;
}

.gc-topbar-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.gc-topbar-account {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gc-account-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.gc-account-name {
  font-weight: 600;
}

.gc-account-summary button {
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Intro karta s logem */
.gc-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gc-intro-card h2 {
  margin: 0;
}

.gc-home-logo {
  max-width: 20%;
  min-width: 80px;
}

.gc-home-photo {
  max-width: 50%;
  height: auto;
  margin: 0 auto 10px;
}

/* Tlačítka v kartách sekcí na domovské stránce – na mobilu centrovaná */
.polozka-content .polozka-button {
  margin-top: auto;
}

@media (max-width: 768px) {
  .gc-hero {
    padding: 16px 12px 4px;
  }
  .gc-home-logo {
    max-width: 35%;
  }
  .gc-home-photo {
    max-width: 80%;
  }
  .gc-topbar {
    padding: 6px 10px;
    gap: 8px;
  }
  .gc-account-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .gc-hero {
    padding: 12px 8px 2px;
  }
  .gc-home-logo {
    max-width: 45%;
  }
  .gc-home-photo {
    max-width: 100%;
  }
  .gc-account-summary {
    font-size: 0.85rem;
  }
  .gc-account-summary button {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
  /* Dashboard – statistiky v mřížce 2×2 na úzkých displejích */
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dashboard-stat {
    padding: 14px 10px;
  }
  .dashboard-stat-value {
    font-size: 1.6rem;
  }
  .dashboard-stat-label {
    font-size: 0.8rem;
  }
  /* Sekční karty na domovské stránce: menší padding, centrované CTA */
  .polozka-content {
    padding: 14px;
    gap: 10px;
  }
  .polozka-content .polozka-button {
    align-self: center;
    width: auto;
    max-width: 100%;
  }
}
