/* ========== GLOBAL STYLING ========== */
body {
  font-family: 'Rubik', sans-serif;
  background-color: #f9fbfd;
  color: #333;
  margin: 0;
}

/* ========== NAVBAR ========== */
.navbar {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 20vh;
  color: white;
}

/* ========== BUTTONS ========== */
.btn-oval {
  border-radius: 50px !important;
  padding: 0.75rem 1.75rem;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
}
.btn-oval:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn.btn-primary {
  background-color: #E67E22 !important;
  border-color: #E67E22 !important;
  color: #fff !important;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn.btn-primary:hover {
  background-color: #D35400 !important;
  border-color: #D35400 !important;
  color: #fff !important;
}
.btn.btn-outline-light {
  color: #E67E22 !important;
  border: 2px solid #E67E22 !important;
  background-color: transparent !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn.btn-outline-light:hover {
  background-color: rgba(230, 126, 34, 0.1) !important;
  color: #D35400 !important;
}

/* ========== TABLES ========== */
.table-gold   { background-color: #fff8dc !important; }
.table-silver { background-color: #f0f0f0 !important; }
.table-bronze { background-color: #fbe8d3 !important; }
.table-hover tbody tr:hover { background-color: #f1f9ff; }
.results-table {
  width: 100%;
  table-layout: auto; /* flexibilní layout */
  border-collapse: collapse;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========== TEAM DETAILS ========== */
.team-photo {
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

/* ========== PLACE ICON ========== */
.place-icon {
  font-size: 1.2rem;
  margin-right: 0.4em;
}

/* ========== FISH IMAGE & VOTING ========== */
.fish-thumb {
  max-height: 120px;
  display: block;
  margin: 0 auto;
}
.vote-overlay {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.vote-btn {
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}
.vote-btn:hover {
  font-weight: bold;
  color: green;
  transform: scale(1.1);
}
img.lightbox-img {
  max-width: 100%;
  height: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  /* zmenšíme font a povolíme zalamování buněk */
  .results-table {
    font-size: 0.9rem;
  }
  .results-table th,
  .results-table td {
    white-space: normal !important;
    word-break: break-word;
    padding: 0.4rem !important;
  }
  .results-table .text-nowrap {
    white-space: normal !important;
  }
  .results-table a {
    white-space: normal !important;
    display: inline-block;
  }
  .fish-thumb {
    max-height: 90px;
  }
  .vote-overlay {
    flex-direction: column;
    gap: 4px;
  }
  .btn-oval {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }
}

@media (max-width: 576px) {
  /* pro opravdu úzké displeje ještě menší písmo a padding */
  .results-table {
    font-size: 0.75rem;
  }
  .results-table th,
  .results-table td {
    padding: 0.25rem !important;
  }
  .place-icon {
    font-size: 1rem;
    margin-right: 0.2em;
  }
}

/* ========== NOTES ========== */
.note-content {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.note-meta {
  font-size: 0.7rem;
  color: #555;
}
