@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow: #ffe47a;
  --orange: #f8a200;
  --orange-dark: #d97706;
  --bg-from: #ffe47a;
  --bg-to: #f6a800;
  --dark: #1c1c1c;
  --darker: #111;
  --text: #222;
  --text-light: #555;
  --white-card: rgba(255, 255, 255, 0.88);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 1.1rem;
  --radius-sm: 0.6rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, #ffe87e 0%, #fbc02d 50%, #f6a800 100%) fixed;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

/* === CONTAINER === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* === NAVBAR === */
.navbar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.5rem;
  max-width: 1000px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

.logo span {
  font-weight: 700;
  font-size: 1.05rem;
  color: #333;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: #ffe47a;
  color: #111;
}

.nav-links .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #333;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
  line-height: 1;
}

.hamburger:hover { background: #ffe47a44; }

/* === PAGE HEADER === */
.header-bar {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.header-bar h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.header-bar p {
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
}

.company-banner {
  width: 100%;
  max-width: 520px;
  margin: 1.8rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* === CARD SECTIONS === */
section {
  margin: 1.4rem 0;
}

section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  text-align: center;
}

ul li {
  margin-bottom: 0.5rem;
}

.about,
.mission,
.contact {
  background: var(--white-card);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}

.about { background: rgba(255, 255, 255, 0.92); }
.mission { background: rgba(255, 255, 255, 0.78); }
.contact { background: rgba(255, 255, 255, 0.92); }

.contact a {
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact a:hover { text-decoration: underline; }

/* === GAMES GRID === */
.games {
  margin: 1.4rem 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: #1a1a1a;
}

.game-card p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.game-card .game-tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  background: var(--yellow);
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-card .game-tag.soon {
  background: #e5e7eb;
  color: #888;
}

/* === EXTRA / MISC === */
.extra {
  background: rgba(255, 255, 255, 0.72);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 1.4rem 0;
  box-shadow: var(--shadow-sm);
}

.extra a {
  color: var(--orange-dark);
  font-weight: 600;
}

/* === BUTTONS / CTA === */
.cta {
  text-align: center;
  margin: 1.8rem 0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff !important;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 124, 0, 0.55);
}

.cta button {
  background: #ff8c00;
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: not-allowed;
  opacity: 0.6;
  font-family: inherit;
}

/* === BAMBARA PHRASE === */
#phrase-container {
  background: #fff;
  color: #333;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 580px;
  margin: 1rem auto;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

#phrase-container:hover {
  transform: scale(1.018);
  box-shadow: var(--shadow-lg);
}

#phrase-container:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
}

#bambara {
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--orange-dark);
  display: block;
  margin-bottom: 0.25rem;
}

#english {
  font-style: italic;
  font-size: 1.25rem;
  color: #4b5563;
  display: block;
  margin-top: 0.4rem;
}

.click-invite {
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 0.8rem;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === HERO SECTION (game pages) === */
.hero-section {
  background-image: url('beach-placeholder.webp');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  border-radius: var(--radius);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.4rem;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 1.8rem 2.5rem;
  border-radius: var(--radius);
  color: #fff;
  max-width: 85%;
  backdrop-filter: blur(2px);
}

.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #fff;
}

.hero-overlay .tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #ffe47a;
}

.highlight { color: var(--yellow); }

/* === FEATURES (dark card) === */
.features {
  background: #252525;
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  margin: 1.4rem 0;
  box-shadow: 0 0 24px rgba(255, 228, 122, 0.12);
  color: var(--yellow);
}

.features h2 {
  color: var(--yellow);
  text-align: center;
  margin-bottom: 1.2rem;
}

.features ul {
  list-style: none;
  padding: 0;
}

.features li {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  color: #fffcd2;
  padding-left: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  animation: slideFadeIn 0.5s ease forwards;
  animation-delay: calc(0.12s * var(--i));
}

.features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 0.85rem;
  top: 0.18rem;
}

.features li:nth-child(1) { --i: 1; }
.features li:nth-child(2) { --i: 2; }
.features li:nth-child(3) { --i: 3; }
.features li:nth-child(4) { --i: 4; }
.features li:nth-child(5) { --i: 5; }

@keyframes slideFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* === WISHLIST COUNTER === */
#wishlist-display {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 1.4rem 0;
  box-shadow: var(--shadow-md);
}

#wishlist-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.04rem;
}

.pulse-ball {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: #ff8c00;
  animation: pulse 1.5s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255,140,0,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,140,0,0);   }
  100% { box-shadow: 0 0 0 0   rgba(255,140,0,0);   }
}

/* === VIDEO EMBED === */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 1.4rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius);
}

/* === BLOG POST CARD === */
.post-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  margin: 1.4rem 0;
  box-shadow: var(--shadow-md);
}

.post-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  text-align: left;
}

.post-card .post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.post-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* === FOOTER === */
footer {
  background: #1e1e1e;
  color: #ccc;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.88rem;
  margin-top: 3rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

footer a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover { text-decoration: underline; }

footer p + p { margin-top: 0.4rem; }

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .nav-container {
    flex-wrap: wrap;
    padding: 0.55rem 1rem;
    gap: 0;
  }

  .hamburger { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.2rem;
    padding: 0.5rem 0 0.2rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.35rem;
  }

  .nav-links.show { display: flex; }

  .nav-links a {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.6);
    border-radius: 0.5rem;
  }

  .nav-links a:hover {
    background: #ffe47a;
  }

  .header-bar h1 { font-size: 1.9rem; }
  .header-bar p  { font-size: 1rem; }

  .about,
  .mission,
  .contact {
    padding: 1.4rem 1.2rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 240px;
    border-radius: 0.8rem;
  }

  .hero-overlay {
    max-width: 94%;
    padding: 1.2rem 1.4rem;
  }

  .hero-overlay h1 { font-size: 1.75rem; }
  .hero-overlay .tagline { font-size: 0.95rem; }

  .features { padding: 1.4rem 1.2rem; }

  #phrase-container {
    padding: 1.4rem;
    margin: 0.8rem auto;
  }

  #bambara { font-size: 1.55rem; }
  #english { font-size: 1.05rem; }

  #wishlist-display { padding: 1.4rem; }
  #wishlist-number { font-size: 2.4rem; }

  .post-card { padding: 1.2rem; }

  footer {
    border-radius: 0;
    margin-top: 2rem;
  }

  section h2 { font-size: 1.4rem; }

  iframe { max-width: 100%; }
}
