/* Modern CSS for Parní Kaktus website */

/* Malý stín pod kurzorem */
.cursor-shadow {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.1s ease;
}

.cursor-shadow.active {
  opacity: 1;
}

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "ProtestStrike";
  src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: "ProtestStrike";
  line-height: 1.6;
  color: #1a3a1a;
  background:
    linear-gradient(
      to bottom,
      rgba(13, 122, 0, 0.98) 0%,
      rgba(26, 95, 26, 0.92) 18vh,
      rgba(45, 122, 45, 0.75) 34vh,
      rgba(76, 175, 80, 0.40) 52vh,
      rgba(76, 175, 80, 0.18) 64vh,
      rgba(76, 175, 80, 0) 78vh
    ),
    linear-gradient(
      135deg,
      #fbfcfd 0%,
      #f4f7f6 22%,
      #eef4f0 45%,
      #e8f5e9 65%,
      #f7faf8 100%
    );
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ProtestStrike všude – přepíše dědičnost i vstupní prvky */
.nav-title,
.nav-title-line,
.nav-link,
.nav-link-mobile,
.nav-category-toggle,
.nav-submenu-item,
.dropdown-item,
.hero-title,
.hero-subtitle,
.hero-year,
.hero-badge,
.hero-btn,
.card h2,
.card h3,
.card p,
.card a,
input,
button,
select,
textarea,
.main-container,
.search-results-dropdown,
.global-search-form .input {
  font-family: "ProtestStrike";
}

/* Kaktusové pozadí */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 18% 82%, rgba(76, 175, 80, 0.07) 0%, transparent 54%),
    radial-gradient(circle at 82% 18%, rgba(102, 187, 106, 0.07) 0%, transparent 54%),
    radial-gradient(circle at 42% 40%, rgba(139, 195, 74, 0.04) 0%, transparent 52%),
    radial-gradient(circle at 62% 72%, rgba(22, 163, 74, 0.04) 0%, transparent 48%),
    radial-gradient(circle at 50% 10%, rgba(15, 23, 42, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* Modern Navigation s kaktusovou tématikou */
.modern-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 3px solid rgba(76, 175, 80, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.10);
  transition: all 0.3s ease;
}

.nav-dropdown-mobile .dropdown-toggle-mobile:focus-visible {
  outline: 4px solid rgba(76, 175, 80, 0.22);
  outline-offset: 3px;
}

.modern-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4caf50, #66bb6a, #8bc34a, #4caf50);
  background-size: 200% 100%;
  animation: kaktusShimmer 3s ease-in-out infinite;
}

@keyframes kaktusShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 3rem;
  flex-shrink: 0;
}

.nav-logo {
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.375rem;
  object-fit: contain;
}

.nav-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  font-size: 1.25rem;
  font-weight: bold;
  color: #166534;
}

.nav-title-line {
  margin: 0;
  padding: 0;
}

/* Responzivní úpravy pro menší obrazovky */
@media (max-width: 1024px) {
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .nav-link-portal {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-link-mobile {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .nav-link-mobile-portal {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .search-input-wrapper-global .global-search-input {
    width: 100%;
  }

  .search-input-wrapper-global .global-search-input:focus {
    width: 100%;
  }

  .search-results-dropdown {
    left: 0;
    right: 0;
    max-width: 100%;
  }

  /* Upravíme nav-container pro mobilní layout */
  .nav-container {
    height: auto;
    min-height: 4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    gap: 0.5rem;
  }

  /* Nav-brand na mobilu - flexibilní šířka */
  .nav-brand {
    flex: 0 0 auto;
    margin-right: 0;
    min-width: 0;
    margin-bottom: 0;
    padding-right: 0;
  }

  /* Hamburger menu na správné pozici */
  .mobile-menu-btn {
    flex: 0 0 auto;
    margin-left: auto;
    position: static;
    z-index: 10;
  }

  /* Zobrazíme mobilní vyhledávání v hlavičce - na stejném řádku */
  .global-search-container-mobile-header {
    display: block !important;
    visibility: visible !important;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 200px;
    order: 2;
    margin-top: 0;
    padding: 0;
  }

  /* Kompaktní vyhledávací pole pro mobil */
  .global-search-input-mobile-compact {
    padding: 0.35rem 0.6rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 0.8rem;
    border-radius: 18px;
    width: 100%;
    min-width: 120px;
  }

  .global-search-input-mobile-compact:focus {
    width: 100%;
  }

  /* Skryjeme efekt stínu na mobilních zařízeních */
  .cursor-shadow {
    display: none;
  }
}

.nav-links-desktop {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

/* Globální vyhledávání */
.global-search-container {
  position: relative;
  margin-right: 0.5rem;
  flex: 0 1 17em;
  max-width: min(17em, calc(100vw - 520px));
}

/* Uiverse (Harsha2lucky) search behavior (kept unmodified, scoped) */
.global-search-form .input {
  color: black;
  font: 1em/1.5 "ProtestStrike";
}

.global-search-form,
.global-search-form .input,
.global-search-form .caret {
  margin: auto;
}

.global-search-form {
  position: relative;
  width: 100%;
  max-width: 17em;
}

.global-search-form .input,
.global-search-form .caret {
  display: block;
  transition: all calc(1s * 0.5) linear;
}

.global-search-form .input {
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 0 0 0.25em inset;
  caret-color: #4caf50;
  width: 2em;
  height: 2em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  border: 0;
}

/* Hide placeholder in collapsed state */
.global-search-form .input::placeholder {
  opacity: 0;
}

.global-search-form .input:focus,
.global-search-form .input:valid {
  background: rgba(232, 245, 233, 0.98);
  border-radius: 0.25em;
  box-shadow: none;
  padding: 0.75em 1em;
  transition-duration: calc(1s * 0.25);
  transition-delay: calc(1s * 0.25);
  width: 100%;
  height: 3em;
}

/* Show placeholder only when expanded */
.global-search-form .input:focus::placeholder,
.global-search-form .input:valid::placeholder {
  opacity: 1;
}

.global-search-form .input:focus {
  animation: showCaret 1s steps(1);
  outline: transparent;
}

.global-search-form .input:focus + .caret,
.global-search-form .input:valid + .caret {
  animation: handleToCaret 1s linear;
  background: transparent;
  width: 1px;
  height: 1.5em;
  transform: translate(0,-1em) rotate(-180deg) translate(7.5em,-0.25em);
}

.global-search-form .input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.global-search-form label {
  color: #e3e4e8;
  overflow: hidden;
  position: absolute;
  width: 0;
  height: 0;
}

.global-search-form .caret {
  background: #4caf50;
  border-radius: 0 0 0.125em 0.125em;
  margin-bottom: -0.6em;
  width: 0.25em;
  height: 1em;
  transform: translate(0,-1em) rotate(-45deg) translate(0,0.875em);
  transform-origin: 50% 0;
}

@keyframes showCaret {
  from {
    caret-color: transparent;
  }

  to {
    caret-color: #4caf50;
  }
}

@keyframes handleToCaret {
  from {
    background: currentColor;
    width: 0.25em;
    height: 1em;
    transform: translate(0,-1em) rotate(-45deg) translate(0,0.875em);
  }

  25% {
    background: currentColor;
    width: 0.25em;
    height: 1em;
    transform: translate(0,-1em) rotate(-180deg) translate(0,0.875em);
  }

  50%, 62.5% {
    background: #4caf50;
    width: 1px;
    height: 1.5em;
    transform: translate(0,-1em) rotate(-180deg) translate(7.5em,2.5em);
  }

  75%, 99% {
    background: #4caf50;
    width: 1px;
    height: 1.5em;
    transform: translate(0,-1em) rotate(-180deg) translate(7.5em,-0.25em);
  }

  87.5% {
    background: #4caf50;
    width: 1px;
    height: 1.5em;
    transform: translate(0,-1em) rotate(-180deg) translate(7.5em,0.125em);
  }

  to {
    background: transparent;
    width: 1px;
    height: 1.5em;
    transform: translate(0,-1em) rotate(-180deg) translate(7.5em,-0.25em);
  }
}

.global-search-container-mobile {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
}

/* Mobilní vyhledávání v hlavičce - skryté na desktopu */
.global-search-container-mobile-header {
  display: none;
  max-width: calc(100vw - 8rem);
}

/* Remove previous search-clear button (old UI) */
.search-clear-btn {
  display: none !important;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: none;
  max-height: 500px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
  border: 1px solid rgba(76, 175, 80, 0.18);
}

.search-results-dropdown::before {
  content: "Výsledky";
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.55);
  background: rgba(76, 175, 80, 0.08);
  border-bottom: 1px solid rgba(76, 175, 80, 0.12);
}

/* Zajistíme, že dropdown z mobilního vyhledávání v hlavičce je nad navigací */
.global-search-container-mobile-header .search-results-dropdown {
  z-index: 1002;
}

.search-results-dropdown.active {
  display: block;
  animation: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-category {
  border-bottom: 1px solid #e2e8f0;
}

.search-category:last-child {
  border-bottom: none;
}

.search-category-title {
  padding: 0.75rem 1rem;
  background: rgba(76, 175, 80, 0.06);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(22, 101, 52, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.82);
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(76, 175, 80, 0.08);
  transform: translateX(4px);
}

.result-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

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

.result-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.result-subtitle {
  font-size: 0.85rem;
  color: #64748b;
}

.search-no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  color: #1a5f1a;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(76, 175, 80, 0.16);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  text-align: center;
  line-height: 1.2;
  min-width: 90px;
}

.nav-link:hover {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.nav-link:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.22);
  outline-offset: 3px;
}

.nav-link.nav-link-icon {
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
}

.nav-link.nav-link-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2.5px;
}

/* Specifické styly pro tlačítko portálu */
.nav-link[href="portal.php"] {
  background: linear-gradient(135deg, #f59e0b, #f97316, #ea580c);
  color: white;
  border-color: #ea580c;
}

.nav-link[href="portal.php"]:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626, #b91c1c);
  color: white;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  border-color: #dc2626;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
  order: 2;
  margin-left: auto;
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background-color: #166534;
  transition: all 0.3s ease;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links-mobile {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 3px solid rgba(76, 175, 80, 0.3);
  padding: 1rem;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
}

.nav-links-mobile.open {
  display: flex;
}

.nav-link-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(76, 175, 80, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: #1a5f1a;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
  height: 50px;
  text-align: center;
  line-height: 1.2;
  min-width: 90px;
}

.nav-link-mobile:hover {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.nav-link-mobile-portal {
  background: linear-gradient(135deg, #f59e0b, #f97316, #ea580c);
  color: white;
  border-color: #ea580c;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.nav-link-mobile-portal:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626, #b91c1c);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Specifické styly pro mobilní verzi portálu */
.nav-link-mobile[href="portal.php"] {
  background: linear-gradient(135deg, #f59e0b, #f97316, #ea580c);
  color: white;
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.nav-link-mobile[href="portal.php"]:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626, #b91c1c);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Kategorizované menu - Desktop */
.nav-category {
  position: relative;
  display: inline-block;
}

.nav-category-toggle {
  cursor: pointer;
  border: none;
  background: inherit;
  font-family: "ProtestStrike";
  width: 100%;
}

.nav-category-toggle .dropdown-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
  font-size: 0.7rem;
}

.nav-category:hover .nav-category-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
  padding: 0.5rem;
  border: 1px solid rgba(76, 175, 80, 0.16);
  overflow: hidden;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.95), rgba(102, 187, 106, 0.65), rgba(139, 195, 74, 0.95));
  opacity: 0.9;
}

.nav-category:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #1a5f1a;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 14px;
  margin-top: 0.25rem;
  border-left: 0;
}

.nav-submenu-item:first-child {
  margin-top: 0.5rem;
}

.nav-submenu-item:hover {
  background: rgba(76, 175, 80, 0.10);
  color: #166534;
  transform: translateX(4px);
}

.nav-submenu-item:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.22);
  outline-offset: 2px;
}

.nav-submenu-item-disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.nav-submenu-item-disabled:hover {
  background: transparent;
  border-left-color: transparent;
  padding-left: 1.25rem;
}

/* Zvětšení mezer mezi kategoriemi */
.nav-links-desktop {
  gap: 0.5rem;
}

/* Kategorizované menu - Mobile */
.nav-category-mobile {
  width: 100%;
}

.nav-category-toggle-mobile {
  cursor: pointer;
  border: none;
  background: inherit;
  font-family: "ProtestStrike";
  width: 100%;
  text-align: left;
}

.nav-category-mobile.active .nav-category-toggle-mobile {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.1));
  color: #166534;
}

.mobile-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
  font-size: 0.7rem;
}

.nav-category-mobile.active .mobile-arrow {
  transform: rotate(180deg);
}

.nav-submenu-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  background: rgba(76, 175, 80, 0.05);
  border-radius: 12px;
  margin-top: 0.25rem;
}

.nav-category-mobile.active .nav-submenu-mobile {
  max-height: 500px;
  padding: 0.5rem;
}

.nav-submenu-item-mobile {
  display: block;
  padding: 0.75rem 1rem;
  color: #1a5f1a;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  background: white;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.nav-submenu-item-mobile:hover {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.1));
  color: #166534;
  transform: translateX(5px);
}

.nav-submenu-item-mobile.nav-submenu-item-disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.nav-submenu-item-mobile.nav-submenu-item-disabled:hover {
  background: white;
  transform: translateX(0);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0d7a00 0%, #1a5f1a 25%, #2d7a2d 50%, #4caf50 75%, #66bb6a 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "🌵";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.3;
  animation: kaktusBounce 3s ease-in-out infinite;
  z-index: 2;
}

.hero-section::after {
  content: "🌵";
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 2rem;
  opacity: 0.2;
  animation: kaktusBounce 3s ease-in-out infinite reverse;
}

@keyframes kaktusBounce {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.hero-motto-box {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-motto-text {
  font-family: "ProtestStrike", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.15;
  transform: rotate(35deg);
  line-height: 1.4;
  text-align: center;
}

.hero-logo {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  z-index: 1;
  opacity: 0.1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hero-logo:hover {
  opacity: 0.15;
}

.hero-logo-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  z-index: 3;
  position: relative;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 0.8;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.hero-year {
  font-weight: bold;
  color: #fbbf24;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

 .hero-buttons ul.example-2 {
   list-style: none;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 0.75rem;
   padding: 0;
   margin: 0;
 }

 .hero-buttons .example-2 .icon-content {
   position: relative;
 }

 .hero-buttons .example-2 .icon-content .tooltip {
   position: absolute;
   top: -30px;
   left: 50%;
   transform: translateX(-50%);
   color: #fff;
   padding: 6px 10px;
   border-radius: 8px;
   opacity: 0;
   visibility: hidden;
   font-size: 14px;
   transition: all 0.2s ease;
   white-space: nowrap;
 }

 .hero-buttons .example-2 .icon-content:hover .tooltip {
   opacity: 1;
   visibility: visible;
   top: -48px;
 }

 .hero-buttons .example-2 .icon-content a {
   position: relative;
   overflow: hidden;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 44px;
   height: 44px;
   border-radius: 999px;
   color: rgba(255, 255, 255, 0.95);
   background: rgba(255, 255, 255, 0.14);
   border: 1px solid rgba(255, 255, 255, 0.30);
   backdrop-filter: blur(10px);
   box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
   transition: all 0.2s ease;
 }

 .hero-buttons .example-2 .icon-content a:hover {
   transform: translateY(-1px);
   box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
   color: #fff;
 }

 .hero-buttons .example-2 .icon-content a:not(:hover) {
   box-shadow: 0 16px 46px rgba(76, 175, 80, 0.14), 0 12px 34px rgba(15, 23, 42, 0.18);
 }

 .hero-buttons .example-2 .icon-content a::after {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
     radial-gradient(circle at 70% 80%, rgba(76, 175, 80, 0.14), transparent 50%);
   opacity: 1;
   pointer-events: none;
 }

 .hero-buttons .example-2 .icon-content a:focus-visible {
   outline: 4px solid rgba(255, 255, 255, 0.30);
   outline-offset: 3px;
 }

 .hero-buttons .example-2 .icon-content a svg {
   position: relative;
   z-index: 1;
 }

 .hero-buttons .example-2 .icon-content a .filled {
   position: absolute;
   top: auto;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 0;
   transition: all 0.25s ease;
 }

 .hero-buttons .example-2 .icon-content a:hover .filled {
   height: 100%;
 }

 .hero-buttons .example-2 .icon-content a[data-social="threads"] .filled,
 .hero-buttons .example-2 .icon-content a[data-social="threads"] ~ .tooltip {
   background-color: #000;
 }

 .hero-buttons .example-2 .icon-content a[data-social="facebook"] .filled,
 .hero-buttons .example-2 .icon-content a[data-social="facebook"] ~ .tooltip {
   background-color: #3b5998;
 }

 .hero-buttons .example-2 .icon-content a[data-social="instagram"] .filled,
 .hero-buttons .example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
   background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f);
 }

 .league-table-card .card-title {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   flex-wrap: wrap;
 }

 .league-table-card .league-badge {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.25rem 0.65rem;
   border-radius: 999px;
   font-size: 0.85rem;
   font-weight: 800;
   letter-spacing: 0.4px;
   color: rgba(15, 23, 42, 0.78);
   background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(255, 255, 255, 0.75));
   border: 1px solid rgba(45, 103, 55, 0.55);
   box-shadow: 0 10px 26px rgba(76, 175, 80, 0.14);
 }

.hero-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.18);
}

.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.20), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hero-btn:hover::before {
  opacity: 1;
}

.hero-btn:active {
  transform: translateY(0px) scale(0.99);
}

.hero-btn:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.30);
  outline-offset: 3px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #1a5f1a;
  border-color: #4caf50;
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.4);
  border-color: #2e7d32;
}

.hero-btn-primary:focus-visible {
  outline-color: rgba(76, 175, 80, 0.30);
}

.hero-btn-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: white;
  border-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  color: #1a5f1a;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
  border-color: #4caf50;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Main Content */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Components */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(76, 175, 80, 0.14);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10), 0 2px 10px rgba(76, 175, 80, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #66bb6a, #8bc34a, #4caf50);
  background-size: 200% 100%;
  animation: kaktusShimmer 3s ease-in-out infinite;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 85px rgba(15, 23, 42, 0.14), 0 10px 35px rgba(76, 175, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(76, 175, 80, 0.28);
}

.card:focus-within {
  box-shadow: 0 28px 85px rgba(15, 23, 42, 0.14), 0 0 0 4px rgba(76, 175, 80, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-header-with-share {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-header-with-share .card-title {
  flex: 1;
  min-width: 0;
  margin-bottom: 1rem;
}

/* Sdílení karty „Následující zápas“ (stejný vzor jako galerie) */
.next-match-share {
  position: relative;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.next-match-share .share-toggle-svg {
  width: 17px;
  height: 17px;
  display: block;
  color: inherit;
}

.next-match-share .share-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(102, 187, 106, 0.16));
  border: 1.5px solid rgba(22, 163, 74, 0.42);
  border-radius: 50%;
  color: #166534;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.12);
}

.next-match-share .share-toggle-btn:hover,
.next-match-share .share-toggle-btn.active {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.65);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.22);
}

.next-match-share .share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  max-width: min(92vw, 280px);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(76, 175, 80, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.next-match-share .share-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.next-match-share .share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  text-align: center;
}

.next-match-share .share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.next-match-share .share-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(76, 175, 80, 0.22);
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.06);
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.next-match-share .share-btn:hover {
  background: rgba(76, 175, 80, 0.14);
  border-color: rgba(76, 175, 80, 0.4);
}

.next-match-share .share-btn.copied {
  background: rgba(76, 175, 80, 0.22);
  border-color: rgba(22, 163, 74, 0.5);
}

.next-match-share .share-icon {
  font-size: 1.15rem;
  width: 1.5rem;
  text-align: center;
}

.next-match-share .share-text {
  flex: 1;
}

.next-match-share .share-facebook:hover {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.35);
}

.next-match-share .share-instagram:hover {
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.35);
}

.next-match-share .share-threads:hover,
.next-match-share .share-x:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
}

.next-match-share .share-copy:hover {
  background: rgba(76, 175, 80, 0.18);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
}

.title-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #16a34a;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

/* Team Description */
.team-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Button Styles */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  box-shadow: 0 14px 38px rgba(76, 175, 80, 0.26), 0 8px 22px rgba(15, 23, 42, 0.10);
}

.btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 200%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0;
  transition: opacity 0.2s ease, left 0.55s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  left: 120%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 55px rgba(76, 175, 80, 0.30), 0 14px 40px rgba(15, 23, 42, 0.14);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn:focus-visible {
  outline: 4px solid rgba(76, 175, 80, 0.22);
  outline-offset: 3px;
}

.button.success {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  box-shadow: 0 14px 38px rgba(76, 175, 80, 0.26), 0 8px 22px rgba(15, 23, 42, 0.10);
}

.button.success:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 55px rgba(76, 175, 80, 0.30), 0 14px 40px rgba(15, 23, 42, 0.14);
}

.button.success:active {
  transform: translateY(-1px) scale(0.99);
}

.button.success:focus-visible {
  outline: 4px solid rgba(76, 175, 80, 0.22);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.btn-outline {
  background: transparent;
  color: #4caf50;
  border-color: #4caf50;
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.16), 0 6px 16px rgba(15, 23, 42, 0.08);
}

.btn-outline:hover {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(76, 175, 80, 0.30), 0 14px 40px rgba(15, 23, 42, 0.14);
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Icon Images */
.btn-icon-img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

/* Contacts */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-role {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.contact-name {
  font-weight: 600;
  color: #374151;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #16a34a;
}

/* Instagram Widget */
.instagram-widget {
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.lightwidget-widget {
  border-radius: 0.5rem;
  position: relative;
  z-index: 10;
}

/* League Table */
.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.league-table th,
.league-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.league-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.league-table td {
  color: #6b7280;
}

.league-table tr:hover {
  background-color: #f9fafb;
}

.league-table tr.our-team {
  background-color: rgba(22, 163, 74, 0.05);
  font-weight: 600;
}

.league-table tr.our-team td {
  color: #166534;
}

.league-table .points {
  font-weight: 600;
  color: #374151;
}

/* Stažená tabulka PSMF (obsluha/aktualizuj_tabulku.php → tabulka_liga_cache.html) */
.league-table-card .table-container.league-table-embed {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
}

.league-table-card .league-table-embed table.league-table {
  min-width: 100%;
  table-layout: auto;
  font-size: clamp(0.68rem, 2.6vw, 0.78rem);
}

.league-table-card .league-table-embed table.league-table th,
.league-table-card .league-table-embed table.league-table td {
  padding: 0.18rem 0.12rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* Číselné sloupce: jeden řádek */
.league-table-card .league-table-embed table.league-table th:not(.lt-h-team):not(.lt-h-score),
.league-table-card .league-table-embed table.league-table td:not(:nth-child(2)) {
  white-space: nowrap;
}

/* Sloupec týmu: jeden řádek (žádné dělení „Par-ní kak-tus“) – šířku drží zkrácené hlavičky + horiz. scroll */
.league-table-card .league-table-embed table.league-table td:nth-child(2),
.league-table-card .league-table-embed table.league-table th.lt-h-team {
  white-space: nowrap;
  max-width: none;
  word-break: normal;
  hyphens: manual;
}

/* th.* — bez „thead“, PSMF někdy dá hlavičku jen v prvním <tr> */
.league-table-card .league-table-embed table.league-table th.league-th {
  text-transform: none;
  font-weight: 800;
  font-size: clamp(0.62rem, 2.4vw, 0.72rem);
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.league-table-card .league-table-embed table.league-table th.lt-h-rank {
  color: #374151 !important;
  background: #f3f4f6 !important;
}

.league-table-card .league-table-embed table.league-table th.lt-h-team {
  color: #374151 !important;
  background: #f3f4f6 !important;
}

.league-table-card .league-table-embed table.league-table th.lt-h-z {
  color: #374151 !important;
  background: #eef2f6 !important;
}

.league-table-card .league-table-embed table.league-table th.lt-h-win {
  color: #166534 !important;
  background: rgba(22, 163, 74, 0.2) !important;
}

.league-table-card .league-table-embed table.league-table th.lt-h-draw {
  color: #c2410c !important;
  background: rgba(251, 146, 60, 0.2) !important;
}

.league-table-card .league-table-embed table.league-table th.lt-h-loss {
  color: #b91c1c !important;
  background: rgba(248, 113, 113, 0.2) !important;
}

.league-table-card .league-table-embed table.league-table th.lt-h-score {
  color: #374151 !important;
  background: #eef2f6 !important;
}

.league-table-card .league-table-embed table.league-table th.lt-h-pts {
  color: #1e293b !important;
  background: #e8f5e9 !important;
}

.league-table-source {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
  text-align: right;
}

.league-table-source a {
  color: #166534;
  font-weight: 600;
  text-decoration: none;
}

.league-table-source a:hover {
  text-decoration: underline;
}

.league-table-last-update {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: #64748b;
  text-align: right;
}

.league-table-last-update time {
  font-weight: 600;
  color: #475569;
}

.league-table-card .league-table-embed tr.active-team-row,
.league-table-card .league-table-embed tr.my-team {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.22), rgba(22, 163, 74, 0.08));
  font-weight: 700;
  box-shadow: inset 4px 0 0 #4caf50;
}

.league-table-card .league-table-embed tr.active-team-row td,
.league-table-card .league-table-embed tr.my-team td {
  color: #14532d;
}

.league-table-card .league-table-embed tr.active-team-row:hover,
.league-table-card .league-table-embed tr.my-team:hover {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.28), rgba(22, 163, 74, 0.12));
}

.league-table-card .league-table-embed tr.active-team-row td:first-child,
.league-table-card .league-table-embed tr.my-team td:first-child {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(248, 250, 252, 0.98));
}

.league-table-card .league-table-embed table.league-table td:first-child,
.league-table-card .league-table-embed table.league-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.12);
}

.league-table-card .league-table-embed table.league-table th:first-child.lt-h-rank {
  background: #f3f4f6 !important;
  z-index: 2;
}

.league-table-card .league-table-embed a {
  color: #166534;
  font-weight: 600;
  text-decoration: none;
}

.league-table-card .league-table-embed a:hover {
  color: #15803d;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .league-table-card .league-table-embed table.league-table {
    font-size: 0.72rem;
  }

  .league-table-card .league-table-embed table.league-table th,
  .league-table-card .league-table-embed table.league-table td {
    padding: 0.14rem 0.08rem;
  }

  .league-table-card .league-table-embed table.league-table th.league-th {
    font-size: 0.62rem;
  }
}

/* Legenda ke zkratkám v tabulce */
.league-table-legend {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(76, 175, 80, 0.22);
  border-radius: 12px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.league-table-legend-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #1e293b;
  user-select: none;
}

.league-table-legend-summary:focus {
  outline: none;
}

.league-table-legend-summary:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

.league-table-legend-summary::-webkit-details-marker {
  display: none;
}

.league-table-legend-summary::marker {
  content: "";
}

.league-table-legend-title {
  letter-spacing: 0.02em;
}

.league-table-legend-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  box-shadow: 0 2px 8px rgba(45, 103, 55, 0.35);
  line-height: 1;
}

.league-table-legend[open] .league-table-legend-i {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.league-table-legend-content {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(76, 175, 80, 0.28);
}

.league-table-legend-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.league-table-legend-list li {
  margin: 0;
}

.league-table-legend-list strong {
  font-weight: 800;
}

.league-table-legend .lt-leg-poradi {
  color: #374151;
}

.league-table-legend .lt-leg-z {
  color: #475569;
}

.league-table-legend .lt-leg-win {
  color: #166534;
}

.league-table-legend .lt-leg-draw {
  color: #c2410c;
}

.league-table-legend .lt-leg-loss {
  color: #b91c1c;
}

.league-table-legend .lt-leg-pts {
  color: #1e293b;
}

/* Next Match */
.next-match {
  text-align: center;
}

.match-info {
  margin-bottom: 1.5rem;
}

.opponent {
  font-size: 1.125rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.5rem;
}

.kickoff-time {
  color: #6b7280;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.match-date {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.95rem;
}

.kickoff-label {
  color: #dc2626;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.kickoff-time-text {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.countdown-item {
  background: linear-gradient(135deg, #068000, #0a9d00, #10b981);
  color: white;
  padding: 1rem 0.75rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(6, 128, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: countdownItemFadeIn 0.6s ease-out backwards;
}

.countdown-item:nth-child(1) {
  animation-delay: 0.1s;
}

.countdown-item:nth-child(2) {
  animation-delay: 0.2s;
}

.countdown-item:nth-child(3) {
  animation-delay: 0.3s;
}

.countdown-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes countdownItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animated background gradient */
.countdown-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
  z-index: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.countdown-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(6, 128, 0, 0.5);
}

.countdown-item:active {
  transform: translateY(-2px) scale(1.02);
}

.countdown-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  display: inline-block;
}

.countdown-number.updating {
  animation: numberFlip 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes numberFlip {
  0% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotateX(90deg) scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  opacity: 0.95;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.countdown-finished {
  background: linear-gradient(135deg, #f44336, #ef5350, #e57373);
  color: white;
  padding: 1rem 0.75rem;
  border-radius: 25px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.countdown-finished:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(244, 67, 54, 0.4);
}

/* Venue Info */
.venue-info {
  margin-bottom: 1rem;
}

.venue-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.venue-icon {
  width: 0.85rem;
  height: 0.85rem;
  color: #16a34a;
}

.venue-address {
  color: #6b7280;
  font-size: 0.75rem;
  text-align: center;
}

/* Weather Info */
.weather-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(59, 130, 246, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.weather-icon {
  width: 3rem;
  height: 3rem;
}

.weather-text {
  font-weight: 500;
  color: #374151;
}

/* Map */
.map-container {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.08);
  animation: mapContainerFadeIn 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: #fff;
}

.map-container:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.map-container:active {
  transform: translateY(-2px);
}

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

.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45, 103, 55, 0.35), rgba(76, 175, 80, 0.20));
  background-size: auto;
  animation: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: none;
}

.map-container:hover::before {
  padding: 1px;
  box-shadow: none;
}

@keyframes borderGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Shine effect on hover */
.map-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s;
  z-index: 2;
  pointer-events: none;
  border-radius: 16px;
}

.map-container:hover::after {
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.venue-map {
  height: 12rem;
  width: 100%;
  border-radius: 13px;
  border: none;
  position: relative;
  z-index: 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.map-container:hover .venue-map {
  transform: none;
}

.venue-map .leaflet-container {
  border-radius: 13px;
  height: 100%;
  width: 100%;
  transition: filter 0.3s ease;
}

.map-container:hover .venue-map .leaflet-container {
  filter: none;
}

.venue-map .leaflet-control-container {
  border-radius: 13px;
}

/* Leaflet Popup - zmenšený */
.venue-map .leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0.3rem;
  font-size: 0.7rem;
  max-width: 160px;
}

.venue-map .leaflet-popup-content {
  margin: 0.3rem;
  line-height: 1.25;
}

.venue-map .leaflet-popup-content b {
  font-size: 0.25rem;
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.venue-map .leaflet-popup-content span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
}

.venue-map .leaflet-popup-content a {
  font-size: 0.6rem;
  color: #068000;
  text-decoration: underline;
}

.venue-map .leaflet-popup-tip {
  width: 8px;
  height: 8px;
}

.venue-map .leaflet-popup-close-button {
  font-size: 0.85rem;
  padding: 0.15rem 0.3rem;
  line-height: 1;
  width: 18px;
  height: 18px;
}

/* Leaflet Zoom Controls - zmenšené */
.venue-map .leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  overflow: hidden;
}

.venue-map .leaflet-control-zoom a {
  width: 28px;
  height: 28px;
  line-height: 28px;
  font-size: 18px;
  font-weight: 600;
  background: #fff;
  color: #068000;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.venue-map .leaflet-control-zoom a:hover {
  background: #068000;
  color: #fff;
  border-color: #068000;
}

.venue-map .leaflet-control-zoom-in {
  border-bottom: 1px solid #e5e7eb;
}

/* Fullscreen button */
.map-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: #fff;
  border: 2px solid #068000;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  color: #068000;
  font-size: 18px;
}

.map-fullscreen-btn:hover {
  background: #068000;
  color: #fff;
  border-color: #068000;
  transform: translateY(-1px);
}

.map-fullscreen-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .map-fullscreen-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: 8px;
    right: 8px;
    background: #068000;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
}

/* Fullscreen modal - přes celou stránku */
.map-fullscreen-modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: #000;
  animation: mapModalFadeIn 0.3s ease-out;
  margin: 0 !important;
  padding: 0 !important;
}

.map-fullscreen-modal.active {
  display: block !important;
}

@keyframes mapModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.map-fullscreen-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
}

.map-fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #068000;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #068000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.map-fullscreen-close:hover {
  background: #068000;
  color: #fff;
  transform: scale(1.1);
}

.map-fullscreen-close:active {
  transform: scale(0.95);
}

.map-fullscreen-map {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

@media (max-width: 768px) {
  .map-fullscreen-close {
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    font-size: 28px;
    background: #068000;
    color: #fff;
    border-color: #fff;
  }
}

/* Calendar */
.calendar-widget {
  border: 1px solid rgba(76, 175, 80, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  overflow: visible;
  margin-bottom: 1rem;
  position: relative;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(76, 175, 80, 0.16);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  color: #16a34a;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: rgba(76, 175, 80, 0.12);
}

.calendar-nav-btn:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.22);
  outline-offset: 2px;
}

.calendar-title {
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.02em;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(15, 23, 42, 0.03);
}

.calendar-weekday {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-weekday:last-child {
  border-right: none;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day,
.calendar-day-empty {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day:last-child {
  border-right: none;
}

.calendar-day:hover {
  background: rgba(76, 175, 80, 0.08);
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(76, 175, 80, 0.95);
  background: rgba(76, 175, 80, 0.08);
}

.calendar-day.has-match {
  background-color: rgba(22, 163, 74, 0.12);
  color: #166534;
  font-weight: 600;
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.95);
}

.calendar-day.has-match.past-match {
  background-color: #f3f4f6;
  color: #6b7280;
  box-shadow: inset 0 0 0 2px rgba(209, 213, 219, 0.95);
}

.calendar-day.has-birthday {
  background-color: #fef9c3;
  color: #ca8a04;
  font-weight: 600;
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.95);
}

.calendar-day.has-piskani {
  background-color: #fff3cd;
  color: #856404;
  font-weight: 600;
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 193, 7, 0.95);
}

.calendar-day.has-turnaj {
  background-color: #e3f2fd;
  color: #1565c0;
  font-weight: 600;
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(33, 150, 243, 0.95);
}

.calendar-day.has-akce-fotbal {
  background-color: #f3e5f5;
  color: #6a1b9a;
  font-weight: 600;
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(156, 39, 176, 0.95);
}

.calendar-day.has-match.has-birthday {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.1) 49%, rgba(254, 249, 195, 1) 51%);
}

.calendar-day.has-match.has-piskani {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.1) 49%, rgba(255, 243, 205, 1) 51%);
}

.calendar-day.has-birthday.has-piskani {
  background: linear-gradient(to bottom right, rgba(254, 249, 195, 1) 49%, rgba(255, 243, 205, 1) 51%);
}

.calendar-day.has-birthday.has-turnaj {
  background: linear-gradient(to bottom right, rgba(254, 249, 195, 1) 49%, rgba(227, 242, 253, 1) 51%);
}

.calendar-day.has-birthday.has-akce-fotbal {
  background: linear-gradient(to bottom right, rgba(254, 249, 195, 1) 49%, rgba(243, 229, 245, 1) 51%);
}

.calendar-day.has-piskani.has-turnaj {
  background: linear-gradient(to bottom right, rgba(255, 243, 205, 1) 49%, rgba(227, 242, 253, 1) 51%);
}

.calendar-day.has-piskani.has-akce-fotbal {
  background: linear-gradient(to bottom right, rgba(255, 243, 205, 1) 49%, rgba(243, 229, 245, 1) 51%);
}

.calendar-day.has-turnaj.has-akce-fotbal {
  background: linear-gradient(to bottom right, rgba(227, 242, 253, 1) 49%, rgba(243, 229, 245, 1) 51%);
}

.calendar-day.has-match.has-birthday.has-piskani {
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.1) 0%,
    rgba(22, 163, 74, 0.1) 33%,
    rgba(255, 243, 205, 1) 33%,
    rgba(255, 243, 205, 1) 66%,
    rgba(254, 249, 195, 1) 66%,
    rgba(254, 249, 195, 1) 100%
  );
}

.calendar-day.has-match:hover {
  background-color: rgba(22, 163, 74, 0.2);
}
.calendar-day.has-birthday:hover {
  background-color: #fef08a;
}
.calendar-day.has-piskani:hover {
  background-color: #ffe69c;
}

.calendar-day.has-turnaj:hover {
  background-color: #bbdefb;
}

.calendar-day.has-akce-fotbal:hover {
  background-color: #e1bee7;
}
.calendar-day.has-match.has-birthday:hover {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.2) 49%, rgba(254, 240, 138, 1) 51%);
}
.calendar-day.has-match.has-piskani:hover {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.2) 49%, rgba(255, 230, 156, 1) 51%);
}

.calendar-day.has-match.has-turnaj:hover {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.2) 49%, rgba(187, 222, 251, 1) 51%);
}

.calendar-day.has-match.has-akce-fotbal:hover {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.2) 49%, rgba(225, 190, 231, 1) 51%);
}
.calendar-day.has-birthday.has-piskani:hover {
  background: linear-gradient(to bottom right, rgba(254, 240, 138, 1) 49%, rgba(255, 230, 156, 1) 51%);
}

.calendar-day.has-birthday.has-turnaj:hover {
  background: linear-gradient(to bottom right, rgba(254, 240, 138, 1) 49%, rgba(187, 222, 251, 1) 51%);
}

.calendar-day.has-birthday.has-akce-fotbal:hover {
  background: linear-gradient(to bottom right, rgba(254, 240, 138, 1) 49%, rgba(225, 190, 231, 1) 51%);
}
.calendar-day.has-match.has-birthday.has-piskani:hover {
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.2) 0%,
    rgba(22, 163, 74, 0.2) 33%,
    rgba(255, 230, 156, 1) 33%,
    rgba(255, 230, 156, 1) 66%,
    rgba(254, 240, 138, 1) 66%,
    rgba(254, 240, 138, 1) 100%
  );
}

.calendar-day.selected {
  box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.95), 0 10px 22px rgba(15, 23, 42, 0.10);
}

.calendar-day:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.22);
  outline-offset: -3px;
}
.calendar-day.has-birthday.selected {
  background-color: #fde047;
  box-shadow: inset 0 0 0 2px #facc15;
}
.calendar-day.has-piskani.selected {
  background-color: #ffd54f;
  box-shadow: inset 0 0 0 2px #ffc107;
}

.calendar-day.has-turnaj.selected {
  background-color: #90caf9;
  box-shadow: inset 0 0 0 2px #2196f3;
}

.calendar-day.has-akce-fotbal.selected {
  background-color: #ce93d8;
  box-shadow: inset 0 0 0 2px #9c27b0;
}
.calendar-day.has-match.has-birthday.selected {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.3) 49%, rgba(253, 224, 71, 1) 51%);
  box-shadow: inset 0 0 0 2px #f59e0b;
}
.calendar-day.has-match.has-piskani.selected {
  background: linear-gradient(to bottom right, rgba(22, 163, 74, 0.3) 49%, rgba(255, 213, 79, 1) 51%);
  box-shadow: inset 0 0 0 2px #ffc107;
}
.calendar-day.has-birthday.has-piskani.selected {
  background: linear-gradient(to bottom right, rgba(253, 224, 71, 1) 49%, rgba(255, 213, 79, 1) 51%);
  box-shadow: inset 0 0 0 2px #ffc107;
}
.calendar-day.has-match.has-birthday.has-piskani.selected {
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.3) 0%,
    rgba(22, 163, 74, 0.3) 33%,
    rgba(255, 213, 79, 1) 33%,
    rgba(255, 213, 79, 1) 66%,
    rgba(253, 224, 71, 1) 66%,
    rgba(253, 224, 71, 1) 100%
  );
  box-shadow: inset 0 0 0 2px #ffc107;
}

.event-icons {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  gap: 2px;
}

.event-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-icon-piskani svg {
  width: 14px;
  height: 14px;
  fill: #1e40af;
}

/* Info Container Styles */
.match-info-container {
  position: relative;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(76, 175, 80, 0.14);
  border-radius: 16px;
  font-size: 0.75rem;
  color: #374151;
  line-height: 1.3;
  display: none;
  max-height: none;
  overflow-y: visible;
}

.match-info-container.active {
  display: block;
}

 .match-info-container .day-info-section {
   position: relative;
   padding: 0.6rem 0.75rem;
   border-radius: 14px;
   background: rgba(255, 255, 255, 0.92);
   border: 1px solid rgba(15, 23, 42, 0.08);
 }

 .match-info-container .day-info-section + .day-info-section {
   margin-top: 0.5rem;
 }

 .match-info-container .day-info-section::before {
   content: "";
   position: absolute;
   left: 0.5rem;
   top: 0.6rem;
   bottom: 0.6rem;
   width: 3px;
   border-radius: 999px;
   background: rgba(76, 175, 80, 0.5);
 }

 .match-info-container .day-info-section h4 {
   margin: 0 0 0.35rem;
   padding: 0;
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.02em;
 }

 .match-info-container .day-info-section .match-detail {
   margin-bottom: 0.35rem;
   padding-bottom: 0.35rem;
   border-bottom: 1px dashed rgba(15, 23, 42, 0.10);
 }

 .match-info-container .day-info-section .match-detail:last-child {
   margin-bottom: 0;
   padding-bottom: 0;
   border-bottom: none;
 }

 .match-info-container .day-info-section .match-opponent {
   font-weight: 750;
   color: rgba(15, 23, 42, 0.82);
 }

 .match-info-container .day-info-section .match-venue,
 .match-info-container .day-info-section .match-time {
   color: rgba(15, 23, 42, 0.60);
   font-size: 0.82rem;
 }

 .match-info-container .day-info-section .match-result {
   margin-top: 0.1rem;
   color: rgba(45, 103, 55, 0.88);
   font-weight: 700;
 }

 .match-info-container .day-info-section--matches {
   background: linear-gradient(135deg, rgba(76, 175, 80, 0.10), rgba(255, 255, 255, 0.92));
   border-color: rgba(76, 175, 80, 0.18);
 }

 .match-info-container .day-info-section--matches::before {
   background: rgba(76, 175, 80, 0.75);
 }

 .match-info-container .day-info-section--ref {
   background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(255, 255, 255, 0.92));
   border-color: rgba(59, 130, 246, 0.18);
 }

 .match-info-container .day-info-section--ref::before {
   background: rgba(59, 130, 246, 0.70);
 }

 .match-info-container .day-info-section--tournament {
   background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.92));
   border-color: rgba(245, 158, 11, 0.20);
 }

 .match-info-container .day-info-section--tournament::before {
   background: rgba(245, 158, 11, 0.80);
 }

 .match-info-container .day-info-section--friendly {
   background: linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(255, 255, 255, 0.92));
   border-color: rgba(20, 184, 166, 0.18);
 }

 .match-info-container .day-info-section--friendly::before {
   background: rgba(20, 184, 166, 0.75);
 }

 .match-info-container .day-info-section--birthday {
   background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(255, 255, 255, 0.92));
   border-color: rgba(236, 72, 153, 0.18);
 }

 .match-info-container .day-info-section--birthday::before {
   background: rgba(236, 72, 153, 0.75);
 }
.match-info-container > h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #166534;
  padding-right: 1.5rem;
  font-size: 0.8125rem;
 }
 .match-info-container > .match-detail {
  margin-bottom: 0.375rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #e5e7eb;
 }
 .match-info-container > .match-detail:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
 }
 .match-info-container > .match-detail .match-opponent {
  font-weight: 600;
 }
 .match-info-container > .match-detail .match-venue {
  color: #6b7280;
 }
 .match-info-container > .match-detail .match-time {
  color: #6b7280;
  font-size: 0.8125rem;
 }
.match-info-container .info-separator {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}
.venue-link {
  color: #1e40af;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s ease;
}
.venue-link:hover {
  color: #1e3a8a;
  text-decoration: none;
}
.close-match-info {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f44336, #ef5350, #e57373);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-match-info:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Stats Info */
.stats-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 0.75rem;
}

.stat-item {
  font-size: 0.86rem;
  color: rgba(15, 23, 42, 0.66);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

 .stat-item {
   font-weight: 600;
 }

.stat-item:hover {
  box-shadow: none;
  transform: none;
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 750;
  color: rgba(45, 103, 55, 0.85);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  line-height: 1;
}

/* Footer */
.modern-footer {
  background-color: #1f2937;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-content {
    gap: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Použití display: contents pro rozpuštění kontejnerů na mobilu */
  .grid-column {
    display: contents;
  }

  /* Přeuspořádání karet pomocí order - zleva doprava místo shora dolů */
  .grid-column:nth-child(1) .card:nth-child(1) {
    order: 1;
  } /* O týmu */
  .grid-column:nth-child(2) .card:nth-child(1) {
    order: 2;
  } /* Následující zápas */
  .grid-column:nth-child(3) .card:nth-child(1) {
    order: 3;
  } /* Průběžná tabulka týmů */

  .grid-column:nth-child(1) .card:nth-child(2) {
    order: 4;
  } /* Důležité kontakty */
  .grid-column:nth-child(2) .card:nth-child(2) {
    order: 5;
  } /* Účast na zápas */
  .grid-column:nth-child(3) .card:nth-child(2) {
    order: 6;
  } /* Sledujte nás na Instagramu */

  .grid-column:nth-child(1) .card:nth-child(3) {
    order: 7;
  } /* Týmový kalendář */

  .grid-column:nth-child(3) .card:nth-child(3) {
    order: 8;
  } /* Novinky – až pod Instagramem */

  .main-container {
    padding: 2rem 1rem;
  }
  .countdown {
    gap: 0.5rem;
  }
  .countdown-item {
    padding: 0.75rem 0.5rem;
    border-radius: 20px;
  }
  .countdown-number {
    font-size: 1.25rem;
  }
  .countdown-label {
    font-size: 0.625rem;
  }
  .contact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .venue-map {
    height: 12rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  /* Logo responsive */
  .hero-logo {
    right: 1rem;
    transform: translateY(-50%) rotate(-15deg);
  }
  .hero-logo-img {
    max-width: 250px;
  }
  .hero-motto-box {
    left: 1rem;
  }
  .hero-motto-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
  }
  .hero-section {
    padding: 2rem 0;
  }
  .main-container {
    padding: 1.5rem 0.75rem;
  }
  .card-header,
  .card-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .countdown-number {
    font-size: 1rem;
  }
  .countdown-label {
    font-size: 0.5rem;
  }

  /* Na velmi malých obrazovkách jeden sloupec */
  .content-grid {
    flex-direction: column;
  }
  .grid-column {
    flex: 1 1 100%;
  }

  /* Logo na velmi malých obrazovkách */
  .hero-logo {
    right: 0.5rem;
    transform: translateY(-50%) rotate(-15deg);
    display: none; /* Skryjeme logo na velmi malých obrazovkách, aby nerušilo */
  }
  .hero-logo-img {
    max-width: 150px;
  }
  .hero-motto-box {
    display: none; /* Skryjeme na velmi malých obrazovkách */
  }
}

/* NOVÉ STYLY PRO iCAL DROPDOWN Z PORTÁLU */
.ical-subscribe-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ical-dropdown-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 350px;
}

.ical-main-button {
  width: 100%;
}

.ical-options-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
  margin-top: 0.5rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ical-dropdown-container.active .ical-options-list {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ical-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: #2d3748;
  transition: background-color 0.2s ease;
}

.ical-option:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.ical-option:hover {
  background-color: #f8f9fa;
}

.ical-option img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ical-option span {
  font-weight: 500;
}

/* --- ZMĚNA ZDE: NOVÉ STYLY PRO KARTU S ÚČASTÍ --- */
.attendance-category:not(:last-child) {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.attendance-count {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.attendance-count .count-number {
  font-weight: bold;
}

.players-list {
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Barevné odlišení jmen */
.players-list.going {
  color: #16a34a; /* Zelená */
}

.players-list.not-going {
  color: #ef4444; /* Červená */
}

.players-list.maybe {
  color: #f97316; /* Oranžová */
}

.players-list.no-response {
  color: #6b7280; /* Šedá */
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  z-index: 1001;
  animation: slideUpIn 0.5s ease-out;
  max-width: 400px;
  margin: 0 auto;
}

.pwa-install-content {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  gap: 0.75rem;
  position: relative;
}

.pwa-install-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pwa-install-title {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.pwa-install-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  line-height: 1.2;
}

.pwa-install-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.pwa-install-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.pwa-install-btn-icon {
  font-size: 0.9rem;
}

.pwa-install-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

@keyframes slideUpIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* PWA Install Banner - Mobile Responsive */
@media (max-width: 768px) {
  .pwa-install-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    max-width: none;
  }

  .pwa-install-content {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .pwa-install-title {
    font-size: 0.85rem;
  }

  .pwa-install-subtitle {
    font-size: 0.7rem;
  }

  .pwa-install-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Rozbalovací tlačítko pro kontakty */
.btn-contacts {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.28);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-contacts:hover {
  background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 45px rgba(76, 175, 80, 0.34);
}

.btn-contacts .contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  stroke-width: 2.5px;
}

.btn-contacts .expand-icon {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.btn-contacts.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Rozbalovací obsah s kontakty */
.contacts-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
  opacity: 0;
  transform: translateY(-10px);
}

.contacts-expandable.expanded {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 1rem;
}

.contacts-expandable .contacts-list {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(76, 175, 80, 0.16);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
}

.contacts-expandable .contact-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 0.75rem;
}

.contacts-expandable .contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contacts-expandable .contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contacts-expandable .contact-role {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.contacts-expandable .contact-name {
  font-weight: 600;
  color: #166534;
}

.contacts-expandable .contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contacts-expandable .contact-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.contacts-expandable .contact-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #16a34a;
}

.contacts-expandable .no-data {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 1rem;
}

/* Sloučená karta pro zápas a účast */
.card-merged {
  position: relative;
}

/* Vizuální oddělení mezi mapou a účastí */
.section-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  position: relative;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e5e7eb, #d1d5db, #e5e7eb, transparent);
  position: relative;
}

.divider-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4caf50, #66bb6a, #4caf50, transparent);
  transform: translateY(-50%);
}

.divider-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(102, 187, 106, 0.1));
  border-radius: 25px;
  border: 2px solid rgba(76, 175, 80, 0.2);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
  position: relative;
  z-index: 2;
}

.divider-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #16a34a;
}

.divider-text {
  font-weight: 600;
  color: #166534;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sekce účasti na zápas */
.attendance-section {
  margin-top: 1rem;
  padding-top: 1rem;
}

.attendance-section .attendance-category:not(:last-child) {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.attendance-section .attendance-count {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.attendance-section .attendance-count .count-number {
  font-weight: bold;
}

.attendance-section .players-list {
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Portal Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Make the Portal area feel separated and premium */
.nav-links-desktop .nav-dropdown {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(15, 23, 42, 0.10);
}

.nav-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 55px rgba(76, 175, 80, 0.26);
  transition: all 0.3s ease;
}

.nav-dropdown .dropdown-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-dropdown .dropdown-toggle:focus-visible {
  outline: 4px solid rgba(76, 175, 80, 0.22);
  outline-offset: 3px;
}

.nav-dropdown .dropdown-toggle:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32, #4caf50);
  transform: translateY(-2px);
  box-shadow: 0 20px 55px rgba(76, 175, 80, 0.30);
  text-decoration: none;
  color: white;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-dropdown .dropdown-toggle:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  padding: 0.5rem;
  min-width: 200px;
  z-index: 100; /* Corrected from z0 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, 0.18);
}

.dropdown-menu::before {
  content: "Portál";
  display: block;
  padding: 0.5rem 0.75rem;
  margin: 0.1rem 0.2rem 0.35rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  background: rgba(15, 23, 42, 0.04);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

 .nav-dropdown:hover .dropdown-menu,
 .nav-dropdown:focus-within .dropdown-menu {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
 }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 18px;
  margin: 0.125rem 0;
}

.dropdown-item .dropdown-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.dropdown-item:first-child {
  margin-top: 0;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #1f2937;
  text-decoration: none;
  transform: translateX(3px);
}

/* Distinct accents for Player vs Admin */
.dropdown-item[href="portal.php"] {
  background: rgba(76, 175, 80, 0.10);
}

.dropdown-item[href="portal.php"] .dropdown-icon {
  background: rgba(76, 175, 80, 0.18);
}

.dropdown-item[href="portal-admin.php"] {
  background: rgba(15, 23, 42, 0.04);
}

.dropdown-item[href="portal-admin.php"] .dropdown-icon {
  background: rgba(15, 23, 42, 0.08);
}

.dropdown-item[href="portal-admin.php"]:hover {
  background: rgba(15, 23, 42, 0.06);
}

.dropdown-item:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.22);
  outline-offset: 2px;
}

.dropdown-icon {
  font-size: 1rem;
}

/* Mobile dropdown styles */
.nav-dropdown-mobile {
  position: relative;
}

.nav-dropdown-mobile .dropdown-toggle-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(76, 175, 80, 0.24);
  transition: all 0.3s ease;
}

.nav-dropdown-mobile .dropdown-toggle-mobile:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32, #4caf50);
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(76, 175, 80, 0.30);
}

.dropdown-menu-mobile {
  background: #f8f9fa;
  border-radius: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dropdown-menu-mobile.show {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
}

.dropdown-item-mobile {
  display: block;
  padding: 0.75rem 2rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.dropdown-item-mobile:last-child {
  border-bottom: none;
}

.dropdown-item-mobile:hover {
  background-color: #e5e7eb;
  color: #1f2937;
  text-decoration: none;
}
.attendance-section .players-list.going {
  color: #16a34a; /* Zelená */
}

.attendance-section .players-list.not-going {
  color: #ef4444; /* Červená */
}

.attendance-section .players-list.maybe {
  color: #f97316; /* Oranžová */
}

.attendance-section .players-list.no-response {
  color: #6b7280; /* Šedá */
}

.attendance-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.attendance-note-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.75rem 0 0.5rem 0;
}

.attendance-note-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}

.attendance-note-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.attendance-note-label {
  font-style: italic;
  color: #6b7280;
}

.attendance-note-value {
  font-weight: 700;
  color: #4caf50;
  font-style: normal;
}

.attendance-note-detail {
  color: #9ca3af;
  font-size: 0.7rem;
  font-style: italic;
}

.attendance-note-separator {
  color: #d1d5db;
  font-size: 0.6rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .attendance-note-content {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
  
  .attendance-note-separator {
    display: none;
  }
  
  .attendance-note-item {
    width: 100%;
  }
}

/* Responsive úpravy pro sloučenou kartu */
@media (max-width: 768px) {
  .section-divider {
    margin: 1.5rem 0;
  }

  .divider-content {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .divider-text {
    font-size: 0.8rem;
  }

  .divider-icon {
    width: 1rem;
    height: 1rem;
  }
}

/* Blok Novinky pod Instagramem */
.novinky-preview-card .card-content .no-data {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}
.novinky-preview-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}
.novinky-preview-item {
  border-bottom: 1px solid rgba(76, 175, 80, 0.12);
}
.novinky-preview-item:last-child {
  border-bottom: none;
}
.novinky-preview-link {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, color 0.2s;
}
.novinky-preview-link:hover {
  background: rgba(76, 175, 80, 0.06);
  color: #166534;
}
.novinky-preview-title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.novinky-preview-title {
  font-weight: 700;
  color: #1a3a1a;
  font-size: 1rem;
}
.novinky-preview-date {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 500;
}
.novinky-preview-link:hover .novinky-preview-title {
  color: #166534;
}
.novinky-preview-text {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}
.novinky-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.novinky-preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  color: #fff;
}
