@charset "UTF-8";

body {
  background-color: #000;
  color: #ddd;
  font-family: 'Poppins', sans-serif;
}

.Listing-container {
  max-width: 960px;
  margin: 20px auto;
  background: linear-gradient(to bottom, #0c0c0c, #000);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.1);
}

.Listing-container h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: gold;
  font-weight: 600;
  letter-spacing: 1px;
  word-break: keep-all;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.search-sort-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

/* Search Bar Styling */
.search-bar input {
  padding: 12px 16px;
  width: 90%;
  max-width: 320px;
  font-size: 16px;
  border-radius: 30px;
  border: 1px solid #555;
  background-color: #1a1a1a;
  color: #eee;
  outline: none;
  transition: 0.3s ease;
}

.search-bar input:focus {
  border-color: gold;
  box-shadow: 0 0 8px gold;
}

/* Custom Dropdown Styling */
.custom-dropdown {
  position: relative;
  background-color: #1a1a1a;
  border: 1px solid #555;
  border-radius: 30px;
  color: gold;
  cursor: pointer;
  padding: 12px 16px;
  width: 240px;
  user-select: none;
  font-size: 15px;
  transition: 0.3s ease;
}

.custom-dropdown:hover,
.custom-dropdown:focus-within,
.custom-dropdown.open {
  border-color: gold;
  box-shadow: 0 0 8px gold;
}

.custom-dropdown .selected::after {
  content: "▼";
  float: right;
  margin-left: 10px;
  color: gold;
  font-size: 14px;
}

.custom-dropdown .dropdown-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background-color: #000;
  border: 1px solid gold;
  border-radius: 10px;
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.custom-dropdown.open .dropdown-options {
  display: block;
}

.custom-dropdown .dropdown-options li {
  padding: 12px 16px;
  cursor: pointer;
  color: gold;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* subtle gold separator */
  background-color: #000;
  transition: background 0.2s ease;
}

.custom-dropdown .dropdown-options li:last-child {
  border-bottom: none;
}

.custom-dropdown .dropdown-options li:hover {
  background-color: #222;
}

/* Listings Grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 10px;
}

.logo-item {
  background: #111;
  padding: 22px 16px 16px;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.logo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.logo-item img {
  max-width: 100%;
  max-height: 40px;
  height: auto;
  margin: auto;
  transition: transform 0.3s ease-in-out;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
  border-radius: 10px;
}

.logo-label {
  margin-top: 10px;
  font-size: 14px;
  color: gold;
  font-weight: 500;
}

.featured-star {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 18px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

#noResults {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: #888;
  display: none;
}

.logo-item.live:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.logo-item.inactive {
  filter: grayscale(100%) opacity(0.5);
  cursor: not-allowed;
}

/* Subheading */
.listing-subheading {
  color: #ccc;
  font-size: 20px;
  font-weight: 600;
  margin: 25px 10px 10px;
  text-align: left;
  grid-column: 1 / -1;
  border-left: 4px solid gold;
  padding-left: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .search-bar input {
    width: 100%;
    max-width: none;
  }
  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-item {
    padding: 10px;
    border-radius: 10px;
  }
  .logo-label {
    font-size: 12px;
  }
  .Listing-container h1 {
    font-size: 20px;
    white-space: normal;
    line-height: 1.4;
  }
}
