/* ===== Horizontal scroll container ===== */
.stat-card-wrapper {
  margin-bottom: 1.5rem;
}

/* ===== Horizontal scroll wrapper ===== */
.stat-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stat-card-wrapper .row {
  display: flex;
  gap: 1rem;
}

.stat-scroll-wrapper .row {
  flex-wrap: nowrap;
}

.stat-card-wrapper .stat-col {
  flex: 1 0 auto; /* Allows cards to grow to fill available space */
  min-width: 180px; /* Ensures reasonable size on very small screens */
  max-width: 100%; /* Prevents overflow */
}

/* ===== Card: Fixed height ===== */
.stat-card-wrapper .card.single-stat {
  height: 180px;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  position: relative;
}

/* ===== Stat Content Container ===== */
.stat-card-wrapper .stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

/* ===== Icon ===== */
.stat-card-wrapper .stat-icon {
  height: 24px;
  width: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ===== Label ===== */
.stat-card-wrapper .stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.25rem;
  min-height: 2.2rem;
  display: flex;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ===== Value + Unit ===== */
.stat-card-wrapper .card-text {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: left;
  margin: 0;
}
.stat-unit {
  font-size: 1rem;
  margin-left: 0.25rem;
}

/* ===== Bottom Row Container ===== */
.stat-card-wrapper .bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
}

/* ===== More Info Icon ===== */
.stat-card-wrapper .more-info {
  color: #dbdbdb;
  flex-shrink: 0;
  cursor: pointer;
  background: #2f2f2f;
  border-radius: 12px;
  padding: 0.12rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile adjustments ===== */
@media (max-width: 576px) {
  .stat-card-wrapper .stat-label {
    font-size: 0.8rem;
  }
  .stat-card-wrapper .card-text {
    font-size: 1.4rem;
  }
  .stat-card-wrapper .stat-unit {
    font-size: 0.85rem;
  }
}

/* ===== Optional: scrollbar style ===== */
.stat-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.stat-scroll-wrapper::-webkit-scrollbar-track {
  background: #222;
}
.stat-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: #ffcc00;
  border-radius: 3px;
}

/* ===== Bootstrap Modal Customization ===== */
.stat-modal .modal-content {
  background: linear-gradient(180deg, #303030 0%, rgb(0, 0, 0) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 5px 5px rgba(0, 0, 0, 0.4);
  border-radius: 9px;
  border: none;
  min-height: 400px;
}

.stat-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.5rem 1rem;
}

.stat-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #dbdbdb;
  font-size: 1.2rem;
  font-weight: 600;
}

.stat-modal .modal-title img {
  height: 32px;
  width: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.stat-modal .btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffcc00'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em;
  border: 0;
  border-radius: 0.375rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.stat-modal .btn-close:hover {
  opacity: 1;
}

.stat-modal .modal-body {
  color: #dbdbdb;
  padding: 1rem 1.5rem 1.5rem;
  flex-grow: 1;
}

.stat-modal .table {
  color: #dbdbdb;
  margin-bottom: 0;
  background: transparent;
}

.stat-modal .table-responsive {
  max-height: 300px;
  overflow-y: auto;
}

.stat-modal .table tbody td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  background: transparent;
}

.stat-modal .spinner-border {
  width: 2rem;
  height: 2rem;
}

.stat-modal .alert {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #f8d7da;
}

.stat-loading-spinner {
  width: 20px;
  height: 20px;
  color: #aaa;
}

/* ===== Card Click Cursor ===== */
.stat-card-wrapper .card.single-stat {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-wrapper .card.single-stat:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* Jumbo Header */
.profile-pageName-area {
  position: absolute;
  bottom: 0px;
  right: 0%;
  background: white;
}

 /* event cards */
  .events-container {
    color: white;
  }

  .events-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .events-title span {
    color: #f5be1c;
    font-size: revert;
  }

  .event-card {
    background: white;
    color: #000;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
	border-top: 6px solid #f5be1c;
  }

  .event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .eventType-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .event-badge {
    background: #000;
    color: #f5be1c;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-left: 0.5rem;
  }

  .event-type-icon {
    width: 25px;
    height: 25px;
  }

  .event-matchup {
    display: flex;
    align-items: start;
    justify-content: space-around;
    margin-bottom: 0.5rem;
    flex-direction: column;
  }

  .team {
    text-align: center;
  }

  .team img {
    width: 40px;
    height: auto;
    display: block;
    margin: 0 auto 5px;
  }

  .vs {
    font-weight: bold;
  }

  .event-location, .event-location a{
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: initial;
  }


  .event-actions {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.4rem;
  }

  /* NEW vertical matchup layout */
  .event-matchup-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
  }

  .team-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .team-logo-meta {
    text-align: center;
  }

  .team-logo-meta img {
    width: 40px;
    height: auto;
    display: block;
    margin-bottom: 4px;
  }

  .team-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #555;
  }

  .team-name {
    font-size: 1rem;
    font-weight: 500;
  }

  .event-vs {
    font-weight: bold;
    text-align: left;
    width: 100%;
  }

/* lineup cards */
  .lineup-card {
    background: white;
    color: #000;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    border-top: 6px solid #f5be1c;
    margin-top: 2rem;
  }
  
  
  .lineup-date {
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .lineup-location {
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }
  
  .lineup-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    position: relative;
  }
  
  .lineup-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 45%;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
  }
  
  .lineup-team:hover {
    background-color: #f0f0f0;
  }
  
  .lineup-team img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
  }
  
  .lineup-team-name {
    font-weight: bold;
    text-align: center;
  }
  
  .lineup-team-division {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
  }
  
/* Default lineup button (disabled state) */
.lineup-btn {
  border: none;
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: not-allowed;
  font-weight: bold;
  width: 80px;
  text-align: center;
  background-color: #e6e6e6;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

/* Enabled lineup button before selection */
.lineup-btn.has-lineup {
  background-color: white;
  color: #000;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Selected lineup button */
.lineup-btn.active {
  background-color: #f5be1c;
  color: #000;
  box-shadow: none;
}

  .lineup-vs {
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .lineup-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #000;
    color: #f5be1c;
    padding: 3px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .lineup-details {
    display: none;
  }
  
  table.lineup-table {
      box-shadow: none;
  }
 
