/* HARDCORE H1 Title Style */
/* Import Bevan font (if not already loaded) */

/* load font (you can also enqueue via functions.php) */
@import url("https://fonts.googleapis.com/css2?family=Bevan&display=swap");

h1.hcfbb-site-title {
  font-family: "Bevan", serif;
  font-weight: 400; /* Bevan-Regular (default weight) */
  font-size: 8rem; /* make it big — adjust as needed */
  line-height: 1.1;
  text-transform: uppercase;
  color: #020202; /* black text color */
  -webkit-text-stroke: 2px #faa700; /* gold stroke */
  text-shadow: 0 0 10px #dcc3ff, /* main glow */ 0 0 20px #dcc3ff,
    /* larger glow */ 0 0 30px #dcc3ff; /* extra glow for depth */
  margin: 0;
  padding: 0;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  h1.hcfbb-site-title {
    font-size: 4rem;
    -webkit-text-stroke: 1px #faa700;
  }
}

@media (min-width: 800px) {
  #events-container {
    width: 60%;
    margin: 0 auto;
  }
}

#events-container.wp-block-query {
  line-height: normal;
}

/* Inverted style */
h1.hcfbb-site-title-inverted {
  font-family: "Bevan", serif;
  font-weight: 400;
  font-size: 8rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: #faa700; /* gold text */
  -webkit-text-stroke: 2px #020202; /* black stroke */
  text-shadow: 0 0 10px #dcc3ff, 0 0 20px #dcc3ff, 0 0 30px #dcc3ff;
  margin: 0;
  padding: 0;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  h1.hcfbb-site-title-inverted {
    font-size: 4rem;
    -webkit-text-stroke: 1px #020202;
  }
}

/* Optional: soft glowing pulse */
@keyframes glowPulse {
  0% {
    text-shadow: 0 0 8px #dcc3ff, 0 0 20px #dcc3ff, 0 0 35px #dcc3ff;
  }
  100% {
    text-shadow: 0 0 15px #dcc3ff, 0 0 35px #dcc3ff, 0 0 60px #dcc3ff;
  }
}

#load-more-events:hover {
  background: #614080;
}
.load-more-wrapper {
  text-align: center;
  margin-top: 20px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.event-item {
  background: hsla(0, 4%, 14%, 0.9);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Container for multiple shimmer cards */
.events-shimmer-container {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Card skeleton */
.event-shimmer-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Shimmer thumbnail placeholder */
.shimmer-thumb {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* Text line placeholders */
.shimmer-line {
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* Shorter date line */
.shimmer-line.short {
  width: 40%;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

/* --- Event Card Base --- */
.event-card {
  background: #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 20px;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

/* --- Common Thumbnail Styles --- */
.event-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.2) brightness(0.9);
  transition: all 0.4s ease;
}

/* --- Duotone Overlays --- */
.event-thumbnail::after {
  content: ""; /* ← required for pseudo-element to show */
  position: absolute;
  inset: 0;
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Future Events = cool blue/purple */
.future-event .event-thumbnail::after {
  background: linear-gradient(135deg, #00c6ff88 0%, #0072ff88 100%);
}

/* Past Events = warm orange/red */
.past-event .event-thumbnail::after {
  background: linear-gradient(135deg, #ff996688 0%, #ff5e6288 100%);
}

/* Hover effect */
.event-card:hover .event-thumbnail::after {
  opacity: 0.4;
}
.event-card:hover .event-thumbnail img {
  filter: grayscale(0%) contrast(1.05) brightness(1);
}

/* --- Titles & Dates --- */
.event-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.8rem;
}

.event-date {
  color: #bbb;
  font-size: 0.95rem;
}

.btn-primary {
  background: #9b51e0;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #432c59;
}

.btn-link {
  display: inline-block; /* shrink-to-fit */
  width: auto;
  padding: 6px 10px;
  font-size: 0.875rem;
  line-height: 1;
  border: none;
  border-radius: 6px;
  background-color: #0072ff;
  color: #ffffff; /* stable text colour */
  text-decoration: none; /* remove underline */
  cursor: pointer;
  transition: background-color 0.25s ease; /* only animate background */
  -webkit-appearance: none; /* normalize buttons in Safari */
  -moz-appearance: none;
  appearance: none;
}

/* Ensure anchor-specific states do not reintroduce underline or change colour */
.btn-link:link,
.btn-link:visited,
.btn-link:hover,
.btn-link:active,
.btn-link:focus {
  color: #ffffff; /* keep text white in all states */
  text-decoration: none !important; /* remove underline even if higher specificity */
}

/* Hover changes only the background, not text colour */
.btn-link:hover,
.btn-link:focus {
  background-color: #005fdd;
  color: #ffffff; /* explicit here to override other rules */
}

/* If your HTML is <button><a> or <a><span> etc., also protect child anchors/spans */
.btn-link a,
.btn-link span {
  color: inherit !important;
  text-decoration: none !important;
}

/* Optional: visible focus outline for keyboard users */
.btn-link:focus {
  outline: 3px solid rgba(0, 114, 255, 0.25);
  outline-offset: 2px;
}

/* Table Styles

/* ===== Clean Purple Header Table ===== */
.event-results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Roboto", "Open Sans", sans-serif;
  font-size: 16px;
  margin: 2rem 0;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

/* Header */
.event-results-table thead {
  background-color: #6a11cb; /* Purple */
  color: #fff;
}

.event-results-table th {
  padding: 14px 18px;
  font-weight: 600;
  text-align: left;
}

/* Body */
.event-results-table td {
  padding: 12px 18px;
  color: #333;
  border-top: none; /* Remove grid lines */
}

/* Alternating rows */
.event-results-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover effect */
.event-results-table tbody tr:hover {
  background-color: #f1f1f9;
  transition: background-color 0.2s ease;
}

/* Rounded corners */
.event-results-table thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.event-results-table thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.event-results-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.event-results-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

/* Mobile-friendly */
@media (max-width: 600px) {
  .event-results-table th,
  .event-results-table td {
    padding: 10px 8px;
    font-size: 14px;
  }
}

.return-to-events {
  display: inline-block;
  background-color: #6a11cb; /* Adjust to your theme's primary color */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.return-to-events:hover {
  background-color: #4a0ca8; /* Adjust to a darker shade */
}

html {
  scroll-behavior: smooth;
}

.event-division-section {
  scroll-margin-top: 500px; /* optional if you have sticky header */
}

.event-info-wrap .wp-block-heading {
  color: #ffffff !important;
}
