/* ============================================================
   🎨 GLOBAL BASE / ОБЩАЯ БАЗА ДЛЯ АУКЦИОНА "CHONDA"
   Здесь только то, что реально нужно НОВОЙ витрине.
   Всё старьё и #auctions вынесено в legacy-auctions.css
   ============================================================ */


/* ПАНЕЛЬ ВХОДА / РЕГИСТРАЦИИ СПРАВА */
#auth-panel {
  /* float убираем, он только мешает во flex-колонке */
  float: none;
  margin-top: 7px;
  margin-left: 0;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(230, 214, 193, 0.95);
  background: rgba(0, 0, 0, 0.8);

  position: relative;
  z-index: 10;
}

/* состояние: Гость — рамка только вокруг содержимого */
#auth-panel .auth-link:first-child,
#auth-panel .auth-link:last-child,
#auth-panel .auth-user-panel {
  border-radius: 12px;
}

/* состояние: пользователь вошёл — панель с рамкой и фоном */
#auth-panel .auth-user-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(230, 214, 193, 0.95);
  background: rgba(0, 0, 0, 0.8);
  color: #f6f2e9;
  font-size: 12px;
}

/* 🔪 Сбрасываем фон/рамки внутри, чтобы старые стили не лезли */
#auth-panel * {
  background: none;
  border: none;
}

/* "Вход" слева */
#auth-panel .auth-link:first-child {
  display: inline-block;
  padding: 2px 4px;
  color: #f6f2e9;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 11;
}

#auth-panel .auth-link:first-child:hover {
  color: #ffd780;
  text-decoration: underline;
}

/* Тонкий разделитель между ссылками */
#auth-panel .auth-separator {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: rgba(246, 242, 233, 0.3);
}

/* Красная кнопка "Регистрация" справа (как картинка) */
#auth-panel .auth-link:last-child {
  display: inline-block;
  width: 90px;
  height: 20px;
  text-indent: -9999px; /* текст прячем */
  overflow: hidden;
  background: url("/static/img/reg.png") no-repeat 0 0;
  cursor: pointer;
  position: relative;
  z-index: 11;
}

/* hover без смены кадра — просто подсветка */
#auth-panel .auth-link:last-child:hover {
  outline: 1px solid #ffd780;
  box-shadow: 0 0 4px rgba(255, 215, 128, 0.9);
}

/* Иконка и текст внутри панели пользователя */
#auth-panel .auth-user-icon {
  font-size: 14px;
}

#auth-panel .auth-user-text {
  font-size: 12px;
}

/* Кнопка "Выход" справа */
#auth-panel .auth-logout-btn {
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #222;
  background: linear-gradient(135deg, #ffd780, #e0b860);
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

#auth-panel .auth-logout-btn:hover {
  background: linear-gradient(135deg, #ffe39c, #f0c870);
}

/* ===== 4. ГЛОБАЛЬНЫЕ ССЫЛКИ ===== */

a {
  color: #f6f2e9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== 5. ОБОЛОЧКА СТРАНИЦЫ / СВЕТ ===== */

.top-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgba(255, 215, 128, 0.20), transparent 55%);
  opacity: 0.9;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

/* ===== 6. ШАПКА АУКЦИОНА ===== */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}

/* Левая колонка: логотип + подписи */
.logo-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

/* h1 для SEO, визуально не виден */
.logo-main {
  margin: 0;
  font-size: 0;
}

/* Подпись под логотипом */
.logo-sub {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(231, 196, 126, 0.95);
  text-align: left;
  background: rgb(0 0 0 / 57%);
}

/* Подпись категории под слоганом */
.logo-category-sub {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5d27a;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  border-left: 3px solid rgba(245, 210, 120, 0.9);
  padding-left: 10px;
  background: rgb(0 0 0 / 57%);
}

/* Правая колонка: LIVE + панель авторизации */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 40px 0 0 0;  /* можно поиграться между 30–50 */
  margin-right: 0;
}

/* Рамка LIVE (без диких отрицательных маргинов) */
.header-panel {
  border: 1px solid rgba(255, 96, 96, 0.9);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: right;
  background: rgb(0 0 0 / 57%);
  margin-top: 0;
  margin-right: 0;
}

/* LIVE + подпись */
.header-live-main {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 96, 96, 0.9);
  color: #ffdddd;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.header-live-sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: rgba(246, 242, 233, 0.9);
}

/* ===== 7. КОНТЕНТ / "ТОРГОВЫЙ ЗАЛ" ===== */

.content {
  margin-top: 4px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* Заголовок "Торговый зал" */
.hero-title {
  margin: 24px 0 6px;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  color: #f6e27a;
  background: rgba(17, 12, 6, 0.37);
}


/* Это общая база; детали карточек живут в components/lot-card.css */

.auction-grid-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card.lot-card {
  background: rgba(17, 12, 6, 0.9);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 128, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.lot-media {
  position: relative;
  padding-top: 62%;
  background: radial-gradient(circle at center, #453214 0, #1a1206 55%, #050308 100%);
  overflow: hidden;
}

.lot-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lot-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(246, 242, 233, 0.8);
  font-size: 12px;
  padding: 8px;
}

.lot-body {
  padding: 14px 14px 16px;
}

.lot-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.lot-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(246, 242, 233, 0.9);
}

.lot-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.lot-price {
  font-weight: 600;
  font-size: 14px;
  color: #ffd780;
}

.lot-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 233, 0.3);
  text-transform: lowercase;
}

.lot-sale-type {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(246, 242, 233, 0.85);
}

.lot-video {
  margin-bottom: 10px;
}

.lot-video video {
  width: 100%;
  border-radius: 6px;
}

/* Блок действий в карточке: инпут + кнопка ставки */

.lot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bid-input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 128, 0.26);
  background: rgba(8, 5, 3, 0.9);
  color: #f6f2e9;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}

.bid-input::placeholder {
  color: rgba(246, 242, 233, 0.6);
}

.bid-input:focus {
  border-color: rgba(255, 215, 128, 0.8);
}

/* Кнопка ставки */

.btn-primary {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  background: rgba(255, 215, 128, 0.18);
  color: #ffd780;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: rgba(255, 215, 128, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  background: rgba(255, 215, 128, 0.24);
}




/* Подсветка почти завершившихся торгов */
.lot-card.near-ending .auction-timer-box {
  box-shadow: 0 0 14px rgba(255, 120, 120, 0.8);
  border-color: rgba(255, 140, 140, 0.9);
  transform: translateY(-1px);
}

.lot-card.near-ending .auction-timer-label {
  color: #ffb3b3;
  opacity: 1;
}

/* ===== 11. МИНИ-ИКОНКА СКУЛЬПТУРЫ В АДМИНКЕ ===== */

.lot-row-thumb {
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-right: 8px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 128, 0.6);
  vertical-align: middle;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lot-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lot-row-thumb:hover {
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(255, 215, 128, 0.9);
  z-index: 5;
}

/* ===== 12. ФУТЕР ===== */

.footer {
  margin-top: 32px;
  font-size: 12px;
  color: rgba(246, 242, 233, 0.75);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.footer-right a {
  color: rgba(246, 242, 233, 0.75);
  text-decoration: none;
  font-size: 12px;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-right .divider {
  margin: 0 4px;
}

/* ===== 13. АДАПТИВ ===== */

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    align-items: flex-start;
    padding: 16px 0 0;
  }

  .header-panel {
    text-align: left;
    margin-right: 0;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .auction-grid {
    grid-template-columns: 1fr;
  }

  .card.lot-card {
    max-width: 100%;
  }
}

/* ===== КОНЕЦ НОВОГО style.css (FRONT + ЧУТЬ АДМИНКИ) ===== */
