/* ============================================================
   🌿 TE REO MĀORI LEARNING HUB – UNIFIED GLOBAL THEME
   Applies across: Home | Flashcards | GamesHub | Progress
   ============================================================ */

/* === BASE LAYOUT === */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: url('../images/kakariki.jpg') center/cover no-repeat fixed;
  color: #0b3d2e;
  line-height: 1.6;
}

main {
  margin-top: 40px;
  text-align: center;
}

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* === NAVBAR === */
.navbar {
  width: 100%;
  background-color: #007f5f !important;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-navbar .container-fluid {
  max-width: 100%;
  padding: 0 1rem;
}

.navbar a.nav-link,
.navbar a.navbar-brand {
  color: #eafff6 !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a.nav-link:hover,
.navbar a.navbar-brand:hover {
  color: #b9ffee !important;
}

/* === HEADERS === */
h1, h2, h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-right: 18px;
  margin-bottom: 10px;
  color: black;
}

/* === CARDS (Unified Look for All Modules) === */
.card,
.flashcard-card,
.home-card,
.progress-card,
.card-dark {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: yellow;
  padding: 25px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* === CARD CONTENT === */
.card h3,
.flashcard-card h3,
.game-card h3,
.progress-card h3 {
  color: #e9fff8;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 0.6rem;
}

.card p,
.flashcard-card p,
.game-card p,
.progress-card p {
  color: #d8f8f0;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* === HOVER EFFECTS === */
.card:hover,
.flashcard-card:hover,
.game-card:hover,
.progress-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* === GRID LAYOUTS === */
.flashcard-grid,
.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2rem;
}

/* === BUTTONS === */
button,
.btn,
.btn-primary {
  background-color: #00a37a;
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover,
.btn:hover,
.btn-primary:hover {
  background-color: #00c997;
  transform: translateY(-2px);
}

/* === FOOTER (OPTIONAL) === */
footer {
  color: #b3ffeb;
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==============================
   💬 Comments Section Styling
   ============================== */
.review-section {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  padding: 25px 30px;
  margin: 40px auto 60px auto;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Header */
.review-section h4 {
  color: #ffe066; /* soft yellow for section title */
  margin-bottom: 20px;
  font-weight: 600;
}

/* Comment list container */
.review-list {
  margin-top: 25px;
}

/* Individual comment item */
.review-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #00bfff;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 15px;
  text-align: left;
  transition: transform 0.2s ease, background 0.3s ease;
}

.review-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Name (bold and highlighted) */
.review-item strong {
  color: #ffeb99;
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Comment text */
.review-item p {
  color: #e0f7ff;
  font-size: 1rem;
  margin: 0 0 5px 0;
}

/* Date */
.review-item small {
  color: #b0b0b0;
  font-size: 0.8rem;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .games-grid, .flashcard-grid {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .game-card,
  .flashcard-card,
  .progress-card {
    width: 85%;
  }
}

