/*
 * Pagination / Draw Navigation Styles – 4D King Results
 *
 * Styles for the previous/next draw buttons on single result pages
 * and the blog pagination.
 */

/* -------------------------------------------------------------------------- */
/*  1. Navigation Container                                                   */
/* -------------------------------------------------------------------------- */
.result-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.current-draw-indicator {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  min-width: 120px;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/*  2. Draw Navigation Buttons (Links)                                        */
/* -------------------------------------------------------------------------- */
.draw-nav-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.draw-nav-btn:hover {
  background: var(--primary-red);
  color: var(--white);
}

/* -------------------------------------------------------------------------- */
/*  3. Disabled State (for <a> tags)                                          */
/* -------------------------------------------------------------------------- */
.draw-nav-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* Add separator symbols between breadcrumb list items (except the first) */
.result-breadcrumbs ol li + li::before,
.pillar-breadcrumbs ol li + li::before {
  content: '›';
  margin: 0 5px;
  color: var(--grey);
  font-weight: 400;
}

/* -------------------------------------------------------------------------- */
/*  4. Blog Pagination                                                        */
/* -------------------------------------------------------------------------- */
.navigation.pagination {
  margin-top: 40px;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.navigation.pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.navigation.pagination .page-numbers.current {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.navigation.pagination .page-numbers:hover:not(.current) {
  background: var(--light-grey);
  color: var(--primary-red);
}

/* -------------------------------------------------------------------------- */
/*  5. Responsive                                                             */
/* -------------------------------------------------------------------------- */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .result-navigation {
    flex-wrap: nowrap;
    gap: 14px;
  }
}

/* --- Mobile (≤600px) --- */
@media (max-width: 600px) {
  .result-navigation {
    flex-wrap: nowrap;
    gap: 8px;
  }

  /* Previous / Next buttons – smaller padding and font */
  .draw-nav-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Calendar icon – keep original size */
  .calendar-icon-btn {
    flex-shrink: 0;
  }

  /* (Not used in your markup, but keep hidden if present) */
  .current-draw-indicator {
    display: none;
  }
}

/* --- Very small phones (≤360px): further reduce padding --- */
@media (max-width: 360px) {
  .draw-nav-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .calendar-icon-btn {
    width: 36px;
    height: 36px;
  }
}