/* --- Ogólne style, które były w pliku --- */
.auction-list { display: flex; flex-direction: column; gap: 14px; }
.auction-item { padding: 14px 16px; border-radius: 16px; background: var(--bs-body-bg, #fff); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); transition: transform .18s ease, box-shadow .18s ease; }
.auction-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 10px; display: block; }
.auction-body { min-width: 0; padding-left: .25rem; }
.auction-title { font-weight: 600; margin: 0 0 .1rem; line-height: 1.2; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auction-meta { opacity: .75; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions { display: flex; align-items: center; gap: .35rem; flex-wrap: nowrap; justify-content: flex-end; }
.btn_1.btn-compact-xs { padding: 4px 10px; font-size: .8rem; line-height: 1.1; border-radius: 10px; white-space: nowrap; }
.btn_1.outline.btn-compact-xs { padding: 3px 10px; }
.auction-row { align-items: center; }
@media (max-width: 991.98px) {
  .thumb { width: 120px; height: 90px; }
  .actions { flex-wrap: wrap; justify-content: flex-start; gap: .5rem; margin-top: .25rem; }
}
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { margin-top: auto; }
body .hero_single.inner_pages.subhero--half { position: relative; min-height: 130px !important; display: flex; align-items: center; padding: 0 !important; }
body .hero_single.inner_pages.subhero--half .opacity-mask { width: 100%; padding: 16px 0 !important; }
body .hero_single.inner_pages.subhero--half h1 { margin: 0 !important; line-height: 1.2; font-size: clamp(22px, 2.4vw, 32px); }
@media (max-width: 991.98px) {
  body .hero_single.inner_pages.subhero--half { min-height: 110px !important; }
  body .hero_single.inner_pages.subhero--half .opacity-mask { padding: 14px 0 !important; }
}
.additional_links i.bi { vertical-align: -2px; }
.card--flip .thumb { position: relative; overflow: hidden; }
.card--flip .thumb img { display: block; transition: opacity .25s ease; }
.card--flip .thumb img:nth-child(2) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.card--flip .thumb:hover img:nth-child(2) { opacity: 1; }

/*
==================================================================
OSTATECZNA POPRAWKA:
Precyzyjne nadpisanie globalnych stylów WordPressa
TYLKO na stronie z klasą body.author.
==================================================================
*/
body.author .container {
  max-width: 1140px !important;
}

@media (min-width: 1400px) {
  body.author .container {
    max-width: 1320px !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.author .container {
    max-width: 960px !important;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body.author .container {
    max-width: 720px !important;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  body.author .container {
    max-width: 540px !important;
  }
}

/*
====================================================
Style dla siatki artystów na stronie /artysci/ (Wersja z pełnymi danymi)
====================================================
*/
.artist-tile {
    display: block;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.2s ease-in-out;
}

.artist-tile .main_profile {
    margin-top: 0;
    width: 100%;
    height: 100%; /* Sprawia, że kafelki w jednym rzędzie mają tę samą wysokość */
    display: flex;
    flex-direction: column;
}

.artist-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
}

/* Dopasowanie nagłówka w kafelku */
.artist-tile .main_profile h1 {
    font-size: 1.3rem;
    color: var(--heading-color);
    flex-grow: 1; /* Wypełnia przestrzeń, aby przycisk był na dole */
}

/* Poprawki dla listy statystyk */
.artist-tile .main_profile ul {
    margin-bottom: 20px;
}

.artist-tile .main_profile small {
    margin-top: auto; /* Wypycha datę na sam dół kafelka */
}
/* ===========================
   PXS – Search Bar (global)
   =========================== */

:root{
  /* Zmienna z kolorem przycisku (dopasuj, jeśli chcesz) */
  --pxs-brand-pink: #ff2b86;
}

.search_bar{
  position: relative;
  max-width: 100%;
}

/* Pole tekstowe – szerokie, z miejscem na przycisk po prawej */
.search_bar .form-control,
.search_bar input[type="text"],
.search_bar input[type="search"]{
  display: block;
  width: 100%;
  height: 58px;
  line-height: 58px;
  padding: 0 136px 0 16px; /* miejsce na przycisk */
  border-radius: 12px;
  background: #fff;
}

/* Focus – delikatny akcent koloru */
.search_bar .form-control:focus,
.search_bar input[type="text"]:focus,
.search_bar input[type="search"]:focus{
  outline: none;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--pxs-brand-pink) 20%, transparent);
  border-color: color-mix(in srgb, var(--pxs-brand-pink) 40%, #ccc);
}

/* Przycisk „Szukaj” osadzony na polu */
.search_bar input[type="submit"]{
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  height: 46px;
  line-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  background: var(--pxs-brand-pink);
  color: #fff;
  white-space: nowrap;
}

/* Hover/active */
.search_bar input[type="submit"]:hover{
  filter: brightness(0.95);
}
.search_bar input[type="submit"]:active{
  transform: translateY(-50%) scale(0.98);
}

/* Placeholder lekko przygaszony (szczególnie w hero) */
.hero_single .search_bar .form-control::placeholder{
  opacity: .8;
}

/* Małe ekrany */
@media (max-width: 575.98px){
  .search_bar .form-control,
  .search_bar input[type="text"],
  .search_bar input[type="search"]{
    height: 54px;
    line-height: 54px;
    padding-right: 118px; /* węższy przycisk */
  }
  .search_bar input[type="submit"]{
    height: 42px;
    line-height: 42px;
    padding: 0 14px;
    right: 5px;
  }
}

/* Header mobile: keep login/account icon visible */
@media (max-width: 991px){
  ul.top_menu > li.menu-login,
  ul.top_menu > li.menu-account,
  ul.top_menu > li.menu-register{
    display: block !important;
  }
  ul.top_menu > li.menu-login,
  ul.top_menu > li.menu-account,
  ul.top_menu > li.menu-register{
    vertical-align: top;
  }
  ul.top_menu > li.menu-logout{
    display: none !important;
  }
  ul.top_menu > li.menu-register a.btn_access .btn_access_label{
    display: none;
  }
  ul.top_menu > li.menu-register a.btn_access,
  ul.top_menu > li.menu-login a.btn_access,
  ul.top_menu > li.menu-account a.btn_access{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 7px 10px;
    min-width: 40px;
    min-height: 40px;
    text-align: center;
    line-height: 1;
  }
  ul.top_menu > li.menu-register a.btn_access i,
  ul.top_menu > li.menu-login a.btn_access i,
  ul.top_menu > li.menu-account a.btn_access i{
    display: block;
    line-height: 1;
  }
}

/* Auction cards: polished info layout */
.pxs-auction-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color-1);
  box-shadow: 0 6px 18px rgba(14, 20, 35, 0.08);
}
.pxs-auction-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(14, 20, 35, 0.14);
}
.pxs-auction-card > figure{
  position: relative;
  margin: 0;
  overflow: hidden;
  height: auto;
  min-height: 240px;
  aspect-ratio: 4 / 3;
  background: #f5f6f8;
}
.pxs-auction-card > figure .pxs-auction-image-link{
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}
.pxs-auction-card > figure .pxs-auction-image-link img{
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  background: #fff;
  transition: transform .35s ease;
}
.pxs-auction-card > figure:hover img{
  transform: scale(1.05) !important;
}
.pxs-auction-card .countdown{
  left: 14px;
  top: 14px;
  margin-left: 0;
  width: auto;
  min-width: 128px;
  height: 30px;
  line-height: 30px;
  border-radius: 999px;
  padding: 0 12px 0 28px;
  font-size: 0.72rem;
  letter-spacing: .02em;
  text-align: left;
  background: rgba(18, 22, 30, 0.86);
  z-index: 5;
}
.pxs-auction-card .countdown:before{
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #29d17f;
  left: 11px;
  top: 11px;
}
.pxs-auction-card .pxs-auction-card-info{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 16px;
  border-top: 1px solid var(--border-color-1);
  background: var(--background-color-2);
}
.pxs-auction-card .pxs-auction-headline{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pxs-auction-card .pxs-auction-title{
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1.02rem;
  line-height: 1.35;
}
.pxs-auction-card .pxs-auction-title a{
  color: var(--heading-color);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pxs-auction-card .pxs-auction-title a:hover{
  opacity: .85;
}
.pxs-auction-card .pxs-auction-state{
  flex: 0 0 auto;
  font-size: .74rem;
  line-height: 1;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pxs-auction-card .pxs-auction-state.is-upcoming{
  color: #1e7b47;
  background: rgba(39, 163, 93, 0.12);
  border: 1px solid rgba(39, 163, 93, 0.25);
}
.pxs-auction-card .pxs-auction-state.is-finished{
  color: #b02d2d;
  background: rgba(211, 52, 52, 0.12);
  border: 1px solid rgba(211, 52, 52, 0.24);
}
.pxs-auction-card .pxs-auction-exhibitor{
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color-1);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.02);
}
.pxs-auction-card .pxs-auction-exhibitor-logo{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 36px;
  background: #f4f4f4;
}
.pxs-auction-card .pxs-auction-exhibitor-text{
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.pxs-auction-card .pxs-auction-exhibitor-label{
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #848896;
}
.pxs-auction-card .pxs-auction-exhibitor-name{
  font-size: .93rem;
  font-weight: 600;
  color: var(--heading-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pxs-auction-card .pxs-auction-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pxs-auction-card .pxs-auction-meta-item{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color-1);
  background: rgba(0, 0, 0, 0.02);
  font-size: .82rem;
  color: #616573;
}
.pxs-auction-card .pxs-auction-meta-item i{
  color: #7d8293;
  font-size: .9rem;
}
.pxs-auction-card .pxs-auction-action{
  margin-top: 2px;
}
.pxs-auction-card .pxs-auction-action .btn_1{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 14px;
}
@media (max-width: 575.98px){
  .pxs-auction-card > figure{
    min-height: 210px;
  }
  .pxs-auction-card .pxs-auction-card-info{
    padding: 12px;
    gap: 10px;
  }
  .pxs-auction-card .pxs-auction-state{
    padding: 6px 8px;
    font-size: .68rem;
  }
}

/* Keep the auction title and exhibitor visually separate on the home cards. */
#pxsUpcomingRoot .author h6 { margin-bottom: 7px; line-height: 1.4; }
#pxsUpcomingRoot .author .small { line-height: 1.4; }
.pxs-auction-match-count { margin: 10px 0; font-weight: 600; }
