html:root {
  --brand-color: #f04723;
}

.search-container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.side-space {
  width: 250px;
  flex-shrink: 0;
}

.main-wrapper {
  flex-grow: 1;
  padding: 2rem;
}

.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0px 20px;
  box-sizing: border-box;
}

.page-heading {
  color: var(--brand-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
}

.search-section {
  border: 1px solid #2d2d2d;
  background-color: rgba(35, 35, 35, 0.4);
  padding: 0.75rem 1.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  margin-top: -10px;
}

.search-title {
  color: var(--brand-color);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
}

.search-count {
  color: #888;
  letter-spacing: 1px;
}

/* Filter Layout Classes */
.filter-container {
  background-color: rgba(35, 35, 35, 0.4);
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.filter-header {
  background-color: #202020;
  border-bottom: 2px solid var(--brand-color);
  padding: 14px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  user-select: none;
}

/* .filter-header:hover {
  background-color: rgba(240, 71, 35, 0.1);
}

.filter-header.active {
  background-color: rgba(240, 71, 35, 0.05);
} */

.filter-title {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: bold;
  font-family: "Ikaros";
  text-transform: uppercase;
}

.filter-toggle-icon {
  color: var(--brand-color);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.filter-header.active .filter-toggle-icon {
  transform: rotate(180deg);
}

.filter-content {
  padding: 1.5rem;
  display: none;
}

.filter-content.active {
  display: block;
}

.filter-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  color: var(--brand-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: "Ikaros";
}

.filter-button-group {
  flex-shrink: 0;
}

.filter-select {
  padding: 0.75rem;
  border: 1px solid #2d2d2d;
  background-color: rgba(45, 45, 45, 0.4);
  color: #fff;
  border-radius: 4px;
  font-family: "Ikaros";
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  width: 100%;
}

.filter-select:focus {
  border-color: var(--brand-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(240, 71, 35, 0.1);
}

.results-grid {
  display: grid;
  gap: 1rem;
}

.results-grid.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.results-grid.player-grid.collapsed .playerTile:nth-child(n + 7) {
  display: none;
}

.show-more-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #2d2d2d;
}

.show-more-btn {
  padding: 1rem 2rem;
  border: 2px solid var(--brand-color);
  background: linear-gradient(
    135deg,
    rgba(197, 149, 49, 0.1),
    rgba(197, 149, 49, 0.05)
  );
  color: var(--brand-color);
  border-radius: 25px;
  cursor: pointer;
  font-family: "Ikaros";
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.show-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 149, 49, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.show-more-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(197, 149, 49, 0.2),
    rgba(197, 149, 49, 0.1)
  );
  box-shadow: 0 4px 16px rgba(197, 149, 49, 0.3);
  transform: scale(1.02);
}

.show-more-btn:hover::before {
  left: 100%;
}

.show-more-btn:active {
  transform: scale(0.98);
}

.result-card {
  border: 1px solid #2d2d2d;
  background-color: rgba(45, 45, 45, 0.2) !important;
  padding: 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.result-card:hover {
  border-color: var(--brand-color);
  transform: translateY(-2px);
  background-color: rgba(45, 45, 45, 0.2) !important;
}
.result-title {
  color: var(--brand-color);
  margin-bottom: 0.75rem;
  margin-top: -5px;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
}

.result-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta-item {
  color: #888;
  font-size: 0.9rem;
  position: relative;
}

.meta-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--brand-color);
  border-radius: 50%;
}

.result-preview {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.result-footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #2d2d2d;
}

.result-tag {
  padding: 0.3rem 0.6rem;
  border: 1px solid #2d2d2d;
  background-color: rgba(45, 45, 45, 0.2);
  border-radius: 4px;
  font-size: 0.8rem;
  color: #ccc;
}

.playerTile {
  display: grid;
  background-color: #232323;
  max-width: 300px;
  width: 100%;
  border-radius: 30px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.playerTile:hover {
  border: 1px solid #c59531;
  box-shadow: 0 4px 16px rgba(197, 149, 49, 0.2);
  background-color: rgba(35, 35, 35, 0.8);
}

.profile-ring {
  --max-width: 100px;
  width: var(--max-width);
  height: var(--max-width);
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.profile-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-ring--staff {
  border: 3px solid;
}

.profile-ring--head {
  border-color: #ff6b6b;
}

.profile-ring--staffmanager {
  border-color: #4ecdc4;
}

.profile-ring--developer {
  border-color: #45b7d1;
}

.profile-ring--admin {
  border-color: #96ceb4;
}

.profile-ring--mod {
  border-color: #feca57;
}

.profile-ring--sotm {
  border-color: #ff9ff3;
}

.profile-ring--support {
  border-color: #54a0ff;
}

.profile-ring--consultant {
  border-color: #5f27cd;
}

.profile-ring--stock {
  opacity: 0.7;
}

.playerName {
  font-size: 20px;
  margin-top: 15px;
  text-align: center;
  color: #fff;
}

.playerCountry {
  font-size: 12px;
  text-align: center;
  color: #ccc;
  margin-top: 5px;
}

.user-role {
  font-size: 14px;
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
}

.user-role--head {
  color: #ff6b6b;
}
.user-role--staffmanager {
  color: #4ecdc4;
}
.user-role--developer {
  color: #45b7d1;
}
.user-role--admin {
  color: #96ceb4;
}
.user-role--mod {
  color: #feca57;
}
.user-role--sotm {
  color: #ff9ff3;
}
.user-role--support {
  color: #54a0ff;
}
.user-role--consultant {
  color: #5f27cd;
}

.playerLink {
  text-align: center;
  margin-top: 20px;
}

.playerLink > a {
  display: block;
  margin: 0 auto;
  color: #fff;
  text-decoration: none;
  background-color: #121212;
  width: 80%;
  height: 30px;
  line-height: 30px;
  border-radius: 30px;
  transition: 0.2s ease;
  font-family: "Ikaros";
}

.playerLink > a:hover {
  background-color: #c59531;
  transition: 0.2s ease;
}

.error {
  display: block;
  width: 200px;
  height: 50px;
  line-height: 50px;
  background-color: #eb3939;
  border-radius: 30px;
  font-size: 20px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
}

.player-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid #232323;
  box-shadow: 0px 0px 0px 2px var(--brand-color);
  margin-bottom: 0.75rem;
  background-color: rgba(45, 45, 45, 0.4);
}

.player-info {
  width: 100%;
}

.player-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.stat-item {
  padding: 0.4rem;
  border: 1px solid #2d2d2d;
  background-color: rgba(45, 45, 45, 0.2);
  border-radius: 4px;
  color: #ccc;
  font-size: 0.9rem;
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: #888;
  border: 1px solid #2d2d2d;
  background-color: rgba(35, 35, 35, 0.4);
  border-radius: 4px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  margin: 0.2rem;
  border: 1px solid var(--brand-color);
  background-color: transparent;
  color: var(--brand-color);
  border-radius: 4px;
  cursor: pointer;
  font-family: "Ikaros";
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.page-btn:hover {
  background-color: rgba(45, 45, 45, 0.4);
}

.page-btn.active {
  background-color: var(--brand-color);
  color: #000;
}

.page-btn.active:hover {
  background-color: var(--brand-color);
  color: #000;
  cursor: default;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    min-width: unset;
  }

  .filter-button-group {
    align-self: stretch;
  }
}

@media screen and (max-width: 1820px) {
  .side-space {
    display: none;
  }
}

@media (max-width: 1200px) {
  .results-grid.player-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid.player-grid.collapsed .playerTile:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 1rem;
  }

  .results-grid.player-grid {
    justify-content: center;
  }

  .playerTile {
    max-width: 100%;
    width: 300px;
  }

  .pagination {
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .page-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .results-grid.player-grid.collapsed .playerTile:nth-child(n + 3) {
    display: none;
  }
}
