/* style/glossary.css */

/* Variables for colors */
:root {
  --page-glossary-primary-color: #1A202C;
  --page-glossary-accent-color: #FFD700;
  --page-glossary-text-light: #F8F8F8; /* Light text for dark backgrounds */
  --page-glossary-text-dark: #1A202C;  /* Dark text for light backgrounds */
  --page-glossary-background-light: #F0F2F5;
  --page-glossary-background-dark: #1A202C;
  --page-glossary-card-bg: #2D3748; /* Slightly lighter dark for cards */
  --page-glossary-border-color: #4A5568;
}

.page-glossary {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-glossary-text-light);
  background-color: var(--page-glossary-background-dark);
}

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

/* Hero Section */
.page-glossary__hero {
  background: linear-gradient(135deg, var(--page-glossary-primary-color) 0%, #333d52 100%);
  color: var(--page-glossary-text-light);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-glossary__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:onebet88,glossary,abstract_pattern]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-glossary__hero > .page-glossary__container {
  position: relative;
  z-index: 1;
}

.page-glossary__title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--page-glossary-accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-glossary__subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Buttons */
.page-glossary__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
}

.page-glossary__btn--primary {
  background-color: var(--page-glossary-accent-color);
  color: var(--page-glossary-primary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-glossary__btn--primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-glossary__btn--secondary {
  background-color: transparent;
  color: var(--page-glossary-accent-color);
  border: 2px solid var(--page-glossary-accent-color);
}

.page-glossary__btn--secondary:hover {
  background-color: var(--page-glossary-accent-color);
  color: var(--page-glossary-primary-color);
  transform: translateY(-2px);
}

/* Introduction Section */
.page-glossary__introduction {
  background-color: var(--page-glossary-background-dark);
  padding: 60px 0;
  color: var(--page-glossary-text-light);
}

.page-glossary__heading {
  font-size: 2.5em;
  color: var(--page-glossary-accent-color);
  margin-bottom: 30px;
  text-align: center;
}

.page-glossary__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-glossary__list {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-glossary__list li {
  margin-bottom: 10px;
}

.page-glossary__list li strong {
  color: var(--page-glossary-accent-color);
}

.page-glossary__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Categories Section */
.page-glossary__categories {
  background-color: var(--page-glossary-card-bg);
  padding: 60px 0;
  color: var(--page-glossary-text-light);
}

.page-glossary__categories .page-glossary__heading {
  margin-bottom: 40px;
}

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

.page-glossary__card {
  background-color: var(--page-glossary-primary-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-glossary-border-color);
}

.page-glossary__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-glossary__card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--page-glossary-accent-color));
}

.page-glossary__card-title {
  font-size: 1.8em;
  color: var(--page-glossary-accent-color);
  margin-bottom: 15px;
}

.page-glossary__card-description {
  font-size: 1em;
  margin-bottom: 25px;
  color: #CBD5E0; /* Lighter text for description */
}

/* Call to Action Section */
.page-glossary__cta {
  background-color: var(--page-glossary-background-dark);
  padding: 80px 0;
  text-align: center;
  color: var(--page-glossary-text-light);
}

.page-glossary__cta .page-glossary__heading {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-glossary__cta .page-glossary__text {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.2em;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-glossary__title {
    font-size: 2.5em;
  }

  .page-glossary__subtitle,
  .page-glossary__text,
  .page-glossary__list li {
    font-size: 1em;
  }

  .page-glossary__heading {
    font-size: 2em;
  }

  .page-glossary__grid {
    grid-template-columns: 1fr;
  }

  .page-glossary__card {
    padding: 25px;
  }

  .page-glossary__card-title {
    font-size: 1.5em;
  }

  .page-glossary__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-glossary__cta .page-glossary__heading {
    font-size: 2.2em;
  }

  .page-glossary__cta .page-glossary__text {
    font-size: 1.1em;
  }

  .page-glossary__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-glossary__hero,
  .page-glossary__introduction,
  .page-glossary__categories,
  .page-glossary__cta {
    padding: 40px 0;
  }

  .page-glossary__title {
    font-size: 2em;
  }

  .page-glossary__heading {
    font-size: 1.8em;
  }

  .page-glossary__list {
    margin-left: 20px;
  }
}