/* FriendsQuest Landing Page */

#intro {
  background: linear-gradient(135deg, #fdfbff, #e4f0ff);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 92vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #1e1e1e;
}

.intro-text p {
  font-size: 1.3rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  background: linear-gradient(135deg, #7f5af0, #2cb67d);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, background 0.3s;
  border: none;           
  outline: none;         
  box-shadow: none;      
}

.cta-button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #9061f9, #3ddc97);
  cursor: pointer;
}

/* Scroll Down Icon */
.scroll-down-icon {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #7f5af0;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
/* How It Works */

#how-it-works {
  padding: 50px 20px 200px 20px;
  background: #ffffff;
  text-align: center;
}

#how-it-works h2 {
  font-size: 2.5rem;
  color: #1e1e1e;
  margin-bottom: 48px;
}

.how-quest-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* force 4 across */
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.quest-card {
  background: #ffffff;
  border: 2px solid #d6e3ff;
  border-radius: 20px;
  padding: 24px 20px; 
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
  min-width: 0;
  display: flex;                   
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;                  
}


.quest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(127, 90, 240, 0.08);
}

.quest-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.quest-card h3 {
  font-size: 1.2rem;
  color: #7f5af0;
  margin-bottom: 8px;
}

.quest-card p {
  font-size: 0.95rem;
  color: #555;
  max-width: 280px;
  margin: 0 auto;
}


/* Tablet: 2 across */
@media (max-width: 1024px) {
  .how-quest-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 per row */
@media (max-width: 640px) {
  .how-quest-cards {
    grid-template-columns: 1fr;
  }
}


/* Join a Community */
#join-community {
  padding: 100px 20px;
  background: #ffffff;
  text-align: center;
}

#join-community h2 {
  font-size: 2.5rem;
  color: #1e1e1e;
  margin-bottom: 48px;
}

.guild-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.community-guild-card {
  background: #f0f4ff;
  border: 2px solid #d6e3ff;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: left;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.community-guild-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(127, 90, 240, 0.08);
}

.community-guild-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #7f5af0;
}

.community-guild-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 5px;
  line-height: 1.5;
}

.guild-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

.guild-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.interest-tag {
  background: #e8edff;
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease;
}

.interest-tag:hover {
  background: #d1d9ff;
}



/* FRIENDSHIP MATCHMAKING */
#friend-matching {
  padding: 80px 20px;
  background: #ffffff;
  text-align: center;
}

#friend-matching h2 {
  font-size: 2.5rem;
  color: #1e1e1e;
  margin-bottom: 16px;
}

.match-intro {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
}

.community-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.friend-profile-preview {
  flex: 0 0 300px; /* fixed narrow width */
  background: #ffffff;
  padding: 28px 20px;
  border: 2px solid #c7d2fe;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  text-align: left;
  min-height: 340px; 
}

.friend-profile-preview:hover {
    transform: translateY(-4px);
}


.friend-profile-preview h3 {
  font-size: 1.25rem;
  color: #7f5af0;
  font-weight: bold;
  margin-bottom: 16px;
}

.friend-profile-preview p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.4;
}


.friend-profile-preview p strong {
  color: #2b2b2b;
  font-weight: 600;
}

.sample-profile-card {
  flex: 1 1 300px;
  background: #f0f4ff;
  padding: 24px;
  border-radius: 16px;
  border: 2px solid #d6e3ff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  text-align: left;
}

.guild-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.guild-card {
  background: #ffffff;
  border: 2px solid #d6e3ff;
  border-radius: 16px;
  padding: 16px;
  font-size: 1.05rem; /* KEEP your content readable */
  font-weight: 500;
  color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;    /* 👈 Control how wide the card can be */
  height: 80px;       /* 👈 Control the height of each card */
}


.guild-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(127, 90, 240, 0.08);
}



/* WHY JOIN */
#why-join {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
  text-align: center;
  border-top: 2px dashed #d6e3ff;
  border-bottom: 2px dashed #d6e3ff;
}

#why-join h2 {
  font-size: 2.5rem;
  color: #1e1e1e;
  margin-bottom: 32px;
}

.highlight-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.highlight-list li {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #555;
  background: #ffffffaa;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  display: inline-block;
}


/* FINAL CTA */
#final-cta {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #e4f0ff, #fdfbff);
  border-radius: 32px 32px 0 0;
}

#final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #1e1e1e;
}
