/* Modern Hexagonal Team Card Styles for Rwanda Premier League */

.rpl-team-card-small {
  position: relative;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.rpl-team-card-small:hover {
  transform: translateY(-5px);
}

.team-card-inner {
  position: relative;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 20px 15px;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.rpl-team-card-small:hover .team-card-inner {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

/* Team logo styling */
.team-logo-container {
  position: relative;
  margin-bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}
.team-logo-container img {
  width: 70px !important;
  height: 70px !important;
  object-fit: cover;
}

.rpl-team-card-small:hover .team-logo-border {
  opacity: 1;
  transform: scale(1.05);
}

.team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
  border-radius: 50%;
  background-color: white;
  padding: 5px;
  z-index: 3;
  position: relative;
}

.rpl-team-card-small:hover .team-logo {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.5);
}

/* Team name styling */
.team-name {
  position: relative;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Button styling */
.btn-team-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1e90ff, #4b0082);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 0px !important;
}

.btn-team-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.btn-team-profile:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-team-profile:hover::before {
  left: 100%;
}

.btn-team-profile i {
  margin-left: 8px;
  transition: all 0.3s ease;
}

.btn-team-profile:hover i {
  transform: translateX(3px);
}

/* Champion badge styling */
.team-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-badge::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    45deg,
    rgba(231, 76, 60, 0.8),
    rgba(192, 57, 43, 0.8)
  );
  border-radius: 5px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rpl-team-card-small:hover .team-badge::before {
  opacity: 1;
}

/* Pattern decoration */
.team-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    135deg,
    rgba(30, 144, 255, 0.05) 0%,
    rgba(75, 0, 130, 0.05) 100%
  );
  opacity: 0.3;
  z-index: 0;
  transition: all 0.3s ease;
}

.rpl-team-card-small:hover .team-pattern {
  opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .team-card-inner {
    height: 200px;
    padding: 15px 10px;
  }

  .team-logo-container {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
  }

  .team-logo {
    width: 60px;
    height: 60px;
  }

  .team-name {
    font-size: 1rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 767px) {
  .team-card-inner {
    height: 180px;
  }

  .team-logo-container {
    width: 80px;
    height: 80px;
  }

  .team-logo {
    width: 50px;
    height: 50px;
  }

  .btn-team-profile {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

.team-logo-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-top: 15px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  transform: translateZ(20px);
  transition: all 0.4s ease;
  border: 2px solid rgba(52, 152, 219, 0.5);
}

.team-accent-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: all 0.4s ease;
}

.rpl-team-card-small:hover .team-accent-ring {
  opacity: 1;
  animation: pulse-ring 2s infinite;
}

.rpl-team-card-small:hover .team-logo-wrapper {
  transform: translateZ(30px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.team-logo {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
  transition: all 0.4s ease;
}

.rpl-team-card-small:hover .team-logo {
  transform: rotate(5deg);
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateZ(15px);
  position: relative;
  padding-bottom: 8px;
}

.team-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transition: all 0.4s ease;
}

.rpl-team-card-small:hover .team-name::after {
  width: 50px;
}

.btn-team-profile {
  margin-top: auto;
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateZ(10px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-team-profile:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.btn-team-profile i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.btn-team-profile:hover i {
  transform: translateX(4px);
}

.team-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #1a5276, #3498db);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 0 10px 0 10px;
  z-index: 4;
}

/* Animation for the accent ring */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Responsive styles */
@media (max-width: 767px) {
  .team-logo-wrapper {
    width: 70px;
    height: 70px;
    margin-top: 10px;
  }

  .team-name {
    font-size: 0.9rem;
    margin: 8px 0;
  }

  .btn-team-profile {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

@media (max-width: 575px) {
  .col-sm-4 {
    width: 50%;
  }
}

.btn-team-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: rgba(52, 152, 219, 0.2);
  color: #1a5276;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  width: 100%;
}

.btn-team-profile:hover {
  background: rgba(52, 152, 219, 0.3);
  color: #1a5276;
}

.btn-team-profile i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.btn-team-profile:hover i {
  transform: translateX(3px);
}

/* Responsive styles */
@media (max-width: 767px) {
  .team-card-inner {
    padding: 12px 8px;
  }

  .team-logo {
    width: 50px;
    height: 50px;
  }

  .team-name {
    font-size: 0.85rem;
  }

  .btn-team-profile {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

@media (max-width: 575px) {
  .col-sm-6 {
    width: 50%;
  }
}

.team-logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/templates/basic/images/imigongo-pattern.svg");
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.team-logo {
  position: relative;
  z-index: 2;
  max-width: 70px;
  max-height: 70px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.rpl-team-card-small:hover .team-logo {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.3));
}

.team-accent-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  right: -30px;
  top: -30px;
  z-index: 1;
  transition: all 0.3s ease;
}

.rpl-team-card-small:hover .team-accent-circle {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.15);
}

.team-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a5276;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 8px;
  transition: all 0.3s ease;
}

.team-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #3498db, transparent);
  transition: all 0.3s ease;
}

.rpl-team-card-small:hover .team-name::after {
  width: 80px;
}

.team-meta {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.team-founded,
.team-trophies {
  display: flex;
  align-items: center;
  gap: 5px;
}

.team-founded i,
.team-trophies i {
  color: #3498db;
}

.btn-team-profile {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(26, 82, 118, 0.1);
  color: #1a5276;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-team-profile:hover {
  background: rgba(26, 82, 118, 0.2);
  color: #1a5276;
  padding-right: 10px;
}

.btn-team-profile i {
  transition: all 0.3s ease;
}

.btn-team-profile:hover i {
  transform: translateX(3px);
}

/* Responsive styles */
@media (max-width: 767px) {
  .team-logo-container {
    height: 100px;
  }

  .team-logo {
    max-width: 60px;
    max-height: 60px;
  }

  .team-content {
    padding: 12px;
  }

  .team-name {
    font-size: 0.9rem;
  }

  .team-meta {
    font-size: 0.8rem;
  }
}

@media (max-width: 575px) {
  .col-sm-6 {
    width: 50%;
  }
}
