/* ============================================
   Ironmarket - View Auction Page
   Reuses homepage design tokens (hp-*) with
   page-specific va-* classes for the auction view.
   ============================================ */

:root {
  --va-primary: #ffc107;
  --va-primary-dark: #e0a800;
  --va-text: #2a3540;
  --va-text-light: #5e6d78;
  --va-bg: #f5f7f8;
  --va-bg-white: #ffffff;
  --va-border: #dce2e7;
  --va-dark: #1a2129;
  --va-dark-2: #2a3540;
  --va-success: #1f9d55;
  --va-info: #3b6cb5;
  --va-muted: #8a96a3;
}


/* ============================================
   HERO
   ============================================ */
.va-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 48vh, 520px);
  display: flex;
  align-items: center;
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
  background: var(--va-dark);
}

.va-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.va-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.va-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(15, 22, 32, 0.92) 0%,
      rgba(15, 22, 32, 0.78) 45%,
      rgba(15, 22, 32, 0.45) 100%
    );
}

.va-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.va-hero__breadcrumb {
  margin-bottom: 1.25rem;
}

.va-hero__breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.va-hero__breadcrumb .breadcrumb-item,
.va-hero__breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.va-hero__breadcrumb .breadcrumb-item a:hover {
  color: var(--va-primary);
}

.va-hero__breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.55);
}

.va-hero__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.va-hero__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--va-primary);
  margin-bottom: 0.65rem;
}

.va-hero__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.va-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
  color: #c8d2dc;
  font-size: 0.95rem;
  font-weight: 500;
}

.va-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.va-hero__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--va-primary);
}

.va-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.va-cta {
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s;
  border: 1px solid transparent;
  line-height: 1.2;
}

.va-cta--primary {
  background: var(--va-primary);
  color: var(--va-dark);
  border-color: var(--va-primary);
}

.va-cta--primary:hover {
  background: var(--va-primary-dark);
  border-color: var(--va-primary-dark);
  color: var(--va-dark);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.va-cta--secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.30);
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.va-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.va-cta--outline {
  background: transparent;
  color: var(--va-text);
  border-color: var(--va-border);
  font-weight: 600;
}

.va-cta--outline:hover {
  background: var(--va-bg);
  border-color: var(--va-text-light);
  color: var(--va-text);
}

.va-cta--sm {
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
}


/* ============================================
   STATUS PILL
   ============================================ */
.va-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.va-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}

.va-status--active {
  background: rgba(31, 157, 85, 0.18);
  color: #4fd58a;
  border-color: rgba(79, 213, 138, 0.4);
}

.va-status--active .va-status__dot {
  animation: va-pulse 2s infinite;
}

.va-status--preview {
  background: rgba(255, 193, 7, 0.18);
  color: #ffd54a;
  border-color: rgba(255, 193, 7, 0.45);
}

.va-status--ended {
  background: rgba(255, 255, 255, 0.10);
  color: #c8d2dc;
  border-color: rgba(255, 255, 255, 0.25);
}

@keyframes va-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 213, 138, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(79, 213, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 213, 138, 0); }
}


/* ============================================
   LOTS LIST
   ============================================ */
.va-lots {
  background: var(--va-bg);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--va-border);
}

.va-lots__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.va-lots__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--va-primary-dark);
  margin-bottom: 0.25rem;
}

.va-lots__title {
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 800;
  color: var(--va-text);
  letter-spacing: -0.4px;
  margin: 0;
}

.va-lots__count {
  color: var(--va-text-light);
  font-size: 0.95rem;
  font-weight: 500;
}


/* ============================================
   LOT CARD
   ============================================ */
.va-lot-card {
  background: var(--va-bg-white);
  border: 1px solid var(--va-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.va-lot-card:hover {
  box-shadow: 0 14px 32px -10px rgba(42, 53, 64, 0.18);
  transform: translateY(-2px);
  border-color: var(--va-primary);
}

.va-lot-card__row {
  display: flex;
  flex-wrap: wrap;
}

.va-lot-card__media {
  position: relative;
  flex: 0 0 100%;
  background: var(--va-dark-2);
}

.va-lot-card__media .carousel,
.va-lot-card__media .carousel-inner,
.va-lot-card__media .carousel-item {
  height: 100%;
}

.va-lot-card__media .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.va-lot-card__photo-flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  background: rgba(15, 22, 32, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.va-lot-card__photo-flag svg {
  width: 13px;
  height: 13px;
}

.va-lot-card__body {
  flex: 1 1 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.va-lot-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--va-text);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.va-lot-card__title a {
  color: inherit;
  text-decoration: none;
}

.va-lot-card__title a:hover {
  color: var(--va-primary-dark);
}

.va-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.va-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--va-bg);
  border: 1px solid var(--va-border);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  color: var(--va-text);
  line-height: 1.3;
}

.va-spec__label {
  color: var(--va-muted);
  font-weight: 500;
}

.va-spec__value {
  color: var(--va-text);
  font-weight: 600;
}

.va-lot-card__description {
  color: var(--va-text-light);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.va-lot-card__actions {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--va-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.va-lot-card__actions .va-cta {
  flex: 1 1 auto;
  justify-content: center;
}

.va-login-prompt {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f0f6ff;
  border: 1px solid #c9dcf6;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--va-text);
  line-height: 1.45;
}

.va-login-prompt svg {
  width: 18px;
  height: 18px;
  color: var(--va-info);
  flex: 0 0 auto;
  margin-top: 2px;
}

.va-login-prompt a {
  color: var(--va-info);
  font-weight: 600;
  text-decoration: underline;
}


/* ============================================
   SIDEBAR
   ============================================ */
.va-sidebar__heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--va-primary-dark);
  margin-bottom: 1rem;
}

.va-side-card {
  background: var(--va-bg-white);
  border: 1px solid var(--va-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.va-side-card:hover {
  box-shadow: 0 10px 22px -8px rgba(42, 53, 64, 0.15);
  transform: translateY(-2px);
  border-color: var(--va-primary);
  color: inherit;
}

.va-side-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--va-dark-2);
  overflow: hidden;
}

.va-side-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.va-side-card__flag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(15, 22, 32, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.va-side-card__body {
  padding: 0.85rem 1rem;
}

.va-side-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--va-text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.va-side-card__meta {
  font-size: 0.8rem;
  color: var(--va-text-light);
  margin: 0;
  line-height: 1.4;
}

.va-info-card {
  background: var(--va-bg-white);
  border: 1px solid var(--va-border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.va-info-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--va-text);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.va-info-card__title svg {
  width: 16px;
  height: 16px;
  color: var(--va-primary-dark);
}

.va-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
}

.va-info-card ul li {
  font-size: 0.85rem;
  color: var(--va-text-light);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
}

.va-info-card ul li svg {
  width: 14px;
  height: 14px;
  color: var(--va-success);
  flex: 0 0 auto;
  margin-top: 3px;
}

.va-info-card p {
  font-size: 0.85rem;
  color: var(--va-text-light);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.va-info-card .va-cta {
  width: 100%;
  justify-content: center;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .va-lot-card__row {
    flex-wrap: nowrap;
  }
  .va-lot-card__media {
    flex: 0 0 38%;
    max-width: 38%;
  }
  .va-lot-card__media .carousel-item img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 240px;
  }
  .va-lot-card__body {
    flex: 1 1 auto;
    padding: 1.5rem;
  }
  .va-lot-card__actions .va-cta {
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  .va-hero__actions .va-cta {
    flex: 1 1 100%;
    justify-content: center;
  }
}


/* ============================================
   EVENTS PAGE
   ============================================ */
.va-hero--events {
  min-height: clamp(280px, 36vh, 380px);
  background: linear-gradient(135deg, var(--va-dark) 0%, var(--va-dark-2) 100%);
}

.va-hero--events .va-hero__overlay {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.10) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(59, 108, 181, 0.12) 0%, transparent 60%);
}

.va-hero__subtitle {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  color: #c8d2dc;
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  max-width: 620px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.va-events {
  background: var(--va-bg);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--va-border);
}

.va-events__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.va-events__heading {
  margin: 0;
}

.va-events__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--va-primary-dark);
  margin-bottom: 0.25rem;
}

.va-events__title {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  font-weight: 800;
  color: var(--va-text);
  letter-spacing: -0.4px;
  margin: 0;
}

.va-events__pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.va-events__page-info {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  color: var(--va-text-light);
  font-size: 0.9rem;
}


/* --- Event card --- */
.va-event-card {
  display: flex;
  flex-direction: column;
  background: var(--va-bg-white);
  border: 1px solid var(--va-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.va-event-card:hover {
  box-shadow: 0 14px 32px -10px rgba(42, 53, 64, 0.18);
  transform: translateY(-3px);
  border-color: var(--va-primary);
  color: inherit;
}

.va-event-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--va-dark-2);
}

.va-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.va-event-card:hover .va-event-card__media img {
  transform: scale(1.04);
}

.va-event-card__flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 22, 32, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.va-event-card__status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.va-event-card__status .va-status__dot {
  width: 7px;
  height: 7px;
}

.va-event-card__status--active {
  background: rgba(31, 157, 85, 0.85);
  color: #fff;
  border-color: rgba(79, 213, 138, 0.6);
}

.va-event-card__status--preview {
  background: rgba(255, 193, 7, 0.92);
  color: var(--va-dark);
  border-color: rgba(224, 168, 0, 0.6);
}

.va-event-card__status--ended {
  background: rgba(15, 22, 32, 0.78);
  color: #c8d2dc;
  border-color: rgba(255, 255, 255, 0.25);
}

.va-event-card__body {
  padding: 1.1rem 1.15rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.va-event-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--va-text);
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.va-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--va-text-light);
  margin-bottom: 0.65rem;
}

.va-event-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.va-event-card__meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--va-primary-dark);
  flex: 0 0 auto;
}

.va-event-card__time {
  font-size: 0.85rem;
  color: var(--va-text);
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.5rem;
}

.va-event-card__time strong {
  color: var(--va-text);
  font-weight: 700;
}

.va-event-card__footer {
  border-top: 1px solid var(--va-border);
  padding: 0.8rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--va-text);
}

.va-event-card__footer-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--va-bg);
  color: var(--va-text);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.va-event-card:hover .va-event-card__footer-arrow {
  background: var(--va-primary);
  color: var(--va-dark);
  transform: translateX(3px);
}

.va-event-card__footer-arrow svg {
  width: 14px;
  height: 14px;
}


/* --- Empty state --- */
.va-events-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--va-bg-white);
  border: 1px dashed var(--va-border);
  border-radius: 14px;
}

.va-events-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4cd 0%, #ffe27a 100%);
  color: #b8860b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid #f0d65a;
}

.va-events-empty h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--va-text);
  margin: 0 0 0.5rem;
}

.va-events-empty p {
  color: var(--va-text-light);
  margin: 0 0 1.25rem;
  max-width: 480px;
  margin-inline: auto;
}
