footer {
    background-color: #0066b2;
}

.navbar {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background-color: #0066b2;
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    color: white !important;
}

.nav-link:hover {
    color: black !important;
}

.img-left {
    float: left;
    margin: 0 15px 15px 0;
}

.img-right {
    float: right;
    margin: 0 0 15px 15px;
}

.article-teaser {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.article-teaser::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,102,178,0), rgba(0,102,178,0.85));
}

/* aby obrázky nepretiekli */
.article-teaser img {
  max-width: 40%;
  height: auto;
  float: left;
  margin: 0 15px 10px 0;
}

/* podkladovy obrazok */
main {
    background: url('../images/background.jpeg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    padding: 20px 0;
}

.article-box {
    background-color: rgba(0, 102, 178, 0.85);
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-box a {
    color: white;
    text-decoration: underline;
}

.article-box a:hover {
    color: black;
}

/* zoznam clankov */
.article-list-box .list-group-item {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.25);
}

.article-list-box .article-teaser {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.article-list-box .article-teaser::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 36px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,102,178,0), rgba(0,102,178,0.85));
}

.article-list-box .article-teaser img {
    max-width: 40%;
    height: auto;
    float: left;
    margin: 0 15px 10px 0;
}

.article-list-box {
    max-width: 100% !important;
}

/* ===== Footer ===== */
footer {
    background-color: #0066b2;
    color: black;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-col {
    flex: 0 1 auto;
    min-width: 260px;
}

.footer-col h3 { margin-bottom: 10px; }
.footer-col p { margin: 5px 0; }

/* sociálne ikony */
.social-icons {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}
.social-icons a {
    color: black;
    transition: color 0.3s ease;
}
.social-icons a.facebook:hover { color: #1877f2; }
.social-icons a.instagram:hover { color: #e1306c; }
.social-icons a.youtube:hover { color: #ff0000; }

/* iba pre články – neovplyvní fotky atlétov */
.article-list-box .card img,
.article-box .card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* stránkovanie v článkovom boxe */
.article-box .pagination { justify-content: center; }

.article-box .page-link {
  color: black;
  background-color: white;
  border: 1px solid #ccc;
}

.article-box .page-link:hover {
  color: #0066b2;
  background-color: #f0f0f0;
}

.article-box .page-item.active .page-link {
  color: #fff;
  background-color: #0066b2;
  border-color: #0066b2;
}

.article-box .page-item.disabled .page-link {
  color: rgba(0,0,0,.35);
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* admin sekcia bez podkladového obrázka */
body.admin main {
    background: none !important;
    background-color: transparent;
    min-height: auto;
    padding: 20px 0;
}

/* === Trofejové karty / Úspechy === */
.trophy-card {
  border: 1px solid rgba(0,0,0,.075);
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trophy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.1);
}
.trophy-card .card-header {
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 1rem;
}

/* --- Medaily --- */
.medal-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.medal-emoji {
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.medal-emoji:hover {
  transform: scale(1.15);
}

/* --- Badge + čísla --- */
.trophy-card .badge {
  font-size: 0.9rem;
  padding: 4px 8px;
}
.stat-line .stat-triplet {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.stat-line small {
  font-size: 0.9rem;
}

/* menšie zarovnania pre mobil */
@media (max-width: 575.98px) {
  .trophy-card .card-header {
    font-size: 0.9rem;
  }
  .stat-line .stat-triplet {
    font-size: 1rem;
  }
}

/* === TOP10 športovcov klubu === */
.athlete-card {
  border: 1px solid rgba(0,0,0,.075);
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.athlete-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.1);
}

/* --- Fotky športovcov --- */
.athlete-photo-wrap {
  position: relative;
  background: #f7f9fc;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 220px;
}

@media (min-width: 768px) {
  .athlete-photo-wrap { height: 240px; }
}
@media (min-width: 1200px) {
  .athlete-photo-wrap { height: 260px; }
}

.athlete-card .athlete-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  display: block;
  aspect-ratio: auto !important;
}

.athlete-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0066b2;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* --- Tagy a odznaky --- */
.athlete-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.badge-oh, .badge-ms, .badge-me, .badge-hm {
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid transparent;
}
.badge-oh { background:#fff3cd; color:#a07800; border-color:#ffe197; } /* OH */
.badge-ms { background:#e2e3ff; color:#383a80; border-color:#c8c9ff; } /* MS / MSJ */
.badge-me { background:#d1e7dd; color:#0f5132; border-color:#bcdad0; } /* ME / MEJ / U23 / U18 */
.badge-hm { background:#f8d7da; color:#842029; border-color:#f0b6bd; } /* HME/HMS */
.badge-eyof{
  background:#e8f0fe;
  color:#1a73e8;
  border:1px solid #d2e3fc;
  font-weight:700;
  letter-spacing:.3px;
}/* EYOF odznak (rovnaký štýl ako ostatné) */

@media (max-width: 575.98px) {
  .athlete-rank { font-size: 0.85rem; padding: 5px 9px; }
}

/* === Priestory – rovnaké rozmery + zarovnanie obrázkov === */
.facility-figure {
  margin: 0;
}

.facility-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.facility-caption {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.5rem;
  text-align: center;
}

/* Všetky stĺpce v riadku majú rovnakú výšku a obrázky zarovnané */
@media (min-width: 992px) {
  .row.align-items-stretch > [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

