/* Minimal HackerNews-style CSS for SunDeals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #f8f8f8;
    font-size: 14px;
    color: #161e2f;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Header styling */
.header {
    padding: 5px 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header div{
    margin-right: auto;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.header h1 span {  
    display: inline-block;
    transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
}

.sub{
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 14px;
}

.header a{
    color: #161e2f;
    border-bottom: 1px dotted;
    text-decoration: none;

}

.header a:hover{
    color: #0000ff;
    border-bottom: 1px solid;
}

.hero{
    padding: 5px 10px;
    margin-bottom: 40px;
    border-bottom: 1px dotted;
}

.ft {
    margin: 10px 0 10px 0;
    width:100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    
}

.ft img{
    max-width: 100%;
    object-fit: cover;
}

.ft a{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color:#161e2f;
}
.ft a:hover{
    color: #0000ff;
}

/* Filter section */
.filters {
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filters select, .filters input[type="submit"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.filters input[type="submit"] {
    background-color: #161e2f;
    color: white;
    cursor: pointer;
    border: none;
    padding: 6px 12px;
}

.filters input[type="submit"]:hover {
    background-color: #0000ff;
}

/* Deal item styling */
.deal {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px dotted;

}

.deal-meta-date {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.new-price {
    font-weight: bold;
    margin-right: 5px;
}

.old-price {
    text-decoration: line-through;
    color: #666;
}

.deal a {
    color: #000;
    text-decoration: none;
}

.deal a:hover {
   color:#0000FF;;
}

.date {
    margin-left: auto;
}

.date , .deal-meta{
    color: #666;
    font-size: 12px;
}

.dsc{
    margin-top: 40px;
    padding: 5px 10px;
    display: flex;
    gap:10px;
    flex-direction: column;
}

.foot{
    margin-top: auto;
    display: flex;
    gap:10px;
    font-size: 14px;
    padding: 5px 10px;
}

.foot a{
    color: #161e2f;
    margin: 10px;
    text-decoration: none;
    border-bottom: 1px solid;
}
.page {
    max-width: 1500px;
    margin:20px auto;
    padding: 10px;
}

.page h1, .page h2, .page h3, .page h4{
  margin:15px 0;
}

.page ul{
  list-style: disc;
  margin-left: 30px;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.page-link {
    padding: 8px 16px;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
}

.page-link:hover {
    color: #0000ff;
}

.page-link.disabled {
    color: #999;
    cursor: not-allowed;
}

.page-info {
    padding: 8px 16px;
}

/* Clear filters button */
.clear-filters {
  padding: 4px 0px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s;
  border-bottom: 1px dotted;
  font-size: 12px;
}

.clear-filters:hover {
    color: #0000ff;
    border-bottom: 1px solid;
}



/* For smaller screens */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters select, .filters input[type="submit"] {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* No results message */
.no-results {
    padding: 10px;
}
