/* overall page */
.filter-page {
  max-width: 1200px;
  margin: 40px auto;
  margin-top: 10px;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  width: 100%;
}

/* two‑column container */
.inner {
  margin-top: 50px;
  display: flex;
  gap: 24px;
}

/* sidebar */
.filter-form {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #1e293b;
}

.filter-header a {
  font-size: 0.875rem;
  color: #0c4a6e;
  text-decoration: none;
}

.filter-field {
  margin-bottom: 20px;
}

.filter-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #334155;
}

.filter-field select,
.filter-field input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #1e293b;
}

.filter-field input[type="submit"] {

  background-color: #7B5FB4;
  color: white;
}


/* results */
.results-area {
  flex: 1;
}

.sort-by {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 16px;
}

.sort-by label {
  margin-right: 8px;
  font-weight: 500;
  color: #334155;
}

.sort-by select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* posts list */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* card */
.post-card {
  display: flex;
  background: #fff;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  padding: 10px 20px;
}

.post-thumb {
  flex: 0 0 160px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.post-header h3 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  max-width: 70%;
}

.post-header h3 a {
  color: #000000;
}

.post-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000000;
}

.post-score-ram {
  display: flex;
  gap: 10px;
  padding: 10px 0;
}

.post-score-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: Arial, sans-serif;
}

.post-score {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #399CAC, #008E42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.post-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-title {
  font-size: 0.5rem;
  color: #000000;
  font-weight: 700;
  background: linear-gradient(90deg, #399CAC, #008E42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-subtitle {
  font-size: 0.5rem;
  color: #000000;
  font-weight: 700;
  background: linear-gradient(90deg, #399CAC, #008E42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-badge {
  margin: 12px 0;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #7B5FB4;
  border: 1px solid #7B5FB4;
  border-radius: 12px;
}

.post-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-specs {
  margin-top: auto;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 700;
  color: #000000;
}

.btn-specs:hover {
  color: #7B5FB4;
}

/* pagination */
.pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a, .pagination span {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #0f172a;
  text-decoration: none;
}

.pagination .current {
  background: #0c4a6e;
  color: #fff;
  border-color: #0c4a6e;
} 





/* Mobile Responsive Styles */
@media screen and (max-width: 1024px) {
  .filter-page {
    padding: 0 15px;
  }
  
  .inner {
    gap: 20px;
  }
  
  .post-header h3 {
    font-size: 1.25rem;
    max-width: 60%;
  }
  
  .post-price {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 768px) {
  .inner {
    flex-direction: column;
    margin-top: 30px;
  }
  
  .filter-form {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .post-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  
  .post-thumb {
    flex: 0 0 auto;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
  }
  
  .post-content {
    padding: 0;
  }
  
  .post-header {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
  }
  
  .post-header h3 {
    max-width: 100%;
  }
  
  .post-score-ram {
    flex-wrap: wrap;
  }
  
  .post-details {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .filter-page {
    margin: 20px auto;
    padding: 0 10px;
  }
  
  .filter-form {
    padding: 15px;
  }
  
  .filter-header h2 {
    font-size: 1.1rem;
  }
  
  .post-card {
    align-items: stretch;
    padding: 20px;
  }
  
  .post-thumb {
    max-width: 150px;
  }
  
  .post-header h3 {
    font-size: 1.1rem;
  }
  
  .post-price {
    font-size: 1.1rem;
  }
  
  .post-score {
    font-size: 1.5rem;
  }
  
  .post-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .pagination a, 
  .pagination span {
    padding: 4px 8px;
    font-size: 0.875rem;
  }
} 