.header-box {
    background: #f5f5f5;
    color: #363636;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: none;
    text-align: center;
  }
  
  .header-box h1 {
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
  }
  
  .header-box p {
    font-weight: 300;
    margin-bottom: 0.2rem;
  }
  
  .wrap-button-text {
    height: 64px;
    white-space: inherit;
}

/* Club grid layout - restore original Bulma grid behavior */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

@media screen and (max-width: 768px) {
  .clubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .clubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .clubs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1216px) {
  .clubs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Club card styles */
.club-card {
  position: relative;
  display: block;
}

.club-button-container {
  display: block;
}

.club-card .wrap-button-text {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-card-star {
  position: absolute;
  top: -11px;
  right: -12px;
  z-index: 10;
  background: transparent !important;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
}

.club-card-star:hover {
  color: #ffab00;
}

.club-card-star.star-button.starred {
  color: #ffab00 !important;
}

/* Starred club highlighting */
.club-card.club-starred {
  border: 2px solid #ffc107 !important;
  border-radius: 6px;
}

.club-card .button.club-starred {
  background-color: #fff3cd !important;
  border: none !important;
}

.fixed-column {
  white-space: nowrap;
  width: 1%;
}

.expand-column {
  width: auto;
}

/* Player card styles */
.mobile-player-card {
  position: relative;
}

-player-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.player-card-star {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 1;
}

.player-card-id {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 1;
}

/* Starred player highlighting */
.player-starred {
  background-color: #fff3cd !important;
  border: 2px solid #ffc107 !important;
}

/* Star button styles */
.star-button {
  background: white;
  border: none;
  cursor: pointer;
  font-size: 1.3em;
  color: #ccc;
  transition: color 0.2s;
}

.star-button.starred {
  color: #ffc107;
}

.star-button:hover {
  color: #ffab00;
}

/* Table cell vertical alignment */
.table td {
  vertical-align: middle !important;
}

/* Centered table */
.table-centered {
  margin-left: auto;
  margin-right: auto;
}

/* Player name and ranking alignment */
.player-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== NAVBAR STYLES ===== */

/* Always visible navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Larger navbar logo and title */
.navbar-brand .navbar-item .icon-text {
  font-size: 1.5rem;
}

.navbar-brand .navbar-item .icon-text .icon {
  font-size: 1.5rem;
}

/* Hamburger styling - let Bulma handle the animation, just ensure visibility */
.navbar-burger span {
  background-color: #363636 !important;
}

/* Desktop button height matching search box */
.desktop-support-btn {
  height: 3em;
}

/* Ensure support button matches search input height exactly */
.navbar-item .desktop-support-btn {
  height: 3em;
  padding: 0.5em 0.75em;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

/* Text visibility for mobile/tablet buttons */
.mobile-text {
  display: inline;
}

.tablet-text {
  display: none;
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .mobile-text {
    display: none;
  }

  .tablet-text {
    display: inline;
  }
}

/* Mobile & Tablet navbar layout - for 2 smallest screen sizes only */
@media screen and (max-width: 1023px) {
  .navbar-brand {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0;
  }

  /* Burger icon - positioned at far left */
  .navbar-burger.is-hidden-desktop {
    order: 1;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    display: flex !important;
  }

  /* Logo/Title - centered */
  .navbar-brand .navbar-item:not(.mobile-tablet-support-btn) {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  /* Donation button - positioned at far right */
  .mobile-tablet-support-btn.is-hidden-desktop {
    order: 3;
    margin-left: auto;
    padding-right: 0.75rem;
    flex-shrink: 0;
    display: block !important;
  }
}

/* Ensure body content doesn't overlap with sticky navbar */
body {
  padding-top: 0;
}

/* ===== PLAYER SEARCH STYLES ===== */

/* Search container */
.player-search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

/* Search input */
.player-search-input {
  width: 100%;
  padding-left: 2.5em;
}

.player-search-input:focus {
  border-color: #3273dc;
  box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

/* Search icon - properly positioned inside input */
.player-search-container .control.has-icons-left .icon.is-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5em;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

.player-search-icon {
  color: #7a7a7a;
  font-size: 1rem;
}

/* Clear button - positioned inside input */
.player-search-container .control.has-icons-right .icon.is-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.5em;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  cursor: pointer;
  z-index: 4;
}

.player-search-clear {
  color: #7a7a7a;
  font-size: 1rem;
  transition: color 0.2s;
}

.player-search-clear:hover {
  color: #363636;
}

/* Search results dropdown */
.player-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  margin-top: 0.25rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  border: 1px solid #dbdbdb;
  min-width: 100%;
  width: max-content;
  max-width: 90vw;
}

.player-search-results.is-active {
  display: block;
}

/* Result items */
.search-result-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #4a4a4a;
  text-decoration: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f5f5f5;
  text-align: left;
  white-space: nowrap;
  min-width: max-content;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.is-active {
  background-color: #f5f5f5;
}

/* Result content */
.search-result-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: max-content;
}

.search-result-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-result-name {
  font-weight: 600;
  flex: 1;
  color: #363636;
}

.search-result-id {
  font-size: 0.75rem;
  font-weight: 400;
  color: #7a7a7a;
}


.search-result-rank {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Rank color classes matching Bulma tags */
.search-result-rank.is-danger {
  background-color: #f14668;
  color: #fff;
}

.search-result-rank.is-warning {
  background-color: #ffdd57;
  color: rgba(0, 0, 0, 0.7);
}

.search-result-rank.is-success {
  background-color: #48c78e;
  color: #fff;
}

.search-result-rank.is-info {
  background-color: #3e8ed0;
  color: #fff;
}

.search-result-rank.is-light {
  background-color: #f5f5f5;
  color: #363636;
}

.search-result-club {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin-left: 0;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .player-search-container {
    max-width: 100%;
  }

  .navbar-item .player-search-container {
    padding: 0.5rem;
  }

  .search-result-item {
    padding: 0.5rem 0.75rem;
  }

  .search-result-content {
    flex-wrap: wrap;
  }
}

/* Hide keyboard hint */
.search-keyboard-hint {
  display: none;
}

/* Greyed out players without matches */
.search-result-content.is-greyed-out {
  opacity: 0.5;
  color: #7a7a7a;
}

.search-result-item.search-result-no-matches:hover {
  background-color: transparent !important;
}

.search-result-no-matches .search-result-name {
  color: #7a7a7a !important;
}

/* Mobile search centering when burger menu is active */
#mobile-search {
  text-align: center;
  padding: 2rem 1rem;
}

#mobile-search .section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

#mobile-search .player-search-container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Ensure mobile search results are left-aligned like desktop */
#mobile-search .player-search-results .search-result-item {
  text-align: left;
}

#mobile-search .player-search-results .search-result-content {
  text-align: left;
}

/* Club header styles */
.club-header-border {
  border-bottom: 1px solid #dbdbdb;
}

.club-header-actions {
  text-align: right;
}

.club-address-link {
  font-size: 0.9rem;
}

.club-itinerary-button {
  min-width: auto;
}


/* Modal styles */
.modal-card-head,
.modal-card-foot {
  padding: 0.75rem 1rem;
}

.modal-card-foot-spaced {
  justify-content: space-between;
}

.modal-card-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}