/* ===========================
   Domov (Home) Page Styles
   =========================== */

/* Hero section styling */
.hero {
  padding: 0;
  margin-top: 0;
}

/* Hero image styling */
.hero-image-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
  background: #000000;
}

.hero-image {
  width: 100%;
  height: clamp(420px, 58vh, 680px);
  max-height: none;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(calc(1200px + 3rem), 100%);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1rem, 3vh, 2.5rem) 1.5rem;
  box-sizing: border-box;
  z-index: 2;
}

.hero-title-group {
  display: flex;
  align-items: flex-start;
}

.hero-title-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-title-word {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.05;
}

.hero-title-subtext {
  margin-top: 0.6rem;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
}

.hero-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  height: clamp(140px, 22vw, 260px);
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

/* Hero cards styling */
.hero-cards-container {
  max-width: 1200px;
  margin: clamp(-80px, -8vh, -40px) auto 0;
  padding: 0 1.5rem;
  display: flex;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.hero-card {
  flex: 1;
  height: 550px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-header-with-toggle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Card header (simple, neutral grey title) */
.card-header {
  display: block;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #374151; /* slightly darker grey for visibility */
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0 0 1rem;
  text-align: center;
}

.toggle-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.toggle-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  border-color: #05d4e0;
  color: #05d4e0;
}

.toggle-btn.active {
  background: #05d4e0;
  color: #ffffff;
  border-color: #05d4e0;
}

/* STATISTIKA button */
.statistika-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: #aa912b;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  line-height: 1.7;
}

.statistika-btn:hover {
  background: #8f7923;
  transform: translateY(-2px);
}

.statistika-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.statistika-btn:hover .statistika-arrow {
  transform: translateX(3px);
}

.statistika-btn:active {
  transform: translateY(0);
}

.statistika-btn.disabled {
  background: #9ca3af;
  color: #d1d5db;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.statistika-btn.disabled:hover {
  background: #9ca3af;
  transform: none;
}

.statistika-btn.disabled .statistika-arrow {
  opacity: 0.5;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto; /* keep scrolling enabled */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.leaderboard::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.75rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 2px solid #d1d5db;
}

.header-rank,
.header-club,
.header-points {
  font-weight: 700;
  color: #6b7280;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-rank,
.header-points {
  text-align: center;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.75rem;
  background: #ffffff;
  border-radius: 0.5rem;
  border-left: 4px solid transparent;
}

.leaderboard-row.dolomiti-highlight {
  background: #fef9e7;
  border-left-color: #aa912b;
  box-shadow: 0 2px 12px rgba(170, 145, 43, 0.15);
}

.rank {
  font-weight: 700;
  color: #aa912b; /* Gold color */
  font-size: 1rem;
  text-align: center;
}

.club-name {
  font-weight: 500;
  color: #111827;
  font-size: 0.95rem;
}

.points {
  font-weight: 700;
  color: #05d4e0;
  font-size: 1rem;
  text-align: center;
  background: #ecfdf5;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #a7f3d0;
}

/* SELEKCIJE card styling */
.selekcije-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.selekcije-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  flex: 1;
  align-content: start;
}

.selekcije-item {
  padding: 0.75rem;
  background: #ffffff;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  gap: 0.25rem;
}

.selekcije-item:hover {
  transform: translateY(-4px);
  border-color: #05d4e0;
}

.selekcije-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.selekcije-trainer {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

/* News content placeholder */
.news-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Social Media Card */
.social-card {
  display: flex;
  flex-direction: column;
}

.social-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
  flex: 1;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-item[data-platform="facebook"]:hover {
  border-color: #1877f2;
}

.social-item[data-platform="instagram"]:hover {
  border-color: #e4405f;
}

.social-item[data-platform="tiktok"]:hover {
  border-color: #000000;
}

.social-item[data-platform="x"]:hover {
  border-color: #000000;
}

.social-item[data-platform="youtube"]:hover {
  border-color: #ff0000;
}

.social-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.social-item[data-platform="facebook"] .social-icon {
  fill: #1877f2;
}

.social-item[data-platform="instagram"] .social-icon {
  fill: #e4405f;
}

.social-item[data-platform="tiktok"] .social-icon {
  fill: #000000;
}

.social-item[data-platform="x"] .social-icon {
  fill: #000000;
}

.social-item[data-platform="youtube"] .social-icon {
  fill: #ff0000;
}

.social-name {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* News Section */
.news-section {
  width: 100vw;
  margin: 4rem 0 0;
  margin-left: calc(-50vw + 50%);
  padding: 3rem 0 3rem;
  background: #f8f9fa;
}

.news-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.news-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #aa912b 0%, #05d4e0 100%);
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem auto 0;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.news-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #05d4e0;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.4;
}

.news-description {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.news-date {
  font-size: 0.8rem;
  color: #aa912b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}


/* ===========================
   Loading Spinner
   =========================== */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: #6b7280;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #05d4e0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.loading-text {
  font-size: 14px;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
