/*
==========================================
Global Styles
==========================================
*/
body {
  background-color: #0a0a0a;
  font-family: "Segoe UI", sans-serif;
  color: #f0f0f0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

/*
==========================================
Inputs, Labels, Buttons
==========================================
*/
input {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  outline: none;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  width: 100%;
}

label {
  font-weight: 500;
}

button {
  padding: 0.8rem 1.2rem;
  background: linear-gradient(to right, #2563eb, #1e3a8a);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  transition: 0.2s ease;
}

button:hover {
  background: linear-gradient(to right, #1e3a8a, #2563eb);
  transform: scale(1.02);
}

button:disabled {
  background: linear-gradient(to right, #303030,#464646);
}

/*
==========================================
Suchformular
==========================================
*/
.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  width: 100%;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.input-row label {
  width: 90px;
  text-align: right;
}

.button-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.button-row button {
  flex: 1;
}

/*
==========================================
Tabs
==========================================
*/
.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.5rem 1rem;
  background-color: #1a1a1a;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 8px;
}

.tab-button.active {
  background-color: #d4af37;
  color: black;
}

.tab-content.hidden {
  display: none;
}

/*
==========================================
Autocomplete Suggestions
==========================================
*/
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.suggestion-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  color: white;
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  border-radius: 6px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.suggestion-list li {
  padding: 0.4rem;
  cursor: pointer;
}

.suggestion-list li:hover {
  background-color: #333;
}

/*
==========================================
Profile Card
==========================================
*/
/*
==========================================
Profile Card – FINAL VERSION
==========================================
*/
.profile-card {
  background: linear-gradient(145deg, #0f1117, #10131a);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  width: 100%;
  max-width: 750px;
  margin: 2rem auto 1rem auto;
  border: 1px solid rgba(0, 255, 255, 0.15);
  position: relative;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #00ffff;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.profile-icon:hover {
  transform: scale(1.05);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}

.name-output {
  font-size: 2.4rem;
  font-weight: 800;
  color: #3b82f6;
  text-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.level-output {
  font-size: 1.4rem;
  font-weight: 600;
  color: #7dd3fc;
}

.stats-output {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stats-output b {
  font-weight: 600;
  color: #ffffff;
}

.stats-output .winrate {
  color: #facc15;
  font-weight: 700;
  font-size: 1.2rem;
}

.rank-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.rank-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.25));
  transition: transform 0.2s ease;
}

.rank-icon:hover {
  transform: scale(1.07);
}

.rank-output {
  font-size: 1.2rem;
  font-weight: 600;
  color: #a0f5e5;
}


/*
==========================================
Match History
==========================================
*/
.match-list {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem 0;
  color: #38bdf8;
  font-weight: 600;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 0.2rem;
}

.match-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  max-width: 670px;
  width: 100%;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}

.blue-team {
  background: linear-gradient(to bottom right, #1e3a8a, #3b82f6);
}

.red-team {
  background: linear-gradient(to bottom right, #991b1b, #ef4444);
}

.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 14px;
}

.player-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.match-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/*
==========================================
Most Played Champions
==========================================
*/
.champ-entry {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.champ-entry:hover {
  transform: scale(1.02);
}

.champ-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid #555;
}

.champ-info {
  display: flex;
  flex-direction: column;
}

.champ-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.champ-count,
.champ-kda,
.champ-winrate {
  font-size: 0.85rem;
  color: #bbb;
}

/*
==========================================
Responsive Design
==========================================
*/
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .match-wrapper {
    flex-direction: column;
  }

  .team {
    width: 100%;
  }

  .tab-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    padding: 0 1rem;
  }

  .input-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-row label {
    text-align: left;
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row button {
    width: 100%;
  }
}
