/* style/betting-history.css */

:root {
  --color-primary: #FF8C1A;
  --color-secondary: #FFA53A;
  --color-background: #0D0E12;
  --color-card-bg: #17191F;
  --color-text-main: #FFF3E6;
  --color-border: #A84F0C;
  --color-glow: #FFB04D;
  --color-deep-orange: #D96800;
}

.page-betting-history {
  font-family: Arial, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-background);
  line-height: 1.6;
}

.page-betting-history__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-betting-history__section {
  padding: 40px 0;
}

.page-betting-history__section-title {
  font-size: 2.5em;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-betting-history__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--color-text-main);
}

/* Hero Section */
.page-betting-history__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, var(--color-background) 0%, rgba(23, 25, 31, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

.page-betting-history__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover; /* Default to cover for desktop */
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 0 30px rgba(255, 140, 26, 0.4);
}

.page-betting-history__hero-content {
  max-width: 900px;
  margin: 0 auto 30px;
  z-index: 1;
  padding: 0 20px;
}

.page-betting-history__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.6);
}

.page-betting-history__hero-description {
  font-size: 1.2em;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

.page-betting-history__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-betting-history__btn-primary,
.page-betting-history__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-betting-history__btn-primary {
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-betting-history__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

.page-betting-history__btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-betting-history__btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

/* Importance Section */
.page-betting-history__importance-section {
  background-color: var(--color-background);
}

.page-betting-history__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-betting-history__feature-card {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-betting-history__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 140, 26, 0.2);
}

.page-betting-history__card-title {
  font-size: 1.5em;
  color: var(--color-secondary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-betting-history__card-text {
  color: var(--color-text-main);
  font-size: 1em;
}

/* How To View Section */
.page-betting-history__how-to-view-section {
  background-color: var(--color-card-bg);
}

.page-betting-history__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-betting-history__step-card {
  background-color: var(--color-background);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
}

.page-betting-history__step-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}

.page-betting-history__step-card .page-betting-history__card-title {
  color: var(--color-primary);
}

.page-betting-history__cta-banner {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(255, 140, 26, 0.5);
}

.page-betting-history__cta-text {
  font-size: 1.8em;
  color: var(--color-text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

/* Bet Types Section */
.page-betting-history__bet-types-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-betting-history__list-item {
  background-color: var(--color-card-bg);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-betting-history__list-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-betting-history__list-title {
  font-size: 1.3em;
  color: var(--color-secondary);
  margin: 0;
}

.page-betting-history__list-text {
  color: var(--color-text-main);
  font-size: 0.95em;
  margin: 5px 0 0;
}

/* Security Section */
.page-betting-history__security-section {
  background-color: var(--color-deep-orange);
  background: linear-gradient(135deg, var(--color-deep-orange) 0%, var(--color-primary) 100%);
  color: var(--color-text-main);
}

.page-betting-history__security-section .page-betting-history__section-title {
  color: var(--color-text-main);
}

.page-betting-history__security-section .page-betting-history__section-description {
  color: var(--color-text-main);
}

.page-betting-history__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-betting-history__security-item {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--color-glow);
  box-shadow: 0 0 20px rgba(255, 176, 77, 0.3);
}

.page-betting-history__item-title {
  font-size: 1.4em;
  color: var(--color-glow);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-betting-history__item-text {
  font-size: 1em;
  color: var(--color-text-main);
}

/* FAQ Section */
.page-betting-history__faq-section {
  background-color: var(--color-background);
}

.page-betting-history__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-betting-history__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-betting-history__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  background-color: var(--color-card-bg);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-betting-history__faq-question::-webkit-details-marker {
  display: none;
}

.page-betting-history__faq-question:hover {
  background-color: rgba(255, 140, 26, 0.1);
}

.page-betting-history__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-secondary);
  transition: transform 0.3s ease;
}

.page-betting-history__faq-item[open] .page-betting-history__faq-toggle {
  transform: rotate(45deg);
}

.page-betting-history__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--color-text-main);
  line-height: 1.6;
}

.page-betting-history__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-betting-history__final-cta-section {
  background-color: var(--color-card-bg);
  text-align: center;
  padding-bottom: 60px;
}

.page-betting-history__final-cta-section .page-betting-history__cta-buttons {
  margin-top: 40px;
}

/* General image styling */
.page-betting-history img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-betting-history__container {
    padding: 20px 30px;
  }

  .page-betting-history__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-betting-history__section-title {
    font-size: 2em;
  }

  .page-betting-history__hero-image {
    max-width: 1000px;
  }

  .page-betting-history__steps-grid,
  .page-betting-history__features-grid,
  .page-betting-history__security-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-betting-history__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-betting-history__section {
    padding: 30px 0;
  }

  /* Hero Section */
  .page-betting-history__hero-section {
    padding-top: 10px !important;
  }
  
  .page-betting-history__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset; /* Remove aspect ratio for contain */
    max-height: none; /* Remove max-height constraint */
  }

  .page-betting-history__hero-content {
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-betting-history__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .page-betting-history__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-betting-history__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Buttons */
  .page-betting-history__btn-primary,
  .page-betting-history__btn-secondary,
  .page-betting-history a[class*="button"],
  .page-betting-history a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-betting-history__cta-buttons,
  .page-betting-history__button-group,
  .page-betting-history__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* Section Titles & Descriptions */
  .page-betting-history__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-betting-history__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Features Grid */
  .page-betting-history__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Steps Grid */
  .page-betting-history__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-betting-history__step-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-betting-history__cta-banner {
    padding: 20px;
    margin-top: 40px;
  }

  .page-betting-history__cta-text {
    font-size: 1.4em;
  }

  /* Bet Types List */
  .page-betting-history__bet-types-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-betting-history__list-item {
    padding: 15px;
    flex-direction: row; /* Keep row layout but adjust spacing */
    align-items: flex-start;
  }

  .page-betting-history__list-icon {
    width: 50px;
    height: 50px;
  }

  .page-betting-history__list-title {
    font-size: 1.1em;
  }

  .page-betting-history__list-text {
    font-size: 0.9em;
  }

  /* Security Features */
  .page-betting-history__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ Section */
  .page-betting-history__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-betting-history__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Final CTA Section */
  .page-betting-history__final-cta-section .page-betting-history__cta-buttons {
    margin-top: 30px;
    flex-direction: column;
    gap: 15px;
  }

  /* Universal image responsive styles for content area */
  .page-betting-history img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-betting-history__section,
  .page-betting-history__card,
  .page-betting-history__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}