/* Home page specific styles */

/* Hero section styles */
.hero.is-primary {
  position: relative;
  overflow: hidden;
}

.hero.is-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.12)"/></svg>');
  background-size: 100% 100%;
  z-index: 1;
}

.hero.is-primary .hero-body {
  position: relative;
  z-index: 2;
}

.hero-landing .hero-body {
  padding: 2.75rem 1.25rem 2.25rem;
}

@media screen and (min-width: 769px) {
  .hero-landing .hero-body {
    padding: 4rem 1.5rem 3.25rem;
  }
}

/* Hero CTA button */
.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.hero-cta .navbar-item {
  padding: 0;
}

.hero-cta .button {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  height: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.hero-cta .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Home layout refinements */
.home-hero {
  max-width: 720px;
}

.home-lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.home-shell {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}

@media screen and (min-width: 769px) {
  .home-shell {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }
}


/* How it works spacing */
.how-it-works-card {
  padding: 1.15rem 1.25rem;
}

@media screen and (min-width: 769px) {
  .how-it-works-card {
    padding: 1.5rem 1.75rem;
  }
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.how-it-works-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.how-it-works-item .icon.is-medium {
  margin-bottom: 0.35rem;
}

.rate-goals .how-it-works-text .title.is-6 {
  letter-spacing: 0.3px;
  margin: 0.2rem 0 0.2rem;
  font-size: 1.05rem;
}

.rate-goals .how-it-works-text p.is-size-7 {
  line-height: 1.45;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.home-contribute-card {
  padding: 1.25rem 1.5rem;
}

@media screen and (min-width: 769px) {
  .home-contribute-card {
    padding: 1.5rem 1.75rem;
  }
}

.contribute-content {
  text-align: center;
  margin-bottom: 1rem;
}

.rate-goals .contribute-content .title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contribute-content p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.contribute-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media screen and (min-width: 769px) {
  .contribute-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

.contribute-actions .navbar-item {
  padding: 0;
}

.contribute-actions .button {
  min-width: 160px;
}

.contribute-actions img {
  height: 36px;
  transition: opacity 0.2s ease;
}

.contribute-actions img:hover {
  opacity: 0.85;
}

/* Leaderboard card - full width */
.leaderboard-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

@media screen and (min-width: 769px) {
  .leaderboard-card {
    padding: 1.5rem 2rem;
  }
}

.rate-goals .leaderboard-card .title {
  margin-bottom: 1rem;
}

.leaderboard-card .table-container {
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.leaderboard-card table {
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.leaderboard-card table thead th {
  background-color: rgba(14, 165, 165, 0.08);
  color: var(--primary-color);
  font-weight: 600;
  border-color: rgba(14, 165, 165, 0.2);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 12px 8px;
}

.leaderboard-card table tbody tr {
  transition: all 0.2s ease;
}

.leaderboard-card table tbody tr:hover {
  background-color: rgba(14, 165, 165, 0.08);
}

.leaderboard-card table tbody tr.is-top-ranked {
  background-color: rgba(255, 221, 87, 0.15);
}

.leaderboard-card table tbody tr.is-top-ranked:hover {
  background-color: rgba(255, 221, 87, 0.25);
}

.leaderboard-footer {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.leaderboard-footer .navbar-item {
  padding: 0;
}

.leaderboard-footer .button {
  font-weight: 600;
}

/* How It Works icon animation */
.how-it-works-item .icon i {
  transition: transform 0.3s ease;
}

.how-it-works-item:hover .icon i {
  transform: scale(1.15);
}

/* Box shadow enhancements */
.box {
  transition: all 0.3s ease;
}

.box:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

@media (hover: none) {
  .box:hover {
    box-shadow: none;
    transform: none;
  }
}

/* Button enhancements */
.buttons.is-centered {
  gap: 10px;
}


/* Rank badge styling */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.08);
  color: var(--text-color);
  font-weight: bold;
  font-size: 0.9rem;
}

.rank-badge.is-first {
  background-color: #fbbf24;
  color: #1f2937;
}

/* Player link styling */
a.player-link {
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

a.player-link:hover {
  color: var(--primary-hover);
}

a.player-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

a.player-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Rating cell styling */
.rating-cell {
  color: var(--primary-color);
}

/* Tag styling for PK column */
.tag.is-small {
  height: 1.5em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  font-size: 0.65rem;
}

/* Mobile-specific adjustments */
@media screen and (max-width: 768px) {
  .hero.is-primary {
    border-radius: 0 0 8px 8px;
  }

  .home-hero {
    max-width: 100%;
  }

  .home-lead {
    max-width: 100%;
  }

  .hero-cta .button {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    width: 100%;
    max-width: 280px;
  }

  .rate-goals .container.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .how-it-works-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    text-align: left;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }

  .how-it-works-item .icon.is-medium {
    margin: 0;
  }

  .rate-goals .how-it-works-text .title.is-6 {
    font-size: 0.95rem;
    margin: 0 0 0.1rem;
  }

  .how-it-works-text p.is-size-7 {
    font-size: 0.85rem;
  }

  .leaderboard-card {
    padding: 1rem 1rem;
  }

  .leaderboard-card table thead th {
    padding: 10px 6px;
    font-size: 0.75rem;
  }

  .contribute-actions {
    width: 100%;
  }

  .contribute-actions .button {
    width: 100%;
    min-width: auto;
  }
}
