/**
 * Single Template Styles
 */

/* ------------------------------------------------------------------------- *
 *  1. Layout Containers
 * ------------------------------------------------------------------------- */

.software-layout-container,
.casino-layout-container,
.game-layout-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.game-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.game-layout__content {
  flex: 0 0 100%;
  max-width: 100%;
}

.game-layout__sidebar {
  flex: 0 0 100%;
  max-width: 100%;
}

.game-layout--no-sidebar .game-layout__content {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 921px) {
  .game-layout__content {
    flex: 0 0 calc(66.66% - 15px);
    max-width: calc(66.66% - 15px);
  }
  .game-layout__sidebar {
    flex: 0 0 calc(33.33% - 15px);
    max-width: calc(33.33% - 15px);
  }

  .game-layout--no-sidebar .game-layout__content {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------------- *
 *  2. Sidebar Common Blocks
 * ------------------------------------------------------------------------- */

.sidebar-block {
  background: var(--ast-global-color-4, #ffffff);
  border: 1px solid var(--ast-global-color-7, #d1d5db);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.sidebar-block__inner {
  padding: 24px;
  text-align: center;
}

.sidebar-block__image {
  margin-bottom: 20px;
}

.sidebar-block__image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sidebar-block__title {
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------------- *
 *  3. Page Sections
 * ------------------------------------------------------------------------- */

.entry-header {
  margin-bottom: 25px;
}

.section-title {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ast-global-color-2);
}

.casino-games-section,
.software-games-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--ast-global-color-7);
}

/* ------------------------------------------------------------------------- *
 *  4. Components - Game/Casino Details
 * ------------------------------------------------------------------------- */

.details-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--ast-global-color-7);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}

.details-card__title {
  margin: 0;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ast-global-color-2);
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-bottom: 1px solid var(--ast-global-color-7);
}

.details-list {
  display: flex;
  flex-direction: column;
}

.details-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ast-global-color-7);
  transition: background 0.2s ease;
}

.details-list__item:last-child {
  border-bottom: none;
}

.details-list__label {
  flex: 0 0 120px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ast-global-color-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-list__value {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--ast-global-color-2);
  word-break: break-word;
}

/* Rating Badge modifier */
.details-list__item--rating .details-list__value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: linear-gradient(
    135deg,
    var(--ast-global-color-0) 0%,
    var(--ast-global-color-1) 100%
  );
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(4, 107, 210, 0.3);
}

/* Software Tags */
.details-tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px 4px 2px 0;
  background: var(--ast-global-color-5);
  color: var(--ast-global-color-0);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.details-tag:hover {
  background: var(--ast-global-color-0);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------------- *
 *  5. Components - Iframe & Action
 * ------------------------------------------------------------------------- */

.game-iframe {
  margin-bottom: 35px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-iframe__wrapper iframe {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.btn-affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(
    135deg,
    var(--ast-global-color-0) 0%,
    var(--ast-global-color-1) 100%
  );
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(4, 107, 210, 0.4);
  transition: all 0.3s ease;
}

.btn-affiliate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 107, 210, 0.5);
  color: #ffffff;
}

/* ------------------------------------------------------------------------- *
 *  6. Responsive Adjustments
 * ------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .details-list__item {
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
  }

  .details-list__label {
    flex: none;
    font-size: 12px;
  }

  .details-card__title {
    padding: 16px;
    font-size: 16px;
  }
}
