/* ============================================================
   FINAL FIXED styles.css – albertagaming.ca
   ============================================================ */

/* ---- GLOBAL ---- */
body {
  margin: 0;
  padding: 0;
  background: #DCE6F1;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

/* ---- PAGE CONTAINER ---- */
.container {
  max-width: 980px;
  margin: 40px auto;
  padding: 8px 24px;
  background: #f5f6f8;
  border: 1px solid #d9dce1;
  border-radius: 12px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  color: #1f4e79;
  font-family: inherit;
}

h1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 12px;
  font-size: 2.2rem;
}

h2 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.2rem;
  margin: 16px 0 8px;
}

/* ---- FLAG LOGO ---- */
.flag-inline {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

/* ---- CONTENT CARDS ---- */
.content-card {
  background: #ffffff;
  border: 1px solid #d9dce1;
  padding: 18px 24px;
  border-radius: 8px;
  margin: 28px 0;
  line-height: 1.6;
}

/* ---- LANGUAGE SWITCHER (leave exactly as you liked it) ---- */
.lang-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.lang-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #1f4e79;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #1f4e79;
  min-width: 110px;
  text-align: center;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: #163956;
}

.lang-btn.active {
  background: #ffffff;
  color: #1f4e79;
  border: 1px solid #1f4e79;
}

.lang-btn.active:hover {
  background: #f2f6fb;
}

/* ---- GLOBAL LINK STYLE (content links only) ---- */
a:any-link {                      /* matches <a> with href, covers link + visited */
  color: #1f4e79;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* --- LANGUAGE BUTTON OVERRIDES (FIX) --- */
/* --- LANGUAGE BUTTON BASE --- */
.lang-btn {
  text-decoration: none;
}

/* Inactive language button (FRANÇAIS) */
.lang-btn:not(.active):any-link {
  color: #ffffff;
}

.lang-btn:not(.active):hover,
.lang-btn:not(.active):focus {
  color: #ffffff;
  text-decoration: none;
}

/* Active language button (ENGLISH) */
.lang-btn.active:any-link {
  color: #1f4e79; /* blue */
  cursor: default;
}

.lang-btn.active:hover,
.lang-btn.active:focus {
  color: #1f4e79;
  text-decoration: none;
}


a:hover,
a:focus {
  color: #c62828;
  text-decoration: underline;
}

/* Special red underlined links inside .value blocks */
.value a {
  color: #c62828;
  text-decoration: underline;
}

/* Inline branded links (if you ever use class="inline-link") */
a.inline-link:any-link {
  color: #1f4e79;
 text-decoration: none;
}
a.inline-link:hover,
a.inline-link:focus {
  color: #c62828;
  text-decoration: underline;
}

/* ---- FOOTER ---- */
footer {
  margin-top: 0px;
  text-align: center;
}

.footer-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 10px;
}

.footer-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #1a1a1a;
  line-height: 1.4;
  text-align: center;
}

/* Copyright link behaves like normal content links (no underline) */
.footer-text a {
  color: #1f4e79;
  text-decoration: none;
}

.footer-text a:hover {
  color: #c62828;
  text-decoration: underline;
}

.footer-logo {
  height: auto;
  max-width: 150px;
}

/* Misc */
.site-logo { width: 64px; height: 64px; display: inline-block; }
html { font-display: swap; }

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 640px) {
  .container {
    margin: 20px auto 16;
    padding: 12px 16px;
  }

  h1 {
    font-size: 1.9rem;
    flex-direction: column;
    gap: 12px;
  }

  .flag-inline {
    width: 56px;
    height: 56px;
  }


  .lang-box {
    flex-direction: column;
    align-items: center;
  }

  .lang-btn {
    width: 160px;
  }

  .footer-copy {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-copy a {
    order: 1;           /* logos first */
    margin: 0 6px;
  }

  .footer-text {
    order: 2;           /* copyright last */
    width: 100%;
    text-align: center;
  }
}

