/* === CATEGORY PAGE STYLING (modern & responsive) === */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #1a1212;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* === FILTER FORM === */
.filter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #332f2f;
  padding: 20px;
  margin: 20px auto;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 0 12px rgba(10, 124, 255, 0.253);
  box-sizing: border-box;
}

.filter-form label {
  align-self: flex-start;
  width: 100%;
  font-size: 0.9em;
  color: #ffffff;
  margin: 8px 0 4px;
}

.filter-form input,
.filter-form select {
  width: 100%;
  padding: 8px 12px;
  font-size: 1em;
  background-color: #ffffff;
  border: 1px solid #333;
  border-radius: 6px;
  color: #333;
  margin-bottom: 12px;
  box-sizing: border-box;  
}

.filter-form input:focus,
.filter-form select:focus {
  outline: none;
  border-color: #00aaff;
}

.filter-form button {
  width: 100%;
  padding: 10px 6px;
  background-color: #353535;
  box-shadow: 0 0 12px rgba(10, 124, 255, 0.164);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  width: 200px; /* nebo např. 150px */
}

.filter-form button:hover {
  background-color: #2183bdd0;
}

/* === ADS GRID === */
.classifieds-container h2 {
  text-align: center;
  color: #ffffff;
  margin-top: 50px;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ad-box {
  background: #1c1d1f;
  border-radius: 14px;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease both;
  box-shadow: 0 0 8px #00aaff10;
}

.ad-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #00aaff30;
}

.ad-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.ad-content {
  text-align: center;
  padding: 10px;
}

.ad-content h3 {
  margin: 10px 0 5px;
  font-size: 1.1em;
  color: #00d2ff;
}

.ad-content p {
  margin: 5px 0;
  color: #ffffff;
}

.ad-price {
  font-weight: bold;
  color: #237ff7;
}

/* === FAVORITE ICON === */
.ad-favorite-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #ccc;
  font-size: 1.4em;
  cursor: pointer;
}

.ad-favorite-icon.active i {
  color: #ff4d6d;
}

/* === PAGINATION === */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #1c222c;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.pagination a:hover {
  background: #00aaff;
}

.pagination .active {
  background: #00aaff;
  color: #fff;
}

/* === NO ADS === */
.no-ads {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 1.2em;
}

/* === ANIMATION === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .filter-form {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .filter-form label {
    text-align: left;
  }

  .filter-form button {
    grid-column: span 1;
  }

  .ad-image-container {
    height: 160px;
  }
}

@media screen and (max-width: 480px) {
  .ad-image-container {
    height: 140px;
  }

  .ad-content h3 {
    font-size: 1em;
  }

  .ad-content p {
    font-size: 0.9em;
  }
}
