/* =========================
   Global Styles
   ========================= */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #000;

  /* base color */
  background-color: #ffffff;

  /* subtle light gray pattern */
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent 20px
    );

  background-size: cover;
}

/* =========================
   Header + Navigation
   ========================= */
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 2em;
  position: relative;
}

/* Logo */
.logo {
  height: 50px;
}

/* Persistent CTA Button */
.cta-button-cta {
  display: inline-block;
  background: linear-gradient(45deg, #ff0000, #e40808, #ff4d4d);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.6em 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
  text-transform: uppercase;
  margin-left: 1em;
  white-space: nowrap;
}

/* Red pill button for poker CTA */
.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, #ff0000, #e40808, #ff4d4d);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.8em 2em;
  border-radius: 40px; /* pill shape */
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
  text-transform: uppercase;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hamburger Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 101;
}

.menu-toggle .bar {
  height: 4px;
  width: 100%;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Dropdown Menu */
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 2em;
  width: 220px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5em 0;
  border-radius: 8px;
  z-index: 100;
}

.nav-menu li {
  margin: 0.5em 0;
}

.nav-menu li a {
  color: black;
  text-decoration: none;
  padding: 0.5em 1em;
  display: block;
  font-weight: bold;
}

.nav-menu.show {
  display: flex;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   Hero Section
   ========================= */
.image-hero {
  background: url('images/hero.jpg') center/cover no-repeat;
  height: calc(50vh - 80px); /* full viewport minus header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

.image-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.image-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1em;
}

/* =========================
   Divider Section - Full Width
   ========================= */
.divider-section {
  position: relative;
  width: 100vw;
  margin: 0;
  padding: 0;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.divider-section .divider-image {
  width: 100vw;
  height: 400px;
  object-fit: cover;
  display: block;
}

.cta-button-secondary {
  position: absolute;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e40808;
  color: #fff;
  font-weight: bold;
  font-size: 1.4rem;
  padding: 0.6em 2em;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 3;
  text-align: center;
  white-space: nowrap;
}

/* =========================
   Sections
   ========================= */
section {
  padding: 6em 2em;
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 2em;
  border-radius: 12px;
  max-width: 100%; /* allow full width for mobile */
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 2px solid #3498db;
}

/* Alternate background */
section:nth-of-type(even) {
  background: rgba(245, 245, 245, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* =========================
   Section Content Alternating Left/Right
   ========================= */
.section-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2em;
}

section:nth-of-type(odd) .section-content {
  flex-direction: row;
  text-align: left;
}

section:nth-of-type(even) .section-content {
  flex-direction: row-reverse;
  text-align: right;
}

.section-content > * {
  flex: 1;
}

/* Force Videos and Socials sections to be centered */
#videos .section-content,
#socials .section-content {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

#videos .video-grid {
  justify-content: center;
}

#videos .video-card,
#socials .social-buttons {
  margin: 0 auto;
}

/* Giveaway Section */
.giveaway {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3em;
  padding: 4em 2em;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  max-width: 100%;
  margin: 2em auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #3498db;
}

.giveaway .giveaway-content img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 1.5em auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.giveaway .giveaway-form-container {
  background: white;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 650px;
}

.giveaway .giveaway-form-container iframe {
  width: 100%;
  height: 1200px; /* show all input fields */
  border: none;
  border-radius: 12px;
}

/* =========================
   Images in Sections
   ========================= */
.youtube-career .section-content div img,
.poker-career .section-content div img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* =========================
   Videos Grid
   ========================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
}

.video-card iframe {
  width: 100%;
  height: 200px;
}

/* =========================
   Social Buttons
   ========================= */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 2em;
}

.social-btn img {
  width: 50px;
  height: 50px;
}

/* =========================
   Footer
   ========================= */
footer {
  text-align: center;
  padding: 2em 1em;
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* =========================
   Mobile Responsive Adjustments
   ========================= */
@media screen and (max-width: 768px) {
  /* Stack all sections */
  .section-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Images resize */
  section img,
  .youtube-career .section-content div img,
  .poker-career .section-content div img,
  .giveaway .giveaway-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* CTA buttons scale */
  .cta-button,
  .cta-button-cta,
  .cta-button-secondary {
    font-size: 1rem;
    padding: 0.5em 1.5em;
    width: 90%;
    max-width: 300px;
    white-space: normal;
  }

  /* Giveaway form height */
  .giveaway .giveaway-form-container iframe {
    height: auto;
    min-height: 1000px;
  }

  /* Videos and social grid adjustments */
  .video-grid {
    grid-template-columns: 1fr;
  }

  .social-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}
