/* =========================================================
   Greatest Catch — main stylesheet
   ========================================================= */

:root{
  --color-orange-light: #ffb457;
  --color-crimson: #ff5c58;
  --color-purple: #4b2a72;
  --color-purple-dark: #2f1b4a;

  --color-red: #e63946;
  --color-red-dark: #b7222e;
  --color-green: #7ed957;
  --color-green-dark: #4caf3d;

  --color-text-dark: #221722;
  --color-text-light: #ffffff;

  --header-height: 84px;
  --radius-m: 12px;
  --radius-l: 22px;
  --max-width: 1180px;

  --shadow-soft: 0 10px 30px rgba(20, 8, 30, 0.25);
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* prevents any stray element from creating horizontal scroll */
}

body{
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text-light);
  overflow-x: hidden; /* prevents any stray element from creating horizontal scroll */

  background: linear-gradient(
    180deg,
    var(--color-orange-light) 0%,
    var(--color-crimson) 38%,
    var(--color-purple) 72%,
    var(--color-purple-dark) 100%
  );
  background-attachment: fixed;
}

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

a{
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: var(--header-height);
  padding: 10px 24px;
  background: rgba(20, 10, 30, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 100%;
}

.site-header__logo{
  display: flex;
  align-items: center;
  gap: 10px;
  /* allow the logo to shrink instead of forcing the whole header (and page) to overflow on narrow screens */
  flex: 1 1 auto;
  min-width: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.site-header__logo img{
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-header__logo .logo-text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* primary navigation (Bonuses / Reviews / App) */
.site-nav{
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link{
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-light);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible{
  background: rgba(126, 217, 87, 0.18);
  color: var(--color-green);
}

/* right-hand cluster: language switcher + CTA buttons */
.site-header__actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* --- language switcher --- */
.lang-switcher{
  position: relative;
}

.lang-switcher__current{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-switcher__current:hover{
  border-color: var(--color-green);
  background: rgba(255, 255, 255, 0.16);
}

.lang-switcher__current .flag{
  font-size: 18px;
  line-height: 1;
}

.lang-switcher__current .caret{
  font-size: 10px;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .caret{
  transform: rotate(180deg);
}

.lang-switcher{
  min-width: 0;
}

.lang-switcher__list{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-width: calc(100vw - 28px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1100;
}

.lang-switcher.is-open .lang-switcher__list{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang-switcher__item .flag{
  font-size: 18px;
  line-height: 1;
}

.lang-switcher__item:hover{
  background: rgba(230, 57, 70, 0.08);
  color: var(--color-red);
}

.lang-switcher__item.is-active{
  background: rgba(126, 217, 87, 0.16);
  color: var(--color-green-dark);
}

/* --- header CTA buttons --- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover{
  transform: translateY(-2px);
}

.btn--demo{
  background: transparent;
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn--demo:hover{
  background: rgba(126, 217, 87, 0.14);
}

.btn--play{
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: var(--color-text-light);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
}

.btn--play:hover{
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.55);
}

/* mobile burger button (hidden on desktop) */
.nav-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: var(--color-text-light);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

main{
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 40px clamp(20px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text-dark);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  line-height: 1.65;
}

/* ---- typography ---- */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6{
  font-weight: 800;
  line-height: 1.25;
  margin: 1.4em 0 0.6em;
  color: var(--color-text-dark);
}

main h1{
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 0;
  color: var(--color-red);
}

main h2{
  font-size: clamp(22px, 3vw, 32px);
  color: var(--color-red);
  border-left: 5px solid var(--color-green);
  padding-left: 14px;
}

main h3{
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--color-purple);
}

main h4{
  font-size: 18px;
  color: var(--color-text-dark);
}

main p{
  margin: 0 0 1.2em;
  font-size: 16px;
  color: var(--color-text-dark);
}

main a{
  color: var(--color-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

main a:hover{
  color: var(--color-green-dark);
}

main strong{
  color: var(--color-red);
}

main ul,
main ol{
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  font-size: 16px;
}

main ul li,
main ol li{
  margin-bottom: 0.5em;
}

main ul{
  list-style: none;
  padding-left: 0;
}

main ul li{
  position: relative;
  padding-left: 28px;
}

main ul li::before{
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-green-dark);
  font-weight: 900;
}

main blockquote{
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 5px solid var(--color-red);
  background: rgba(126, 217, 87, 0.09);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-style: italic;
  color: var(--color-purple);
}

main hr{
  border: none;
  border-top: 2px dashed rgba(75, 42, 114, 0.25);
  margin: 2.4em 0;
}

/* ---- images inside content ---- */

main img{
  border-radius: var(--radius-m);
  box-shadow: 0 8px 22px rgba(20, 8, 30, 0.18);
}

/* single image dropped between paragraphs */
main .content-image{
  width: 100%;
  margin: 1.8em auto;
}

/* image + caption template to place between paragraphs */
main figure.content-figure{
  margin: 1.8em 0;
  text-align: center;
}

main figure.content-figure img{
  width: 100%;
  margin: 0 auto;
}

main figure.content-figure figcaption{
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-purple);
  font-style: italic;
}

/* two images side by side (still no extra wrapping divs needed elsewhere) */
main .image-row{
  display: flex;
  gap: 20px;
  margin: 1.8em 0;
  flex-wrap: wrap;
}

main .image-row img{
  flex: 1 1 260px;
  margin: 0;
}

/* ---- tables ---- */

main table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 15px;
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(20, 8, 30, 0.12);
}

main table caption{
  text-align: left;
  font-size: 13px;
  color: var(--color-purple);
  margin-bottom: 8px;
}

main thead th{
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: var(--color-text-light);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  white-space: nowrap;
}

main tbody td,
main tbody th{
  padding: 12px 16px;
  border-bottom: 1px solid rgba(75, 42, 114, 0.12);
}

main tbody tr:nth-child(even){
  background: rgba(126, 217, 87, 0.06);
}

main tbody tr:last-child td{
  border-bottom: none;
}

/* ---- centered CTA button template ---- */

main .cta-wrapper{
  display: flex;
  justify-content: center;
  margin: 2.4em 0;
}

main .btn-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: #123312;
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(76, 175, 61, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

main .btn-cta:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(76, 175, 61, 0.55);
}

/* ---- demo block ---- */

main .demo-block{
  margin: 2.4em 0;
  padding: 30px clamp(18px, 4vw, 40px);
  text-align: center;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(126, 217, 87, 0.10) 100%);
  border: 2px dashed rgba(230, 57, 70, 0.35);
}

main .demo-block h2{
  margin-top: 0;
  border-left: none;
  padding-left: 0;
}

main .demo-block p{
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

main .demo-block .btn-cta{
  margin-top: 8px;
}

/* ---- author block ---- */

main .author-block{
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 2.6em 0 0.6em;
  padding: 24px clamp(18px, 4vw, 30px);
  border-radius: var(--radius-l);
  background: rgba(75, 42, 114, 0.05);
  border: 1px solid rgba(75, 42, 114, 0.14);
}

main .author-block__avatar{
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-green);
}

main .author-block__info{
  min-width: 0;
}

main .author-block__name{
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 800;
  color: var(--color-red);
}

main .author-block__role{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-purple);
}

main .author-block__text{
  margin: 0;
  font-size: 15px;
  color: var(--color-text-dark);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 60px) 50px;
}

.site-footer p{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* ---- responsible-gambling organisations links ---- */

.footer-orgs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-orgs li{
  margin: 0;
}

.footer-orgs a{
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: color 0.15s ease;
}

.footer-orgs a:hover{
  color: var(--color-text-light);
}

/* =========================================================
   404 PAGE
   ========================================================= */

main.not-found{
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

main.not-found .not-found__code{
  margin: 0;
  font-size: clamp(64px, 14vw, 140px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main.not-found h1{
  text-align: center;
  color: var(--color-purple);
}

main.not-found p{
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

main.not-found .cta-wrapper{
  margin-top: 1.6em;
}

/* =========================================================
   RESPONSIVE / MOBILE
   ========================================================= */

@media (max-width: 900px){
  .site-nav{
    display: none;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .site-header{
    flex-wrap: wrap;
  }

  .site-header__actions{
    order: 2;
    margin-left: auto;
  }

  /* full-width dropdown nav panel */
  .site-nav.is-open{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 4;
    gap: 4px;
    padding: 10px 4px 4px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 10px;
  }

  .site-nav.is-open .site-nav__link{
    text-align: center;
    padding: 12px;
  }
}

@media (max-width: 640px){
  .site-header{
    padding: 10px 14px;
  }

  .site-header__logo{
    font-size: 18px;
  }

  .site-header__logo img{
    height: 32px;
  }

  .btn{
    padding: 9px 14px;
    font-size: 12px;
  }

  main{
    margin: 20px auto;
    padding: 26px 18px;
    border-radius: var(--radius-m);
  }

  main .btn-cta{
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
  }

  main .image-row{
    flex-direction: column;
  }

  /* tables scroll horizontally instead of stretching the viewport */
  main table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  main thead,
  main tbody,
  main tr{
    display: table;
    width: 100%;
  }

  .site-footer p{
    font-size: 12px;
    text-align: left;
  }
}

@media (max-width: 380px){
  .lang-switcher__current .lang-code{
    display: none;
  }
}
.promo-btn-wrap{
  display: flex;
  justify-content: center;
  margin: 2.4em 0;
}

.promo-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7ed957 0%, #4caf3d 100%);
  color: #123312;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(76, 175, 61, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  animation: promo-btn-pulse 2.4s ease-in-out infinite;
}

.promo-btn:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(76, 175, 61, 0.65), inset 0 1px 0 rgba(255,255,255,0.5);
  filter: brightness(1.05);
}

.promo-btn:active{
  transform: translateY(0) scale(0.98);
}

@keyframes promo-btn-pulse{
  0%, 100% { box-shadow: 0 12px 28px rgba(76, 175, 61, 0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 12px 34px rgba(76, 175, 61, 0.75), inset 0 1px 0 rgba(255,255,255,0.5); }
}

@media (max-width: 640px){
  .promo-btn{
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
  }
}
.demo-block{
  margin: 2.4em 0;
}

.demo-block__frame-wrap{
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 30px rgba(20, 8, 30, 0.35);
}

.demo-block__frame{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px){
  .demo-block__frame-wrap{
    padding-top: 75%;
  }
}