/*
 * RBK liga – úpravy šablony Sportland (Zemez) pro hokejovou ligu.
 * Vlastní styly jsou záměrně v samostatném souboru, aby šla šablona aktualizovat.
 */

/* ---------- Hlavička ---------- */
.rbk-panel-text {
  margin: 0;
  font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f1e557;
}

.rd-navbar-static .rd-navbar-main-top .rd-navbar-main-container {
  justify-content: space-between;
}

.rbk-brand-text {
  flex: 1 1 0;
  font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}

.rbk-brand-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .05em;
}

.rbk-brand-text-right {
  text-align: right;
}

.rbk-brand-slogan {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
}

.rd-navbar-classic.rd-navbar-static .rbk-brand-text {
  flex: none;
  order: 0;
  width: calc(50% - 200px / 2);
}

.rd-navbar-classic.rd-navbar-static .rbk-brand-text-right {
  order: 2;
}

.rd-navbar-fixed .rbk-brand-text {
  display: none;
}

.rd-navbar-brand img.brand-logo {
  width: auto;
  max-height: 116px;
}

.rd-navbar-fixed .rd-navbar-brand img.brand-logo {
  max-height: 46px;
}

.rd-navbar-static.rd-navbar--is-stuck .rd-navbar-brand img.brand-logo {
  max-height: 60px;
}

/* ---------- Pruh archivu ---------- */
.rbk-archive-bar {
  padding: 10px 0;
  background: #f1e557;
  color: #151515;
  font-size: 14px;
  text-align: center;
}

.rbk-archive-bar a {
  margin-left: 8px;
  font-weight: 600;
  color: #151515;
  text-decoration: underline;
}

/* ---------- Úvodní slider ---------- */
.swiper-classic .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 33, .35) 0%, rgba(8, 16, 33, .65) 100%);
  pointer-events: none;
}

.swiper-classic .swiper-slide .container {
  position: relative;
  z-index: 1;
}

.swiper-slide-caption h1,
.swiper-slide-caption h2 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

/* ---------- Záhlaví podstránek ---------- */
.rbk-page-hero {
  position: relative;
  padding: 50px 0 45px;
  text-align: center;
  background: #081021 url("/img/slides/header2.jpg") center 35% / cover no-repeat;
}

.rbk-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 33, .72);
}

.rbk-page-hero .container {
  position: relative;
}

.rbk-page-hero-title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .rbk-page-hero {
    padding: 80px 0 70px;
  }
  .rbk-page-hero-title {
    font-size: 44px;
  }
}

/* ---------- Odznaky týmů (iniciály místo log) ---------- */
.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25);
  vertical-align: middle;
}

.team-badge-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}

.team-badge-lg {
  width: 84px;
  height: 84px;
  font-size: 30px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .25);
}

/* ---------- Tabulky ---------- */
.table-custom-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rbk-table td {
  height: 56px;
}

.rbk-table .team-name,
.rbk-table-compact .team-name {
  text-transform: none;
  letter-spacing: .02em;
}

.rbk-table-compact td {
  height: 52px;
}

.rbk-table-compact td:nth-child(n + 3) {
  width: 12%;
}

.table-standings .team-inline {
  text-align: left;
}

.table-standings .team-figure {
  min-width: 34px;
}

.rbk-table-matches th,
.rbk-table-matches td {
  white-space: nowrap;
}

.rbk-table-matches td {
  padding-left: 12px;
  padding-right: 12px;
  text-transform: none;
}

.rbk-table-matches td small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #868e96;
  text-transform: lowercase;
}

.rbk-team-cell {
  text-align: left;
}

.rbk-team-cell .team-badge {
  margin-right: 8px;
}

.rbk-winner {
  font-weight: 600 !important;
}

.rbk-score {
  font-size: 18px;
  font-weight: 600 !important;
}

.rbk-vs {
  color: #868e96;
  font-size: 12px;
}

.rbk-past {
  opacity: .55;
}

.rbk-note {
  margin-top: 12px;
  font-size: 13px;
  color: #868e96;
}

/* ---------- Výsledky v postranním panelu ---------- */
.rbk-results-list > * + * {
  margin-top: 16px;
}

.game-result-team-figure .team-badge {
  margin: 0;
}

/* ---------- Novinky a články ---------- */
.post-future.rbk-post {
  max-width: none;
}

.rbk-post .post-future-title {
  text-transform: none;
}

.rbk-post-classic-noimg .post-classic-main {
  padding-left: 0;
}

.rbk-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #ddd;
}

@media (min-width: 768px) {
  .rbk-article {
    padding: 45px 55px;
  }
}

.rbk-article-date {
  margin-bottom: 20px;
}

.rbk-article-lead {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1.1em;
  font-weight: 500;
}

.rbk-back {
  margin-top: 35px;
}

/* Obsah vložený editorem */
.rbk-content {
  overflow-wrap: break-word;
}

.rbk-content img {
  max-width: 100%;
  height: auto;
}

.rbk-content iframe {
  max-width: 100%;
}

.rbk-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.rbk-content table td,
.rbk-content table th {
  padding: 8px 12px;
  border: 1px solid #ddd;
}

.rbk-content a {
  color: #35ad79;
  text-decoration: underline;
}

.rbk-content ul,
.rbk-content ol {
  margin: 15px 0;
  padding-left: 22px;
}

.rbk-content ul li {
  list-style: disc;
}

.rbk-content ol li {
  list-style: decimal;
}

.rbk-content * + p,
.rbk-content p + * {
  margin-top: 15px;
}

.rbk-content h1, .rbk-content h2, .rbk-content h3,
.rbk-content h4, .rbk-content h5, .rbk-content h6 {
  margin-top: 28px;
  margin-bottom: 10px;
}

/* ---------- Karty týmů ---------- */
.rbk-team-card {
  height: 100%;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid #ddd;
  transition: box-shadow .2s ease;
}

.rbk-team-card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

.rbk-team-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rbk-team-card-head .team-badge {
  width: 60px;
  height: 60px;
  font-size: 22px;
}

.rbk-team-card-head h4 {
  margin: 0;
  font-size: 20px;
}

.rbk-team-card-info {
  margin-top: 18px;
  font-size: 14px;
}

.rbk-team-card-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}

.rbk-team-card-info li + li {
  margin-top: 8px;
}

.rbk-team-card-info .icon {
  color: #35ad79;
  font-size: 18px;
}

/* ---------- Stránkování ---------- */
.rbk-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.rbk-pagination a,
.rbk-pagination span {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #151515;
  text-align: center;
}

.rbk-pagination .active,
.rbk-pagination a:hover {
  background: #35ad79;
  border-color: #35ad79;
  color: #fff;
}

/* ---------- Patička ---------- */
.rbk-footer-icon {
  font-size: 32px;
  color: #35ad79;
}

.footer-classic .brand-logo {
  width: auto;
  max-height: 96px;
}

/* Šablona skrývá stránku do načtení preloaderu – preloader nepoužíváme */
.page {
  opacity: 1;
}

/* Odstranění štítku „FREE“ z bezplatné verze šablony */
.brand::after {
  display: none !important;
}

.rbk-results-list .game-result-team-horizontal {
  display: flex;
  align-items: center;
}

.rbk-results-list .game-result-team-horizontal .game-result-team-title {
  flex: 1 1 auto;
  min-width: 0;
}

.rbk-results-list .game-result-score {
  margin-left: auto;
  padding-left: 10px;
  min-width: 34px;
  text-align: right;
}

.table-standings th.rbk-team-cell {
  text-align: left;
  padding-left: 52px;
}

/* Čitelnější text v článcích a na stránkách */
.rbk-article,
.rbk-article .rbk-content {
  color: #3a3d42;
  font-size: 16px;
  line-height: 1.7;
}

.rbk-article-lead {
  color: #151515;
}
