/* =====================================================
   COPASEDEJE.CZ DESIGN SYSTEM
   ===================================================== */

/* Fonts:
   Barlow Condensed - nadpisy
   Inter - texty
*/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  /* Barvy */
  --primary: #E31E24;
  --primary-hover: #C9191F;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-dark: #11151A;
  --surface-light: #e7e7e7;
  --bg-dark: #080A0D;
  --bg-inverted: #080A0D;
  --surface-inverted: #11151A;
  --border: #E5E7EB;
  --text: #111827;
  --text-muted: #6B7280;
  --text-inverted: #FFFFFF;
  --text-muted-inverted: #AAB2BD;

  /* Sporty */
  --football: #51A333;
  --basketball: #F85113;
  --hockey: #2D8CFF;
  --volleyball: #F4C542;
  --motorsport: #E31E24;
  --culture: #7C3AED;

  /* Layout */
  --container: 1440px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow:
      0 2px 6px rgba(0,0,0,.06),
      0 8px 24px rgba(0,0,0,.08);
}

/* =========================
   Dark mode
   ========================= */
html[data-theme="dark"] {
  --bg: #080A0D;
  --bg-dark: #080A0D;
  --surface: #11151A;
  --surface-dark: #181D24;
  --surface-light: #e7e7e7;
  --bg-inverted: #F7F8FA;
  --surface-inverted: #FFFFFF;
  --border: #252B33;
  --text: #dddddd;
  --text-muted: #AAB2BD;
  --text-inverted: #111827;
  --text-muted-inverted: #6B7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}
.container {
  width: min(
      calc(100% - 40px),
      var(--container)
  );
  margin-inline: auto;
}
h1, h2, h3, h4 {
  margin: 0 0 .5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: 1.75rem;
}
p {
  margin: 0 0 1rem;
}
.cursor {
  cursor: pointer;
}
.font-weight-500 {
  font-weight: 500;
}
.font-weight-600 {
  font-weight: 600;
}
.text-muted {
  color: var(--text-muted);
}
.text-text {
  color: var(--text);
}
.text-primary {
  color: var(--primary) !important;
}
a {
  color: inherit;
  text-decoration: none;
  transition: .2s;
}
a:hover {
  color: var(--primary);
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: .25s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
}
header nav, main section > div, footer > div {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
header {
  background-color: var(--surface);
}
header nav h1 {
  color: var(--text);
}
header nav h1 span {
  color: var(--primary);
}
header nav h1 a:hover span {
  color: var(--primary);
}
.nav-link {
  text-transform: uppercase;
  font-weight: 500;
}
.navbar-nav .nav-link {
  color: var(--text-muted);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
  color: var(--primary-hover);
}
html .navbar-toggler {
  color: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.31);
}
html .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
html[data-theme="dark"] .navbar-toggler {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.31);
}
html[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.theme-toggle {
  display: inline-flex;
  cursor: pointer;
}
.theme-toggle input {
  display: none;
}
.theme-toggle__track {
  width: 40px;
  height: 25px;
  padding: 3px;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--surface);
  transition: 0.25s ease;
}
.theme-toggle__thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: 0.25s ease;
}
.theme-toggle input:checked + .theme-toggle__track {
  background: #2B2F36;
  border-color: #fff;
}
.theme-toggle input:checked + .theme-toggle__track .theme-toggle__thumb {
  transform: translateX(14px);
  background: #fff;
}


#obsah {
  min-height: 90vh;
}
.hero {
  position: relative;
  min-height: 65vh;
  color: white;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(8,10,13,.90) 0%,
      rgba(8,10,13,.70) 35%,
      rgba(8,10,13,.20) 70%,
      rgba(8,10,13,.00) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
}
.section {
  padding: 40px 0;
}
.section-surface {
  background: var(--surface);
  color: var(--text);
}
.section-dark {
  background: var(--surface-dark);
  color: white;
}
.section-highlight {
  /*background: linear-gradient(
      180deg,
      #ffffff,
      #f5f8fb
  );*/
  background-color: var(--surface-light);
  color: var(--surface);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
}
.card-body {
  padding: 1.5rem;
}
/* =========================
   Co se děje tento týden
   ========================= */
.week-section {
  padding: 80px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  color: rgb(17, 21, 26);
}
.section-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 2rem;
  font-family: "Barlow Condensed", sans-serif;
}
.latest-galleries .section-header h2 {
  color: var(--text);
}
.week-link {
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.day-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  /*min-height: 470px;*/
  background: white;
  box-shadow: 0px 0px 10px 0px rgba(50,50,50,0.2);
  color: black;
}
.day-card img {
  /*position: absolute;*/
  inset: 0;
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
}
.day-overlay {
  position: absolute;
  inset: 0;
  /*background: radial-gradient( 100% 80% at 50% 42%, rgba(0,0,0,.05) 0%, rgb(0, 0, 0) 72% );*/
  background: radial-gradient( 100% 80% at 50% 42%, rgba(0,0,0,.05) 0%, rgba(0, 0, 0, 0.6) 72% );
}
.day-content {
  position: relative;
  z-index: 2;
  /*height: 100%;*/
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.day-label {
  position: absolute;
  top: 15%;
  align-self: flex-start;
  padding: 8px 14px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.8;
}
.day-label-fotbal {
  background: var(--football);
}
.day-label-basketbal {
  background: var(--basketball);
}
.day-label-hokej {
  background: var(--hockey);
}
.day-label-purple {
  background: var(--culture);
}
.day-count {
  position: absolute;
  top: 20%;
  left: 24px;
  margin-top: 30px;
  color: white;
  line-height: 1;
  display: none;
}
.day-count span {
  display: block;
  font-size: 5rem;
  font-weight: 800;
  font-family: "Barlow Condensed", sans-serif;
}
.day-count {
  font-size: 1.5rem;
}
.day-typ {
  display: flex;
  align-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
}
.day-events {
  list-style: none;
  padding: 0;
  margin: 0;
}
.day-events li {
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: black;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: "Barlow Condensed", sans-serif;
}
.day-events li:last-child {
  margin-bottom: 0;
}
.day-events span {
  opacity: .8;
}
.day-content img {
  height: 16px;
  width: 16px;
}
.day-more {
  font-family: "Barlow Condensed", sans-serif;
  /*margin-top: 12px;*/
  font-weight: 400;
}
.day-button {
  margin-top: 20px;
  display: inline;
  justify-content: center;
  padding: 6px 20px;
  border-radius: 8px;
  font-weight: 400;
  text-transform: uppercase;
  color: white;
  width: fit-content;
  background: var(--culture);
}
a.day-button:hover {
  color: wheat;
}
.day-button-fotbal {
  background: var(--football);
}
.day-button-basketbal {
  background: var(--basketball);
}
.day-button-hokej {
  background: var(--hockey);
}
#tento_tyden {
  min-height: 60vh;
}
#fotbal_den, #fotbal_soutez, #fotbal_soutez_tabulka/*, #fotbal_soutez_tabulka .table*/ {
  color: var(--text);
  min-height: 90vh;
}
.fotbal_detail_tabulka_item:nth-child(2n), #fotbal_tabulka tr:nth-child(2n), #fotbal_tabulka th {
  /*background-color: var(--bg);*/
  background-color: var(--surface-light);
}
.fotbal_detail_tabulka_item {
  padding-top: 12px;
  padding-bottom: 12px;
  margin-left: -5px;
  margin-right: -5px;
  font-size: 20px;
  font-weight: 300;
  font-family: "Barlow Condensed", sans-serif;
}
.fotbal_tabulka_item {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 20px;
  font-weight: 400;
  font-family: "Barlow Condensed", sans-serif;
}
#kalendar_div {
  min-height: 330px;
}
#kalendar_div img {
  height: 50px;
  width: 50px;
}
.kalendar_den_fotbal {
  background-color: var(--football);
  color: #ffffff;
}
.kalendar_den_hokej {
  background-color: var(--hockey);
  color: #ffffff;
}
.kalendar_den_basketbal {
  background-color: var(--basketball);
  color: #ffffff;
}
.kalendar_den_vice {
  background-color: #17A2B8;
  color: #ffffff;
}
.kalendar_den_fotbal a {
  color: white;
}
.kalendar_den_sport {
  background-color: #366746;
  color: white;
}
.latest-galleries {
}
.gallery-slider {
  position: relative;
}
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-card {
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: #11151A;
}
.gallery-card a {
  position: relative;
  display: block;
  color: #fff;
}
.gallery-card img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-card:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(
      to top,
      rgba(0,0,0,.9),
      rgba(0,0,0,.15),
      rgba(0,0,0,0)
  );
}
.gallery-overlay span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}
.gallery-overlay h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  cursor: pointer;
  transform: translateY(-50%);
}
.gallery-arrow-left {
  left: -23px;
}
.gallery-arrow-right {
  right: -23px;
}
.gallery-arrow:disabled {
  opacity: .35;
  cursor: default;
}

/* tablet */
@media (max-width: 1100px) {
  .gallery-track {
    grid-auto-columns: calc((100% - 48px) / 3);
  }
}

/* mobil */
@media (max-width: 768px) {
  .gallery-track {
    grid-auto-columns: 78%;
    gap: 18px;
  }
  .gallery-arrow {
    display: none;
  }
}

@media (max-width: 1400px) {
  .week-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #navbarMenu {
    position: absolute;
    background: var(--bg);
    top: 60px;
    width: 100%;
    left: 0;
    z-index: 10;
    text-align: right;
  }
}
@media (max-width: 768px) {
  .week-grid {
    grid-template-columns: 1fr;
  }
}


.gallery-grid {
  display: grid;
  gap: 24px;
  grid-template-columns:
    repeat(auto-fill,minmax(320px,1fr));
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.club-grid {
  display: grid;
  gap: 24px;
  grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}
.text-fotbal {
  color: var(--football);
}
.text-basketbal {
  color: var(--basketball);
}
.text-hokej {
  color: var(--hockey);
}
.text-volejbal {
  color: var(--volleyball);
}
.text-motorsport {
  color: var(--motorsport);
}
.text-kultura {
  color: var(--culture);
}
footer {
  background: var(--bg-dark);
  color: white;
  font-weight: 300;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

@media (min-width: 1600px) {
  header nav, main section > div, footer > div {
    max-width: 1540px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
  .gallery-grid,
  .club-grid {
    grid-template-columns: 1fr;
  }
}