/* ==========================================================================
   HOW TO PLAY CRAPS CUSTOM STYLES
   Project: BET SMART WIN BIGGER - Static HTML/CSS/JS Platform
   ========================================================================== */

/* Hero Section */
.craps-hero {
  position: relative;
  background-image: url('../images/how-to-play-craps-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fallback background if the user hasn't uploaded the image yet */
@supports not (background-image: url('../images/how-to-play-craps-hero.png')) {
  .craps-hero {
    background-color: #121212;
  }
}

.craps-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%); */
  z-index: 1;
}

/* Ambient Red Glow on Right side of Hero */
.craps-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -250px;
  width: 600px;
  height: 600px;
  background-color: #D40E37;
  opacity: 0.25;
  filter: blur(110px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.craps-hero .container {
  position: relative;
  z-index: 2;
}

.craps-hero-content {
  text-align: left;
}

.craps-hero-title {
  font-family: var(--font-heading);
  font-size: 4.6rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -1px;
}

.craps-hero-title .red-text {
  color: #FF154B;
  display: inline-block;
  font-weight: 700;
}

/* Content & Grid Section */
.craps-content {
  padding: 100px 0 120px;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.craps-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

.craps-image-wrap {
  position: relative;
  z-index: 2;
}

.craps-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: block;
}

/* Fallback if the main content image is not loaded yet */
@supports not (background-image: url('../images/switch-blackjack-to-craps.png')) {
  .craps-image-wrap::before {
    content: '';
    display: block;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background-color: #1a1a1a;
    border-radius: 12px;
  }
}

.craps-text-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.craps-section-title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.15;
}

.craps-section-title .red-text {
  color: #FF154B;
}

.craps-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: #d6d6d6;
  font-weight: 400;
  margin: 0;
}

/* Links Section Styles */
.craps-links-section {
  padding: 0px 0 100px;
  background-color: #000000;
}

.craps-links-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.craps-links-col {
  display: flex;
  flex-direction: column;
}

.craps-links-col.right-col {
  align-items: flex-end;
  text-align: right;
}

.craps-links-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: #D6D6D6;
  margin-bottom: 20px;
  text-transform: none;
}

.craps-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.craps-links-list.horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.craps-links-list.vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.craps-links-list li {
  display: block;
}

.craps-links-list li a {
  font-family: var(--font-body);
  font-size: 18px;
  color: #D6D6D6;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-normal);
  font-weight: 400;
  white-space: nowrap;
}

.craps-links-list li a:hover,
.craps-links-list li a.active {
  color: #FF154B;
}

/* Pass Line Bet Section */
.craps-passline-section {
  padding: 0 0 100px;
  background-color: #000000;
  position: relative;
}

.craps-passline-card {
  background-color: rgba(255, 255, 255, 0.03);
  background-image: linear-gradient(120deg, rgba(190, 28, 66, 0.7) 0%, transparent 75%);
  border-radius: 16px;
  padding: 50px;
  /* border: 1px solid rgba(255, 21, 75, 0.15); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

/* Ambient glow inside the card */
.craps-passline-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: #FF154B;
  opacity: 0.15;
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.craps-passline-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.craps-passline-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.craps-passline-title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.craps-passline-title .red-text {
  color: #FF154B;
}

.craps-passline-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: #d6d6d6;
  font-weight: 400;
  margin: 0;
}

.craps-passline-text a.red-link {
  color: #d6d6d6;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-normal);
}

.craps-passline-text a.red-link:hover {
  color: #ff527b;
}

.craps-passline-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.craps-passline-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.craps-passline-image-wrap:hover .craps-passline-img {
  transform: scale(1.02);
}

/* Don't Pass Line Bet Section */
.craps-dontpass-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #3d0c15 0%, rgba(255, 255, 255, 0.04) 100%);
  position: relative;
  overflow: hidden;
}

/* Come Bet Section */
.craps-comebet-section {
  padding: 80px 0 120px;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.craps-comebet-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .craps-hero-title {
    font-size: 3.2rem;
  }

  .craps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .craps-img {
    max-width: 500px;
    margin: 0 auto;
  }

  .craps-section-title {
    font-size: 34px;
  }

  .craps-content {
    padding: 70px 0 80px;
  }

  .craps-links-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .craps-links-col.right-col {
    align-items: flex-start;
    text-align: left;
  }

  .craps-passline-card {
    padding: 40px;
  }

  .craps-passline-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .craps-passline-title {
    font-size: 38px;
  }

  .craps-passline-img {
    max-width: 500px;
  }

  .craps-dontpass-section {
    padding: 60px 0;
  }

  .craps-comebet-section {
    padding: 0 0 80px;
  }

  .craps-comebet-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .craps-hero {
    height: 320px;
  }

  .craps-hero-title {
    font-size: 2.5rem;
  }

  .craps-section-title {
    font-size: 28px;
  }

  .craps-content {
    padding: 60px 0 70px;
  }

  .craps-links-list.horizontal {
    flex-direction: column;
    gap: 12px;
  }

  .craps-passline-card {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .craps-passline-title {
    font-size: 30px;
  }

  .craps-passline-text {
    font-size: 16px;
  }

  .craps-dontpass-section {
    padding: 50px 0;
  }

  .craps-comebet-section {
    padding: 0 0 70px;
  }
}