/* SPONSOR PAGE SPECIFIC STYLES */

@keyframes golden-shimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 200%;
  }
}

@keyframes blue-shimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 200%;
  }
}

.sponsor-main {
  min-height: calc(100vh - 200px);
}

.sponsor-grid-section {
  padding: 40px 20px 50px;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.90), rgba(248, 249, 250, 0.90)),
              url('img/FVG/FVG_BLUE.png') 55% center/45% no-repeat;
}

/* Row 1: featured main sponsors, centered side by side */
.sponsor-featured-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 35px;
  margin: 0 auto 40px;
  max-width: 1200px;
}

/* Row 2+: regular sponsors grid */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.sponsor-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sponsor-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(5px);
  padding: 20px 15px;
  border-radius: 15px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 0 25px rgba(11, 60, 120, 0.4),
    0 0 25px rgba(20, 95, 179, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sponsor-card::before,
.sponsor-card::after {
  content: '';
  position: absolute;
  width: 0;
  height: 8px;
  background: linear-gradient(135deg, #0b3c78, #145fb3);
  opacity: 0;
  transition: opacity 0.4s ease, width 0.4s ease;
  box-shadow: 0 0 12px rgba(11, 60, 120, 0.6);
  border-radius: 2px;
}

/* Featured / main sponsor - gold accent instead of blue */
.sponsor-card.sponsor-card-featured {
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 0 25px rgba(212, 175, 55, 0.5),
    0 0 25px rgba(212, 175, 55, 0.3);
}

.sponsor-card.sponsor-card-featured::before,
.sponsor-card.sponsor-card-featured::after {
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

.sponsor-card::before {
  top: 50px;
  right: -10px;
  transform-origin: right center;
  transform: rotate(45deg);
}

.sponsor-card::after {
  bottom: 50px;
  left: -10px;
  transform-origin: left center;
  transform: rotate(45deg);
}

.sponsor-card-link:hover .sponsor-card::before,
.sponsor-card:hover::before {
  opacity: 1;
  width: 100px;
}

.sponsor-card-link:hover .sponsor-card::after,
.sponsor-card:hover::after {
  opacity: 1;
  width: 100px;
}

.sponsor-card-link:hover .sponsor-card,
.sponsor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sponsor-hover-warning {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 60, 120, 0.20);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.1rem;
  font-weight: bold;
}

.sponsor-card-link:hover .sponsor-hover-warning {
  opacity: 1;
}

.sponsor-hover-warning span {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  border: 2px solid white;
}

.sponsor-bubble {
  width: 140px;
  height: 140px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #0b3c78;
  position: relative;
  box-shadow: 0 6px 20px rgba(11, 60, 120, 0.3);
  transition: all 0.4s ease;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(#0b3c78, #0b3c78) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-card-link:hover .sponsor-bubble,
.sponsor-card:hover .sponsor-bubble {
  border: 4px solid transparent;
  box-shadow:
    0 0 20px rgba(11, 60, 120, 0.6),
    0 0 40px rgba(20, 95, 179, 0.4),
    0 8px 25px rgba(11, 60, 120, 0.3);
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(
      135deg,
      #0b3c78 0%,
      #145fb3 25%,
      #0b3c78 50%,
      #145fb3 75%,
      #0b3c78 100%
    ) border-box;
  background-size: 200% 200%;
  animation: blue-shimmer 3s linear infinite;
}

/* Featured / main sponsor - gold accent instead of blue */
.sponsor-card-featured .sponsor-bubble {
  border: 5px solid #d4af37;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  background: linear-gradient(white, white) padding-box,
              linear-gradient(#d4af37, #d4af37) border-box;
}

.sponsor-card-link:hover .sponsor-card-featured .sponsor-bubble,
.sponsor-card-featured:hover .sponsor-bubble {
  border: 5px solid transparent;
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.6),
    0 0 40px rgba(212, 175, 55, 0.4),
    0 8px 25px rgba(212, 175, 55, 0.3);
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(
      135deg,
      #d4af37 0%,
      #f4d03f 25%,
      #d4af37 50%,
      #f4d03f 75%,
      #d4af37 100%
    ) border-box;
  background-size: 200% 200%;
  animation: golden-shimmer 3s linear infinite;
}

.sponsor-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.sponsor-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0b3c78;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.sponsor-card-link:hover .sponsor-name,
.sponsor-card:hover .sponsor-name {
  color: #145fb3;
}

.sponsor-card-featured .sponsor-name {
  color: #d4af37;
}

.sponsor-card-link:hover .sponsor-card-featured .sponsor-name,
.sponsor-card-featured:hover .sponsor-name {
  color: #b8941f;
}

.sponsor-tagline {
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
}

/* Featured / main sponsor card - bigger */
.sponsor-card-featured {
  padding: 32px 40px;
}

.sponsor-card-featured .sponsor-bubble {
  width: 210px;
  height: 210px;
  border-width: 5px;
}

.sponsor-card-featured .sponsor-name {
  font-size: 1.6rem;
}

.sponsor-card-featured .sponsor-tagline {
  font-size: 1.05rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 1024px) and (min-width: 769px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sponsor-grid-section {
    padding: 30px 20px;
  }

  .sponsor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sponsor-featured-row {
    gap: 20px;
    margin-bottom: 25px;
  }

  .sponsor-bubble {
    width: 120px;
    height: 120px;
  }

  .sponsor-card-featured .sponsor-bubble {
    width: 170px;
    height: 170px;
  }

  .sponsor-name {
    font-size: 1.1rem;
  }

  .sponsor-card-featured .sponsor-name {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .sponsor-card {
    padding: 18px 12px;
  }

  .sponsor-bubble {
    width: 110px;
    height: 110px;
  }

  .sponsor-card-featured .sponsor-bubble {
    width: 150px;
    height: 150px;
  }
}
