@import "variables.css";
@import "header.css";

body {
  font-family: "Orkney", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 2rem auto;
  background-color: var(--highlight-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.highlighted-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nav-button {
  text-decoration: none;
  background-color: var(--primary-color);
  color: white;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
  background-color: var(--green-hover-color);
  transform: translateY(-3px);
}

.category-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tag {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
  background-color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.tag:hover {
  background-color: var(--green-hover-color);
  transform: translateY(-5px);
}

.tag.tag-gautica {
  background-color: #3eaf53;
}

.tag.tag-gnr12 {
  background-color: #ffab00;
}

.tag.tag-gnr10 {
  background-color: #c765f4;
}

.tag.tag-gnr33 {
  background-color: #64dd17;
}

.tag.tag-gnr13 {
  background-color: #ff6d00;
}

.tag.tag-g-app {
  background-color: #00b0ff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  table-layout: fixed;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
  text-align: center;
}

th {
  background-color: #e0e0e0;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: bold;
}

td {
  background-color: var(--highlight-color);
}

tr:hover td {
  background-color: #f1f1f1;
}

td a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  text-align: center;
}

td:nth-child(1),
th:nth-child(1) {
  width: 15%;
  text-align: center;
}

td:nth-child(2),
th:nth-child(2) {
  width: 55%;
  text-align: left;
}

td:nth-child(3),
th:nth-child(3) {
  width: 30%;
  text-align: center;
}

.manual-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.manual-button:hover {
  background-color: var(--green-hover-color);
  transform: translateY(-2px);
}

#searchInput {
  width: 98%;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

#searchInput:focus {
  border-color: var(--primary-color);
}

.search-tag {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-right: 1rem;
  background-color: var(--primary-color);
  color: white;
}

.search-tag.tag-gautica {
  background-color: #3eaf53;
}

.search-tag.tag-gnr12 {
  background-color: #ffab00;
}

.search-tag.tag-gnr10 {
  background-color: #c765f4;
}

.search-tag.tag-gnr33 {
  background-color: #64dd17;
}

.search-tag.tag-gnr13 {
  background-color: #ff6d00;
}

.search-tag.tag-g-app {
  background-color: #00b0ff;
}

.return-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  margin-top: 1.5rem;
}

.return-button ion-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
  transform: translateY(-1.6px);
}

.return-button:hover {
  background-color: var(--green-hover-color);
  transform: translateY(-2px);
}
/* Para celulares */
@media only screen and (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .highlighted-button {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .category-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tag {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    text-align: center;
  }

  #searchInput {
    width: 95%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  #searchInput:not(:placeholder-shown) + .category-tags {
    display: none;
  }

  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  th,
  td {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  td:nth-child(2) {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .manual-button {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
  }

  .return-button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

/* Para tablets */
@media only screen and (max-width: 992px) {
  .container {
    padding: 1.5rem;
  }

  .highlighted-button {
    gap: 0.75rem;
  }

  .nav-button {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }

  .category-tags {
    justify-content: center;
    flex-wrap: wrap;
  }

  .tag {
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
  }

  table {
    width: 100%;
  }

  th,
  td {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .return-button {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
}
