/* ------------------- */
/* TEAM SELECTION PAGE */
/* ------------------- */
.gt-team-wrapper {
  background: rgba(255,255,255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 10px;
}
.gt-team-list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
}

.gt-selection-message {
    text-align: center;
}

.gt-team {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F5F5F5;
  border-radius: 5px;
  border: 2px solid #F5F5F5;
  padding: 0.4em;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s;
}

.gt-team-list:not(.selection-locked) .gt-team:not(.gt-results-page):hover {
  background: #CFCFCF;
}

.gt-team-list.selection-locked .gt-team {
  cursor: default;
}

.gt-team.selected {
  background: #b1eba8;
  border: 2px solid #45A735;
}

.gt-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gt-team > div {
    display: flex;
    flex-direction: column;
}

.gt-team span {
    line-height: 1em;
}

.gt-team small {
    text-transform: capitalize;
}

.gt-team.locked {
  background: #fcfcfc;
  opacity: 0.4;
  filter: grayscale(0.5);
  pointer-events: none;
  position: relative;
}

.gt-team.locked::after {
  position: absolute;
  content: "";
  background-color: #8f8f8f;
  clip-path: path("M15 9h-1V6c0-2.2-1.8-4-4-4S6 3.8 6 6v3H5c-.5 0-1 .5-1 1v7c0 .5.5 1 1 1h10c.5 0 1-.5 1-1v-7c0-.5-.5-1-1-1zm-4 7H9l.4-2.2c-.5-.2-.9-.8-.9-1.3 0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5c0 .6-.3 1.1-.9 1.3L11 16zm1-7H8V6c0-1.1.9-2 2-2s2 .9 2 2v3z");
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  height: 20px;
  width: 20px;
}

.gt-message {
  margin: 15px 0;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
}

.gt-message.success {
  background: #e6f9ec;
  color: #1e7e34;
  border: 1px solid #28a745;
}

.gt-message.error {
  background: #fdecea;
  color: #b02a37;
  border: 1px solid #dc3545;
}

#gt-submit-teams {
  width: 100%;
  background: #45A735;
  border: none;
  border-radius: 5px;
  padding: 1em;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#gt-submit-teams:hover {
  background: #325A2B;
}

#gt-submit-teams:disabled {
  filter: grayscale(1);
  pointer-events: none;
}

.gt-locked-message {
  margin: 15px 0;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  background: #e6f3f9;
  color: #2376ad;
  border: 1px solid #2376ad;
  text-align: center;
  position: relative;
}

.gt-locked-message::before {
  position: absolute;
  content: "";
  background-color: #2376ad;
  clip-path: path("M15 9h-1V6c0-2.2-1.8-4-4-4S6 3.8 6 6v3H5c-.5 0-1 .5-1 1v7c0 .5.5 1 1 1h10c.5 0 1-.5 1-1v-7c0-.5-.5-1-1-1zm-4 7H9l.4-2.2c-.5-.2-.9-.8-.9-1.3 0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5c0 .6-.3 1.1-.9 1.3L11 16zm1-7H8V6c0-1.1.9-2 2-2s2 .9 2 2v3z");
  top: 50%;
  transform: translateX(-20px) translateY(-50%);
  height: 20px;
  width: 20px;
}

@media (max-width: 650px) {
  .gt-team-list {
    grid-template-columns: auto auto;
  }
}

@media (max-width: 420px) {
  .gt-team-list {
    grid-template-columns: auto;
  }
}

/* ----------- */
/* RESULT PAGE */
/* ----------- */
.gt-matchday {
  border: 1px solid #ddd;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
}

.gt-matchday-header {
  padding: 12px;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.gt-matchday-body {
  padding: 12px;
  background: #ffffff;
}

.gt-team.gt-results-page {
  cursor: auto;
  transition: none;
}

.gt-matchday-guess-count {
    color: #45A735;
    font-weight: 900;
}

.gt-team.gt-results-page .gt-team-information {
  flex-grow: 1;
}

.gt-team.gt-results-page .gt-result-information,
.gt-results-key {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
}

.gt-results-wrapper .gt-trophy-icon {
  height: 18px;
}

.gt-results-wrapper .gt-user-picked-team {
  height: 12px;
  width: 12px;
  background: #45A735;
  border-radius: 50%;
}

.gt-team.gt-results-page.gt-perfect-pick {
  border: 2px inset #DFBD69;
  background: linear-gradient(30deg, #FAF398, #DFBD69);
  box-shadow: 0 0 5px #DFBD69;
}

/* --------------- */
/* SPONSOR STYLING */
/* --------------- */
.gt-sponsor-box {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fafafa;
}

.gt-sponsor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  z-index: 1;
  position: relative;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(10px);
}

.gt-sponsor-logo {
  width: 100px;
  height: 100%;
  object-fit: contain;
}

.gt-sponsored-by {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e293b;
}

.gt-sponsor-header > div h3,
.gt-sponsor-header > div p {
  margin: 0
}

.gt-sponsor-branding-image {
  position: relative;
  padding: 100px 10px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sponsor-banner-img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  object-fit: cover;
}

.gt-prize-grid,
.gt-prize-awards {
  display: grid;
  gap: 12px;
}

.gt-prize-card,
.gt-prize-award-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
}

.gt-prize-image {
  width: 100px;
  height: 100% !important;
  object-fit: cover;
  border-radius: 6px !important;
}

.gt-prize-tier {
  margin: 4px 0 0;
  font-weight: 600;
}

.gt-sponsor-dashboard {
  max-width:900px;
  margin:auto;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(10px);
}

.gt-sponsor-dashboard form:not(.gt-inline-form) {
  background:#fff;
  padding:25px;
  margin-bottom:30px;
  border-radius:10px;
  border:1px solid #e3e3e3;
}

.gt-sponsor-dashboard label {
  font-weight:600;
}

.gt-sponsor-dashboard img {
  margin-top:10px;
  border-radius:6px;
}

.gt-upload-button {
  background: #45A735;
  border: none;
  border-radius: 5px;
  padding: 1em;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gt-upload-button:hover {
  background: #325A2B;
}

.gt-image-upload-url {
  display: none;
}

.gt-sponsor-dashboard form button[type="submit"] {
  background: #45A735;
  border: none;
  border-radius: 5px;
  padding: 1em;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gt-sponsor-dashboard form button[type="submit"]:hover {
  background: #325A2B;
}

.gt-dashboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.gt-tab-button {
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
  color: #1e293b;
}

.gt-tab-button.active {
  background: #fff;
  border-bottom: 2px solid #0073aa;
}

.gt-tab-content {
  display: none;
}

.gt-tab-content.active {
  display: block;
}

.gt-dashboard-form,
.gt-sponsor-card,
.gt-accordion-item,
.gt-dashboard-notice {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 20px;
}

.gt-sponsor-card {
  background-image: linear-gradient(180deg, #070F0B 0%, #45A735 100%) !important;
  border: 3px solid white;
}

.gt-sponsor-card > p,
.gt-sponsor-card .gt-matchday-sponsor-description > *,
.gt-sponsor-card h4,
.gt-sponsor-card .gt-matchdays-header h4 {
  color: white !important;
}

.gt-dashboard-notice {
  margin-bottom: 20px;
  background: #f0f7ff;
}

.gt-matchdays-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gt-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gt-accordion-header {
  width: 100%;
  text-align: left;
  background: #f8f8f8;
  border: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 8px;
  color: #1e293b;
}

.gt-accordion-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gt-accordion-body {
  display: none;
  padding-top: 16px;
}

.gt-accordion-item.open .gt-accordion-body {
  display: block;
}

.gt-locked-badge {
  padding: 4px 8px;
  background: #eee;
  border-radius: 999px;
  font-size: 12px;
}

.gt-sponsor-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gt-dashboard-preview {
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  margin-top: 8px;
}

.gt-hidden {
  display: none !important;
}

.gt-inline-form {
  margin-top: 10px;
}

.gt-prize-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gt-prize-admin-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: white;
}

.gt-prize-admin-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.gt-prize-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-danger-button {
  background: #c0392b !important;
  color: #fff;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
}

.gt-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  padding: 24px;
  overflow: auto;
}

.gt-modal.open {
  display: block;
}

.gt-modal-dialog {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.gt-close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

button.button:hover {
  color: white;
  background: #0255a7;
}

@media (max-width: 768px) {
  .gt-sponsor-card-grid {
    grid-template-columns: 1fr;
  }

  .gt-prize-admin-item {
    grid-template-columns: 1fr;
  }
}