/* ==========================================================================
   DP World ILT20 - Raffle Winners Page (/raffle)
   Banner re-uses css/belts-page.css (.belts-hero-banner); title lines re-use .lime-lines from css/style.css.
   Classes use the rfl- prefix. Logic: js/raffle-page.js, docs: docs/raffle-page.md
   ========================================================================== */

.rfl-page-body {
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Page Header Banner: breadcrumb and title
   -------------------------------------------------------------------------- */
.rfl-hero-banner .belts-banner-content {
  padding-top: 24px;
  padding-bottom: 28px;
}

.rfl-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(47, 5, 87, 0.85);
  border: 1px solid rgba(139, 46, 189, 0.5);
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.rfl-breadcrumbs a {
  color: #ffffff;
  transition: color 0.2s;
}

.rfl-breadcrumbs a:hover {
  color: var(--color-lime-primary);
}

.rfl-crumb-sep {
  color: var(--color-pink-primary);
  font-size: 12px;
}

.rfl-crumb-active {
  color: var(--color-lime-primary);
}

.rfl-title-wrap {
  display: flex;
  margin-top: 30px;
}

.rfl-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Content area: terms line, messages, match list
   -------------------------------------------------------------------------- */
.rfl-section {
  flex: 1;
  padding: 36px 0 70px;
}

/* Same width as the banner content (.belts-banner-content), so the list lines up with the title */
.rfl-inner {
  max-width: calc(1280px + 40px);
}

.rfl-terms {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #2a0a3d;
}

.rfl-terms a {
  color: var(--color-pink-primary);
  font-weight: 700;
}

.rfl-terms a:hover {
  text-decoration: underline;
}

.rfl-intro {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  color: #2a0a3d;
  white-space: pre-line;
}

.rfl-message,
.rfl-empty {
  margin: 0;
  padding: 28px 24px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #5b3a73;
  text-align: center;
}

.rfl-message[hidden] {
  display: none;
}

.rfl-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* --------------------------------------------------------------------------
   Match bar: heading | date and time | venue
   -------------------------------------------------------------------------- */
.rfl-match-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 28px;
  padding: 26px 20px;
  background: linear-gradient(90deg, #38004f 0%, #2f0557 60%, #4a0d6e 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(56, 0, 79, 0.18);
}

.rfl-match-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
}

.rfl-match-item + .rfl-match-item {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.rfl-match-item h2 {
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
}

.rfl-sep {
  margin: 0 12px;
  color: var(--color-lime-primary);
}

.rfl-time {
  white-space: nowrap;
}

.rfl-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--color-lime-primary);
}

/* Stadium icon: assets/stadiumicon.svg used as a mask so it takes the lime colour */
.rfl-icon-stadium {
  display: inline-block;
  width: 34px;
  height: 28px;
  background-color: var(--color-lime-primary);
  -webkit-mask: url('../assets/stadiumicon.svg') center / contain no-repeat;
  mask: url('../assets/stadiumicon.svg') center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Winners table
   -------------------------------------------------------------------------- */
.rfl-table-wrap {
  overflow: hidden;
  border: 1px solid #e3d6ee;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(56, 0, 79, 0.06);
}

.rfl-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rfl-table thead tr {
  background: linear-gradient(90deg, #4c0b78 0%, #38004f 100%);
}

.rfl-table th {
  padding: 22px 30px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-lime-primary);
  text-align: left;
  text-transform: uppercase;
  position: relative;
}

.rfl-table th + th::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.rfl-table td {
  padding: 11px 30px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #2a0a3d;
  overflow-wrap: anywhere;
}

.rfl-table td + td {
  border-left: 1px solid #e3d6ee;
}

.rfl-table tbody tr:nth-child(even) {
  background: #f6f0fa;
}

.rfl-table th:first-child,
.rfl-table td:first-child {
  width: 37%;
}

.rfl-table th.rfl-col-ticket,
.rfl-table td.rfl-col-ticket {
  width: 30%;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Tablet and mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .rfl-match-item {
    font-size: 18px;
    gap: 10px;
  }

  .rfl-table th {
    padding: 18px 20px;
    font-size: 20px;
  }

  .rfl-table td {
    padding: 10px 20px;
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .rfl-hero-banner .belts-banner-content {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .rfl-breadcrumbs {
    font-size: 12px;
    padding: 6px 12px;
  }

  .rfl-title-wrap {
    margin-top: 18px;
  }

  .rfl-page-title {
    font-size: 40px;
  }

  .rfl-section {
    padding: 24px 0 48px;
  }

  .rfl-terms {
    font-size: 17px;
  }

  .rfl-list {
    gap: 36px;
  }

  /* Match bar stacks: heading, date, venue one under the other */
  .rfl-match-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 18px 16px;
  }

  .rfl-match-item {
    justify-content: flex-start;
    padding: 0;
    font-size: 16px;
    text-align: left;
  }

  .rfl-match-item + .rfl-match-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 12px;
  }

  .rfl-match-heading {
    font-size: 20px;
  }

  .rfl-sep {
    margin: 0 8px;
  }

  .rfl-icon {
    width: 22px;
    height: 22px;
  }

  .rfl-icon-stadium {
    width: 26px;
    height: 22px;
  }

  .rfl-table th {
    padding: 14px 12px;
    font-size: 15px;
  }

  .rfl-table td {
    padding: 9px 12px;
    font-size: 15px;
  }

  .rfl-table th:first-child,
  .rfl-table td:first-child {
    width: 38%;
  }

  .rfl-table th.rfl-col-ticket,
  .rfl-table td.rfl-col-ticket {
    width: 29%;
  }
}
