/* ===========================================================
   ICEFAME COMMUNITY PAGE — Premium Unified Theme
   With Smooth Light/Dark Mode Support
   =========================================================== */

/* ===== Base Variables (Dark Mode Default) ===== */
:root {
  --bg: #0b0b0d;
  --card: #0f1114;
  --muted: #9aa4b2;
  --accent: #1DA1f2;
  --accent-2: #ff6b00;
  --glass: rgba(255, 255, 255, 0.04);
  --gold: #ffd166;
  --text: #ffffff;
  --line: rgba(255,255,255,0.08);
  --max-width: 1200px;
  color-scheme: dark;
  font-family: "Poppins", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  transition: all 0.4s ease;
}

/* ===== Light Mode Variables ===== */
[data-theme="light"] {
  --bg: #fbfcfe;
  --card: #ffffff;
  --muted: #555;
  --accent: #0b67ff;
  --accent-2: #ff7b00;
  --glass: rgba(0, 0, 0, 0.04);
  --gold: #d4a017;
  --text: #0b0b0d;
  --line: rgba(0,0,0,0.08);
  color-scheme: light;
}

/* ===== Global Typography ===== */
h1, h2, h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text);
  transition: color 0.4s ease;
}

p {
  color: var(--muted);
  transition: color 0.4s ease;
}

.wrap {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==============================
   HERO SECTION
   ============================== */
.community-hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--card), var(--bg));
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.community-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(29,161,242,0.2), transparent 70%);
  pointer-events: none;
  transition: background 0.4s ease;
}

.community-hero h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.community-hero .subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
}

.join-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #041017;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
}

.join-btn:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

/* ==============================
   WHY JOIN SECTION
   ============================== */
.why-join {
  background: var(--bg);
  color: var(--text);
  padding: 6rem 1rem;
  transition: background 0.4s ease, color 0.4s ease;
}

.why-join h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 3rem;
}

.join-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.join-item.reverse {
  flex-direction: row-reverse;
}

.join-item .text {
  flex: 1 1 500px;
}

.join-item .text h3 {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.join-item .text p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.join-item .image {
  flex: 1 1 400px;
  text-align: center;
}

.join-item .image img {
  width: 100%;
  max-width: 420px;
  border-radius: 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join-item .image img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* ==============================
   COMMUNITY ACTIVITIES SECTION
   ============================== */
.community-activities {
  background: var(--card);
  padding: 6rem 1rem;
  text-align: center;
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

.community-activities h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 3rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.activity {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.activity:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.activity h3 {
  color: var(--accent-2);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.activity p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ==============================
   TESTIMONIALS SECTION
   ============================== */
.testimonials {
  background: linear-gradient(180deg, var(--bg), var(--card));
  padding: 6rem 1rem;
  color: var(--text);
  text-align: center;
  transition: background 0.4s ease, color 0.4s ease;
}

.testimonials h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 3rem;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial {
  background: var(--glass);
  border-radius: 1.2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.4s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.testimonial p {
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.testimonial h4 {
  color: var(--muted);
  font-weight: 500;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */
@media (max-width: 768px) {
  .join-item {
    flex-direction: column;
    text-align: center;
  }

  .join-item.reverse {
    flex-direction: column;
  }

  .join-item .image img {
    max-width: 350px;
  }

  .activities-grid,
  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  .community-hero h1 {
    font-size: 2.4rem;
  }
}
