/**
 * Home Page Styles - Community Section extension
 */

/* Sección Comunidad */
.community-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card-large {
    min-height: 250px;
  }
}

.community-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.community-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.card-large {
  grid-column: 1; /* Ocupa la primera columna en desktop */
}

/* Card Background con Overlay */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: transform 0.5s ease;
  background-color: #1a1a1a; /* Fallback color */
}

.community-card:hover .card-bg {
  transform: scale(1.05);
  opacity: 0.4;
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-badge {
  display: inline-block;
  background: var(--brand-gold);
  color: black;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.community-card h3 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.community-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-pink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 10px;
  color: var(--text-white);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--brand-pink);
  margin-bottom: auto; /* Empuja el contenido hacia abajo si es flex column */
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Subsection: Equipos */
.community-teams-wrapper {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.02), transparent);
  padding: 2rem;
  border-radius: 20px;
  border-left: 2px solid var(--brand-gold);
}

.teams-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  /* Custom scrollbar hide for cleaner look, or style it */
  scrollbar-width: thin;
  scrollbar-color: var(--brand-gold) transparent;
}

.mini-team-card {
  min-width: 200px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
  cursor: pointer;
}

.mini-team-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1.1rem;
}

.team-info h4 {
  font-size: 0.95rem;
  color: white;
  margin: 0;
}

.team-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

/* Utility Text Button */
.btn-text {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--brand-gold);
}

/* ===========================================
   RESPONSIVE MOVIL PARA HOME
   =========================================== */

@media (max-width: 600px) {
  /* Cards de comunidad */
  .community-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .community-card h3 {
    font-size: 1.2rem;
  }

  .community-card p {
    font-size: 0.9rem;
  }

  .card-large {
    min-height: 200px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .card-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.6em;
  }

  /* Wrapper de equipos */
  .community-teams-wrapper {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .teams-scroll-container {
    gap: 1rem;
  }

  /* Mini cards de equipos */
  .mini-team-card {
    min-width: 170px;
    padding: 0.8rem;
    gap: 0.8rem;
    border-radius: 10px;
  }

  .team-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .team-info h4 {
    font-size: 0.85rem;
  }

  .team-info span {
    font-size: 0.7rem;
  }

  .btn-text {
    font-size: 0.85rem;
  }
}

/* ===========================================
   CLASES ADICIONALES PARA HOME
   =========================================== */

/* Hero description */
.hero-description {
  font-size: 1.25rem;
  opacity: 0.8;
  max-width: 500px;
  margin-bottom: 3rem;
}

.hero-hashtag {
  color: var(--brand-pink);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-icon-arrow {
  margin-left: 8px;
}

/* Philosophy section */
.philosophy-title {
  margin-bottom: 1.5rem;
}

.philosophy-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.philosophy-text:last-child {
  margin-bottom: 0;
}

.philosophy-image-wrapper {
  background: var(--brand-wine);
  width: 100%;
  height: 400px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.philosophy-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.philosophy-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-deep), transparent);
}

/* Pickems Promo */
.pickems-promo {
  position: relative;
  margin-top: 2rem;
  transition: transform 0.4s ease;
}

.pickems-promo:hover {
  transform: translateY(-6px);
}

.pickems-promo-glow {
  position: absolute;
  inset: -40px;
  z-index: 0;
  overflow: hidden;
  filter: blur(45px);
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

.pickems-promo:hover .pickems-promo-glow {
  opacity: 0.85;
}

.glow-blob {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
}

.glow-blob--gold {
  top: -10%;
  left: -5%;
  background: var(--brand-gold);
  animation: glow-drift-a 14s ease-in-out infinite;
}

.glow-blob--pink {
  top: 20%;
  right: -10%;
  background: var(--brand-pink);
  animation: glow-drift-b 18s ease-in-out infinite;
}

.glow-blob--wine {
  bottom: -15%;
  left: 25%;
  background: var(--brand-wine);
  animation: glow-drift-c 16s ease-in-out infinite;
}

@keyframes glow-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 12%) scale(1.15); }
}

@keyframes glow-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, 8%) scale(1.1); }
}

@keyframes glow-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, -10%) scale(1.2); }
}

.pickems-promo-inner {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(244, 169, 66, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pickems-promo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}

.pickems-promo:hover .pickems-promo-bg {
  transform: scale(1.05);
}

.pickems-promo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--bg-deep) 25%, rgba(0, 0, 0, 0.35) 100%);
}

.pickems-promo-live {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5em 1em;
  border-radius: 50px;
}

.pickems-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7);
  animation: pickems-pulse 1.6s ease-out infinite;
}

@keyframes pickems-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 77, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0);
  }
}

.pickems-promo-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 600px;
}

.pickems-promo-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(244, 169, 66, 0.15);
  border: 1px solid rgba(244, 169, 66, 0.35);
  color: var(--brand-gold);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.pickems-promo-badge {
  margin-bottom: 1rem;
}

.pickems-promo-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pickems-promo-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pickems-promo-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5em 1.1em;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.pickems-promo-stat i {
  color: var(--brand-pink);
}

.pickems-promo-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-shine:hover::after {
  left: 125%;
}

@media (max-width: 768px) {
  .pickems-promo-inner {
    min-height: 0;
  }

  .pickems-promo-live {
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    padding: 0.4em 0.8em;
  }

  .pickems-promo-content {
    padding: 2.5rem 1.5rem 2rem;
    max-width: 100%;
  }

  .pickems-promo-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .pickems-promo-title {
    font-size: 1.8rem;
  }

  .pickems-promo-buttons {
    flex-direction: column;
  }
}

/* Discord CTA */
.discord-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.discord-text {
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.btn-discord {
  background: #5865f2;
  color: white;
  padding: 1rem 3rem;
}

/* Teams page */
.teams-page-container {
  padding-top: 150px;
  padding-bottom: 4rem;
}

.teams-title {
  font-size: 4rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 5;
}

.teams-empty {
  padding: 4rem;
  text-align: center;
}

.bento-corner-icon {
  width: 20px;
  border-radius: 50%;
}

.bento-description {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.bento-link-text {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--brand-pink);
  padding-bottom: 2px;
}

/* Capsule badge small */
.capsule-badge--sm {
  font-size: 0.7em;
}

/* ===========================================
   RESPONSIVE ADICIONAL
   =========================================== */

@media (max-width: 768px) {
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .philosophy-image-wrapper {
    height: 300px;
    border-radius: 16px;
  }

  .discord-title {
    font-size: 2rem;
  }

  .teams-page-container {
    padding-top: 90px !important;
  }

  .teams-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    padding-top: 0.5rem;
    display: block;
  }

  .teams-empty {
    padding: 2.5rem;
  }
}

@media (max-width: 380px) {
  .teams-title {
    font-size: 2rem;
  }

  .discord-title {
    font-size: 1.6rem;
  }
}
