/*
Theme Name: Auction Bootstrap Theme
Theme URI: https://yourdomain.com/
Author: Your Name or Team
Author URI: https://yourdomain.com/
Description: Lightweight Bootstrap-based theme for custom auction software.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: auction-bootstrap
*/

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  padding-top: 70px;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  margin-bottom: 2rem;
}

.auction-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.auction-grid .lot {
  flex: 1 0 21%;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
}

.auction-grid .lot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Grid Layout */
.custom-bootstrap-grid .row {
  display: flex !important;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.custom-bootstrap-grid .col,
.custom-bootstrap-grid .col-md-3,
.custom-bootstrap-grid .col-sm-6,
.custom-bootstrap-grid .mb-4 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.card-title {
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Search Form */
.auction-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: start;
  max-width: 100%;
}

.auction-search-form input[type="search"] {
  width: 150px;
}

.auction-search-form select {
  width: auto;
  min-width: 180px;
}

.auction-search-form button[type="submit"] {
  white-space: nowrap;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.pagination .page-numbers {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background-color: white;
  color: #333;
  text-decoration: none;
}

.pagination .current {
  background-color: #d40000;
  color: white;
  border-color: #d40000;
}

.pagination .page-numbers:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

/* Thumbnails */
.thumbnail-container img {
  border: 2px solid #ccc;
  transition: border 0.2s;
}

.thumbnail-container img:hover {
  border: 2px solid #555;
}

/* Responsive Tweaks */
@media (max-width: 767px) {
  .navbar-brand h1 a,
  .navbar-brand h1 {
    font-size: 26px !important;
    line-height: 1.2;
  }

  .custom-bootstrap-grid .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-img-top {
    max-height: 250px;
    object-fit: contain;
  }

  .alignright {
    float: none;
    display: block;
    margin: 1em auto;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .custom-bootstrap-grid .col-sm-6,
  .custom-bootstrap-grid .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .custom-bootstrap-grid .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Header */
#site-header {
  background-color: #1c1c1c;
  color: #ffffff;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 400;
}

#site-header a {
  color: #ffffff;
  text-decoration: none;
}

#site-header .navbar-brand {
  margin-bottom: 10px;
}

#site-header .navbar-brand h1,
#site-header .navbar-brand h2 {
  font-size: 1.8rem;
  margin: 0;
  color: #ffffff;
}

#site-header .tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: #ddd;
}

#site-header .header_date {
  font-size: 14px;
  opacity: 0.8;
}

/* Navigation */
.main-navigation {
  position: relative;
  z-index: 1000;
}

.desktop-menu ul#menu-main-menu-1 {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  list-style: none;
  padding-left: 0 !important;
  margin: 0 !important;
}

.desktop-menu ul#menu-main-menu-1 > li {
  margin-right: 20px;
}

.desktop-menu ul#menu-main-menu-1 > li > a {
  padding: 10px 15px;
  color: #d40000 !important;
  text-decoration: none;
}

.desktop-menu ul#menu-main-menu-1 > li > a:hover {
  text-decoration: underline;
}

/* alignright image support */
.alignright {
  float: right;
  margin: 0 0 1em 1em;
  display: inline;
}

/* Card image with fallback */
.card-img-top {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: #f8f8f8;
  border: 2px solid #ccc;
  transition: border 0.2s;
}

.card-img-top:hover {
  border-color: #555;
}

@supports not (aspect-ratio: 1 / 1) {
  .card-img-top {
    height: 200px;
    object-fit: contain;
  }
}

.entry-content img,
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.banner-grid a {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-grid a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.banner-grid img {
  width: 100%;
  max-width: 200px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


