/* Index Stylesheet */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
  background-color: #f5f5f5;
}

h1 {
  color: #222;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 10px;
  margin-top: 0;
}

h2 {
  color: #0066cc;
  margin-top: 0;
  margin-bottom: 15px;
}

/* Instructions panel */
.instructions {
  background: #e6f2ff;
  border: 1px solid #0066cc;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
  line-height: 1.6;
}

.instructions p {
  margin: 0;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #666;
}

/* Error state */
.error {
  background: #ffe6e6;
  border: 1px solid #cc0000;
  color: #cc0000;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.error strong {
  display: block;
  margin-bottom: 8px;
}

/* League section */
.league-section {
  background: white;
  padding: 20px;
  margin: 20px, 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.league-section:first-child {
  margin-top: 0;
}

/* Team section */
.team-section {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid #0066cc;
  border-radius: 4px;
}

.team-section:last-child {
  margin-bottom: 0;
}

.team-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  font-size: 15px;
}

/* Competitions list */
.competitions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.competitions-list li {
  margin: 0;
}

.competitions-list button {
  color: #0066cc;
  text-decoration: none;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 14px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.competitions-list button img,
.competitions-list button svg {
  display: inline-block;
  vertical-align: middle;
  height: 1em;
  width: 1em;
  margin: 0;
  padding: 0;
}

.competitions-list button:hover {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.competitions-list button:hover img,
.competitions-list button:hover svg {
  color: white;
}

.competitions-list button:active {
  transform: scale(0.98);
}

/* Responsive design */
@media (max-width: 640px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .league-section {
    padding: 15px;
    margin: 15px 0;
  }

  .team-section {
    padding: 12px;
    margin: 15px 0;
  }

  .competitions-list {
    gap: 6px;
  }

  .competitions-list button {
    padding: 5px 10px;
    font-size: 13px;
  }
}
