/* League of Legends inspired styling */

:root {
  --lol-gold: #C89B3C;
  --lol-gold-light: #F0E6D2;
  --lol-blue: #0596AA;
  --lol-blue-team: #0596AA;
  --lol-red-team: #EE5A52;
  --lol-dark-bg: #0A0E1A;
  --lol-dark-secondary: #0C1726;
  --lol-border: #3C4043;
  --lol-text: #CDBE91;
  --lol-text-light: #A09B8C;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  text-align: center;
  background: linear-gradient(135deg, #0A0E1A 0%, #0C1726 50%, #0A0E1A 100%);
  background-attachment: fixed;
  color: var(--lol-text);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(5, 150, 170, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(238, 90, 82, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1 {
  color: var(--lol-gold);
  margin-bottom: 30px;
  font-size: 2.5em;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(200, 155, 60, 0.5),
               0 0 40px rgba(200, 155, 60, 0.3);
  position: relative;
  z-index: 1;
}

.champion-search-container {
  background: linear-gradient(135deg, rgba(12, 23, 38, 0.95) 0%, rgba(10, 14, 26, 0.95) 100%);
  border: 2px solid var(--lol-gold);
  border-radius: 8px;
  box-shadow: 
    0 0 20px rgba(200, 155, 60, 0.3),
    inset 0 0 20px rgba(200, 155, 60, 0.1);
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

input[type="text"] {
  padding: 12px 20px;
  font-size: 16px;
  margin: 15px auto 15px auto;
  width: 350px;
  max-width: 90%;
  border: 2px solid var(--lol-border);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--lol-text);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  display: block;
  font-family: inherit;
}

input[type="text"]:focus {
  border-color: var(--lol-gold);
  outline: none;
  box-shadow: 
    0 0 10px rgba(200, 155, 60, 0.5),
    inset 0 2px 5px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.8);
}

.role-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.role-button {
  padding: 10px 18px;
  font-size: 14px;
  background: linear-gradient(135deg, #1e2328 0%, #0c1f2e 100%);
  color: var(--lol-text-light);
  border: 1px solid var(--lol-border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.role-button:hover {
  background: linear-gradient(135deg, #2e3338 0%, #1c2f3e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  border-color: var(--lol-gold);
  color: var(--lol-gold-light);
}

.role-button.active {
  background: linear-gradient(135deg, var(--lol-gold) 0%, #A88A59 100%);
  box-shadow: 
    0 0 15px rgba(200, 155, 60, 0.6),
    inset 0 2px 4px rgba(0,0,0,0.3);
  border-color: var(--lol-gold);
  color: #0A0E1A;
  font-weight: 700;
}

.controls {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.controls button {
  padding: 12px 25px;
  font-size: 16px;
  background: linear-gradient(135deg, #1e2328 0%, #0c1f2e 100%);
  color: var(--lol-gold-light);
  border: 2px solid var(--lol-border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.controls button:hover {
  background: linear-gradient(135deg, #2e3338 0%, #1c2f3e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
  border-color: var(--lol-gold);
  color: var(--lol-gold);
}

.controls button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.3) 0%, transparent 70%);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
}

.controls button:hover::before {
  width: 100%;
  height: 100%;
}

.controls button.active {
  background: linear-gradient(135deg, var(--lol-gold) 0%, #A88A59 100%);
  box-shadow: 
    0 0 20px rgba(200, 155, 60, 0.6),
    inset 0 2px 4px rgba(0,0,0,0.3);
  border-color: var(--lol-gold);
  color: #0A0E1A;
}


.collapsible-button {
  background: linear-gradient(135deg, #2a2d32 0%, #1a1d22 100%) !important;
  border-color: var(--lol-text-light) !important;
}

.collapsible-button:hover {
  background: linear-gradient(135deg, #3a3d42 0%, #2a2d32 100%) !important;
  border-color: var(--lol-gold) !important;
}


.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 34px;
  margin: 0 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e2328 0%, #0c1f2e 100%);
  border: 2px solid var(--lol-border);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, var(--lol-gold) 0%, #A88A59 100%);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

input:checked + .slider {
  background: linear-gradient(135deg, #2e3338 0%, #1c2f3e 100%);
  border-color: var(--lol-gold);
}

input:focus + .slider {
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.5);
}

input:checked + .slider:before {
  -webkit-transform: translateX(55px);
  -ms-transform: translateX(55px);
  transform: translateX(55px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.toggle-container span {
  font-weight: bold;
  color: var(--lol-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.toggle-container span:first-child {
  color: var(--lol-blue-team);
  text-shadow: 0 0 10px rgba(5, 150, 170, 0.5);
}

.toggle-container span:last-child {
  color: var(--lol-red-team);
  text-shadow: 0 0 10px rgba(238, 90, 82, 0.5);
}

.slider-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.slider-labels .left-label, .slider-labels .right-label {
  position: absolute;
  transition: opacity 0.3s ease;
}

.slider-labels .left-label {
  left: 10px;
  color: white;
}

.slider-labels .right-label {
  right: 10px;
  color: #333;
}

input:checked + .slider .left-label {
  color: #333;
}

input:checked + .slider .right-label {
  color: white;
}

.team-container {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  max-width: 1400px;
  position: relative;
  z-index: 1;
}

.team {
  width: 320px;
  background: linear-gradient(135deg, rgba(12, 23, 38, 0.95) 0%, rgba(10, 14, 26, 0.95) 100%);
  border: 2px solid var(--lol-border);
  border-radius: 8px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  flex-grow: 1;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lol-gold), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.team h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

#blue-team h2, #blue-protect h2, #blue-fearless-ban h2 {
  color: var(--lol-blue-team);
  text-shadow: 0 0 15px rgba(5, 150, 170, 0.5);
}

#red-team h2, #red-protect h2, #red-fearless-ban h2 {
  color: var(--lol-red-team);
  text-shadow: 0 0 15px rgba(238, 90, 82, 0.5);
}

#blue-team {
  border-color: var(--lol-blue-team);
}

#red-team {
  border-color: var(--lol-red-team);
}

.bans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
  width: 100%;
  min-height: 50px;
}

.bans .slot {
  width: 50px;
  height: 50px;
  border: 2px dashed #8B3A3A;
  background: linear-gradient(135deg, rgba(139, 58, 58, 0.2) 0%, rgba(139, 58, 58, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.bans .slot:hover {
  border-color: #A54545;
  box-shadow: 0 0 10px rgba(165, 69, 69, 0.3);
}

.bans .slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  cursor: grab;
}

/* Apply grayscale only when in ban slots */
.bans .slot img,
.fearless-bans .slot img {
  filter: grayscale(100%);
  opacity: 0.7;
}

.picks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
  min-height: 360px;
  width: 100%;
  align-items: center;
}

.protects, .fearless-bans {
  display: grid;
  grid-template-columns: repeat(5, 64px);
  gap: 12px;
  margin: 10px 0;
  min-height: 80px;
  width: 100%;
  justify-content: center;
}


.picks .slot, .protects .slot, .fearless-bans .slot {
  width: 64px;
  height: 64px;
  border: 2px dashed var(--lol-border);
  background: linear-gradient(135deg, rgba(60, 64, 67, 0.2) 0%, rgba(60, 64, 67, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.picks .slot:hover, .protects .slot:hover, .fearless-bans .slot:hover {
  border-color: var(--lol-gold);
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.3);
}

.picks .slot img, .protects .slot img {
  position: relative;
  z-index: 1;
  cursor: grab;
  filter: none;
  opacity: 1;
}

.fearless-bans .slot img {
  position: relative;
  z-index: 1;
  cursor: grab;
}

.picks .slot img:active, .protects .slot img:active, .fearless-bans .slot img:active,
.bans .slot img:active {
  cursor: grabbing;
}

.slot.dragging {
  opacity: 0.5;
}

.champion-pool {
  width: 450px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  grid-auto-rows: 100px;
  gap: 15px;
  justify-content: center;
  max-height: 80vh;
  overflow-y: auto;
  padding: 15px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}


.champion {
  width: 70px;
  text-align: center;
  color: var(--lol-text-light);
  font-size: 12px;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  position: relative;
}

.champion:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
  background: rgba(200, 155, 60, 0.1);
  border-color: var(--lol-gold);
}

.champion img {
  width: 64px;
  height: 64px;
  border: 2px solid var(--lol-border);
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.champion.disabled img {
  filter: grayscale(100%);
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #ccc;
}

/* Disabled state for already used champions */
.champion.blue-picked,
.champion.red-picked,
.champion.banned,
.champion.fearless-banned {
  cursor: not-allowed;
  opacity: 0.9;
}

/* Protected champions can still be selected */
.champion.blue-protected,
.champion.red-protected {
  opacity: 1;
}

.champion.selected img {
  border: 3px solid #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

/* Team pick status styles */
.champion.blue-picked img {
  border: 3px solid var(--lol-blue-team);
  box-shadow: 
    0 0 15px rgba(5, 150, 170, 0.8),
    0 0 30px rgba(5, 150, 170, 0.4);
  transform: scale(1.05);
}

.champion.red-picked img {
  border: 3px solid var(--lol-red-team);
  box-shadow: 
    0 0 15px rgba(238, 90, 82, 0.8),
    0 0 30px rgba(238, 90, 82, 0.4);
  transform: scale(1.05);
}

/* Ban status styles */
.champion.banned img {
  border: 3px solid #8B3A3A;
  filter: grayscale(100%);
  opacity: 0.4;
  position: relative;
}

.champion.banned::after {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #C8393A;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

/* Protect status styles */
.champion.blue-protected img {
  border: 3px solid #4CAF50;
  box-shadow: 
    0 0 15px rgba(76, 175, 80, 0.8),
    inset 0 0 20px rgba(76, 175, 80, 0.3);
}

.champion.blue-protected::before {
  content: '🛡️';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 20px;
  filter: hue-rotate(200deg);
}

.champion.red-protected img {
  border: 3px solid #66BB6A;
  box-shadow: 
    0 0 15px rgba(102, 187, 106, 0.8),
    inset 0 0 20px rgba(102, 187, 106, 0.3);
}

.champion.red-protected::before {
  content: '🛡️';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 20px;
  filter: hue-rotate(30deg);
}

/* Fearless ban status styles */
.champion.fearless-banned img {
  border: 3px solid #9C27B0;
  filter: grayscale(80%) brightness(0.7);
  opacity: 0.5;
}

.champion.fearless-banned::after {
  content: '⚡';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: #AB47BC;
  text-shadow: 0 0 10px rgba(171, 71, 188, 0.8);
}

.champion-name {
  font-weight: bold;
  font-size: 13px;
  line-height: 1.2;
  margin-top: 5px;
  color: var(--lol-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.champion-eng-name {
  font-size: 10px;
  color: var(--lol-text-light);
  margin-top: 2px;
  opacity: 0.8;
}

.pick-display {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  justify-content: center;
  cursor: move;
  transition: opacity 0.3s ease, transform 0.2s ease;
  padding: 5px;
  border-radius: 4px;
}

.pick-display.dragging {
  opacity: 0.5;
}

.pick-display:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.splash-art {
  width: 170px;
  height: auto;
  border: 2px solid #a0a0a0;
  border-radius: 8px;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: linear-gradient(135deg, rgba(20, 30, 45, 0.95) 0%, rgba(15, 20, 30, 0.95) 100%);
  border: 1px solid var(--lol-border);
  border-radius: 8px;
  margin-top: 15px;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.collapsible-content.show {
  max-height: 500px;
  padding: 15px;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.protects .slot {
  border: 2px dashed #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.protects .slot:hover {
  border-color: #66BB6A;
  box-shadow: 0 0 10px rgba(102, 187, 106, 0.5);
}

.fearless-bans .slot {
  border: 2px dashed #9C27B0;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(156, 39, 176, 0.1) 100%);
}

.fearless-bans .slot:hover {
  border-color: #AB47BC;
  box-shadow: 0 0 10px rgba(171, 71, 188, 0.5);
}

.modal {
  border: 2px solid var(--lol-gold);
  border-radius: 8px;
  padding: 0;
  box-shadow: 
    0 0 30px rgba(200, 155, 60, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.8);
  max-width: 400px;
  width: 90%;
  background: linear-gradient(135deg, #0C1726 0%, #0A0E1A 100%);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  padding: 30px;
  text-align: center;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--lol-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(200, 155, 60, 0.5);
}

.modal-content input[type="number"] {
  width: 80px;
  padding: 10px;
  margin: 20px auto;
  font-size: 16px;
  border: 2px solid var(--lol-border);
  border-radius: 4px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--lol-text);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.modal-content input[type="number"]:focus {
  outline: none;
  border-color: var(--lol-gold);
  box-shadow: 
    0 0 10px rgba(200, 155, 60, 0.5),
    inset 0 2px 5px rgba(0,0,0,0.5);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-actions button {
  border: 2px solid var(--lol-border);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.modal-actions button:first-child {
  background: linear-gradient(135deg, var(--lol-gold) 0%, #A88A59 100%);
  color: #0A0E1A;
  border-color: var(--lol-gold);
}

.modal-actions button:first-child:hover {
  background: linear-gradient(135deg, #D4A94A 0%, #B89A69 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px rgba(200, 155, 60, 0.5),
    0 6px 12px rgba(0,0,0,0.7);
}

.modal-actions button:last-child {
  background: linear-gradient(135deg, #1e2328 0%, #0c1f2e 100%);
  color: var(--lol-text-light);
}

.modal-actions button:last-child:hover {
  background: linear-gradient(135deg, #2e3338 0%, #1c2f3e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.7);
  border-color: var(--lol-gold);
  color: var(--lol-gold-light);
}


@media (max-width: 1024px) {
  .team-container {
    flex-direction: column;
    align-items: center;
  }
  .team {
    width: 90%;
    max-width: 400px;
  }
  .champion-search-container {
    width: 90%;
    max-width: 450px;
  }
  .protect-container, .fearless-ban-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    align-items: center;
  }
  .controls button {
    width: 80%;
    margin-bottom: 10px;
  }
  .toggle-container {
    flex-direction: column;
  }
  .role-filter-container {
    margin-top: 10px;
  }
  .protects, .fearless-bans {
    grid-template-columns: repeat(4, 64px);
  }
}

/* Hextech-style decoration */
.team::after,
.champion-search-container::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, transparent 30%, var(--lol-gold) 50%, transparent 70%);
  background-size: 20px 20px;
  background-position: 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: 8px;
}

.team:hover::after,
.champion-search-container:hover::after {
  opacity: 0.1;
  animation: hextech-glow 3s linear infinite;
}

@keyframes hextech-glow {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

/* Slot glow effect */
.slot {
  position: relative;
}

.slot::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--lol-gold), transparent, var(--lol-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px;
  z-index: -1;
}

.slot:hover::before {
  opacity: 0.5;
  animation: rotate-glow 2s linear infinite;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading text effect */
.controls button,
.role-button {
  position: relative;
  overflow: hidden;
}

.controls button::after,
.role-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(200, 155, 60, 0.3), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.controls button:hover::after,
.role-button:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Pick display improvements */
.pick-display {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  border: 1px solid rgba(200, 155, 60, 0.2);
  margin: 5px 0;
}

.pick-display::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--lol-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pick-display:hover::before {
  opacity: 1;
}

/* Champion hover effect */
.champion {
  transition: all 0.3s ease;
}

.champion:hover img {
  animation: champion-pulse 1s ease-in-out infinite;
}

@keyframes champion-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Dragging animation */
.slot.drag-over {
  animation: slot-pulse 0.5s ease-in-out infinite;
  border-color: var(--lol-gold) !important;
}

@keyframes slot-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(200, 155, 60, 0);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(200, 155, 60, 0.5);
  }
}

/* Team header with slot controls */
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.team-header h2 {
  margin: 0;
}

.slot-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-control-btn {
  width: 30px;
  height: 30px;
  border: 2px solid var(--lol-gold);
  background: linear-gradient(135deg, #1e2328 0%, #0c1f2e 100%);
  color: var(--lol-gold-light);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slot-control-btn:hover {
  background: linear-gradient(135deg, var(--lol-gold) 0%, #A88A59 100%);
  color: #0A0E1A;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.6);
}

.slot-count {
  display: inline-block;
  width: 50px;
  height: 30px;
  line-height: 30px;
  font-size: 18px;
  font-weight: bold;
  color: var(--lol-gold);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--lol-border);
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.slot-count:hover {
  border-color: var(--lol-gold);
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.3);
  background: rgba(0, 0, 0, 0.8);
}

.slot-count-input {
  width: 50px;
  height: 30px;
  font-size: 16px;
  font-weight: bold;
  color: var(--lol-gold);
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--lol-gold);
  border-radius: 5px;
  text-align: center;
  padding: 0;
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.5);
  font-family: inherit;
}

.slot-count-input:focus {
  outline: none;
  border-color: var(--lol-gold);
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.5);
  background: rgba(0, 0, 0, 0.8);
}

/* Hide number input spin buttons */
.slot-count-input::-webkit-inner-spin-button,
.slot-count-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slot-count-input[type=number] {
  -moz-appearance: textfield;
}

/* Advanced info styling */
.advanced-info {
  text-align: center;
  padding: 10px;
}

.advanced-info p {
  margin: 0;
  color: var(--lol-text-light);
  font-size: 14px;
  font-style: italic;
}

/* Page load animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, .controls, .team-container, .champion-search-container {
  animation: fadeIn 0.6s ease-out;
}

.team:nth-child(1) { animation-delay: 0.1s; }
.team:nth-child(2) { animation-delay: 0.2s; }
.team:nth-child(3) { animation-delay: 0.3s; }

/* Scrollbar styling */
.champion-pool {
  scrollbar-width: thin;
  scrollbar-color: var(--lol-gold) rgba(0, 0, 0, 0.3);
}

.champion-pool::-webkit-scrollbar {
  width: 8px;
  display: block;
}

.champion-pool::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.champion-pool::-webkit-scrollbar-thumb {
  background: var(--lol-gold);
  border-radius: 4px;
}

.champion-pool::-webkit-scrollbar-thumb:hover {
  background: var(--lol-gold-light);
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  h1 {
    font-size: 1.8em;
  }
  input[type="text"] {
    width: 95%;
  }
  .champion-pool {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    grid-auto-rows: 90px;
  }
  .champion img {
    width: 54px;
    height: 54px;
  }
  .champion-name {
    font-size: 11px;
  }
  .champion-eng-name {
    font-size: 9px;
  }
  .pick-display .splash-art {
    width: 120px;
  }
  .role-button {
    font-size: 12px;
    padding: 6px 10px;
  }
  .protects, .fearless-bans {
    grid-template-columns: repeat(3, 56px);
    gap: 8px;
  }
  .protects .slot, .fearless-bans .slot {
    width: 56px;
    height: 56px;
  }
}