/* Welcome Page Styles */

/* Hero Section for Non-Authenticated Users */
.hero-section {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
}

.hero-carousel {
  width: 100%;
  height: 500px;
}

.hero-carousel .carousel-item {
  height: 500px;
  position: relative;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) saturate(1.2) contrast(1.05);
}

.hero-carousel .carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(46, 125, 50, 0.1) 0%, transparent 30%, transparent 70%, rgba(46, 125, 50, 0.15) 100%);
  pointer-events: none;
  animation: gentleGlow 8s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

/* Team name overlay on carousel */
.carousel-caption {
  bottom: 2rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: rgba(46, 125, 50, 0.9);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.carousel-caption .team-name {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption .team-fans {
  font-size: 1rem;
  color: white;
  margin: 0.5rem 0 0 0;
  opacity: 0.95;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Click hint */
.carousel-hint {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #2e7d32;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

.carousel-hint i {
  margin-right: 0.5rem;
}

/* Introduction Section */
.intro-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.intro-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.intro-lead {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 500;
}

.intro-text {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.feature-card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
  font-size: 3rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 1rem;
}

/* Rights Hero for Authenticated Users */
.rights-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rights-hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.rights-hero .lead {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Rights Card */
.rights-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rights-card .card-header {
  border-radius: 12px 12px 0 0 !important;
  padding: 1rem 1.5rem;
}

.role-icon {
  margin-right: 0.5rem;
}

/* Rights Badges */
.rights-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
}

.rights-badge i {
  font-size: 1.1rem;
}

/* Team Admin List */
.team-admin-list {
  max-height: 500px;
  overflow-y: auto;
}

.team-admin-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.team-admin-item:hover {
  border-color: #2e7d32;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

/* Quick Action Cards */
.quick-action-card {
  display: block;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: white;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quick-action-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.quick-action-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.quick-action-card p {
  font-size: 0.95rem;
  opacity: 0.95;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-carousel {
    height: 400px;
  }

  .hero-carousel .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 0.75rem 1.5rem;
  }

  .carousel-caption .team-name {
    font-size: 1.5rem;
  }

  .carousel-caption .team-fans {
    font-size: 0.9rem;
  }

  .carousel-hint {
    bottom: 5rem;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }

  .intro-title {
    font-size: 2.5rem;
  }

  .intro-lead {
    font-size: 1.2rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .btn-hero {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  .rights-hero h1 {
    font-size: 2rem;
  }

  .rights-hero .lead {
    font-size: 1rem;
  }

  .quick-action-card {
    padding: 1.5rem 1rem;
  }

  .quick-action-card i {
    font-size: 2.5rem;
  }

  .quick-action-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-carousel {
    height: 350px;
  }

  .hero-carousel .carousel-item {
    height: 350px;
  }

  .carousel-caption {
    bottom: 1rem;
    padding: 0.5rem 1rem;
  }

  .carousel-caption .team-name {
    font-size: 1.25rem;
  }

  .carousel-caption .team-fans {
    font-size: 0.85rem;
  }

  .carousel-hint {
    bottom: 4rem;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
  }

  .intro-title {
    font-size: 2rem;
  }

  .intro-lead {
    font-size: 1.1rem;
  }

  .intro-section {
    padding: 3rem 0;
  }

  .rights-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .team-admin-item .btn-group {
    width: 100%;
    margin-top: 0.5rem;
  }

  .team-admin-item .btn-group .btn {
    flex: 1;
  }
}
