/* ======= GLOBAL ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0d0d0d;
  color: #f0f0f0;
  line-height: 1.6;
}

/* ======= HEADER ======= */
header {
  background-color: #1e1e1e;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 255, 204, 0.2);
  position: relative;
  border-bottom: 2px solid #00ff80;
}

header h1 {
  font-size: 32px;
  color: white;
  letter-spacing: 1px;
}

.home-link {
  position: absolute;
  left: 20px;
  top: 20px;
}

.logo {
  height: 42px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.1);
}

/* ======= SELECTOR SECTION ======= */
.selector-section {
  text-align: center;
  margin: 50px 0 30px;
}

.selector-section label {
  font-size: 22px;
  color: #00ff80;
  display: block;
  margin-bottom: 10px;
}

/* ======= CUSTOM SELECT ======= */
.custom-select {
  position: relative;
  display: inline-block;
  width: 340px;
  background-color: #121212;
  border: 2px solid #00ff80;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffc344;
  box-sizing: border-box;
}

.custom-select:hover {
  border-color: #00ff80;
}

.custom-select .selected {
  padding: 16px;
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-select .options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  border: 2px solid #00ff80;
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  box-sizing: border-box;
  padding: 0;
}

.custom-select.active .options {
  display: block;
}

.custom-select .options li {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f0f0;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}


.custom-select .options li:hover {
  background-color: #00ff80;
  color: #000;
}

.custom-select img {
  width: 22px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 3px #0006;
  display: block;
}



/* ======= CLASSEMENT TABLE ======= */
#classements-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #1b1b1b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 195, 0.05);
}

th {
  background-color: #00ff80;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  padding: 14px;
}

td {
  padding: 12px;
  border-bottom: 1px solid #333;
  text-align: center;
  font-size: 15px;
  transition: background 0.2s ease;
}

tr:hover td {
  background-color: #222;
}

/* ======= ROW HIGHLIGHTING ======= */
tr.champion { background-color: #ffd70033; }
tr.ucl { background-color: #1e90ff33; }
tr.uel { background-color: #ffa50033; }
tr.ecl { background-color: #32cd3233; }
tr.relegation { background-color: #ff4c4c33; }
tr.playoff { background-color: #cccccc33; }

/* ======= LOADING ======= */
.loading-text {
  margin-top: 20px;
  color: orange;
  font-style: italic;
  font-size: 18px;
}

/* ======= FOOTER ======= */
footer {
  text-align: center;
  padding: 25px;
  background-color: #111;
  color: #aaa;
  margin-top: 50px;
  border-top: 1px solid #222;
  font-size: 14px;
}

/* ======= ANIMATION ======= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}



#classements-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: block;
}

.bracket-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(90deg, #00ff80, #00cc66);
  color: #000;
  font-weight: 600;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ff80cc;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.bracket-button:hover {
  background: linear-gradient(90deg, #00cc66, #00b35a);
  transform: scale(1.05);
  color: black;
}

.team-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  margin: 4px auto;
  display: block;

  border-radius: 6px;
  padding: 4px;
}


@media screen and (max-width: 768px) {
  table {
    font-size: 12px;
  }

  th, td {
    padding: 6px 4px;
  }

  table img {
    height: 16px;
  }

  .selector-section label {
    font-size: 16px;
  }

  .custom-select,
  .selected,
  .options {
    font-size: 14px;
  }

  .custom-select .selected {
    padding: 8px 12px;
  }
}
