/* ============================================
   КОМПОНЕНТ: КАРТОЧКА ЛОТА ДЛЯ АУКЦИОНА
   Автор: Ты и DeepSeek | Версия: 1.0
   ============================================ */

/* 1. ОСНОВНОЙ КОНТЕЙНЕР */
.lot-card {
    /* Фон и рамка */
    background: rgba(17, 12, 6, 0.95);
    border: 1px solid rgba(255, 215, 128, 0.2);
    border-radius: 12px;
    
    /* Тень и отступы */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    
    /* Плавные переходы */
    transition: all 0.3s ease;
    
    /* Расположение */
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* Курсор */
    cursor: default;
}

/* Эффект при наведении */
.lot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 128, 0.4);
    box-shadow: 0 10px 25px rgba(255, 215, 128, 0.15);
}

/* 2. ИЗОБРАЖЕНИЕ ЛОТА */
.lot-card__image {
    width: 100%;
    height: 220px;
    position: relative;
 /*    overflow: hidden; */
}

.lot-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lot-card:hover .lot-card__image img {
    transform: scale(1.05);
}

/* Плейсхолдер если нет изображения */
.lot-card__image--placeholder {
    background: linear-gradient(135deg, #1a1309 0%, #2a1e10 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 215, 128, 0.5);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}




/* 3. ТЕЛО КАРТОЧКИ */
.lot-card__body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 320px;   /* выравнивает низ у карточек */
    /* без max-height и overflow: hidden */

   }


/* Мобильный вариант для тела карточки (пока не используется)
@media (max-width: 768px) {
    .lot-card__body {
        padding: 15px;
        min-height: 260px;
        max-height: none;
        overflow: visible;
    }
}
*/




/* 4. ЗАГОЛОВОК */
.lot-card__title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffd780;
    line-height: 1.4;
    
    /* Ограничение в 2 строки */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;


    max-height: 50px;
  height: 50px;
  
  
}

/* 5. ОПИСАНИЕ */

/* 6. ЦЕНЫ */
.lot-card__prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.lot-card__start-price {
    color: #ffd780;
    font-size: 16px;
    font-weight: 600;
}

.lot-card__current-bid {
    color: #4CAF50;
    font-size: 15px;
    font-weight: 500;
}



.lot-card__timer-label {
    font-size: 12px;
    color: rgba(246, 242, 233, 0.6);
    margin-bottom: 5px;
    display: block;
}

.lot-card__timer-value {
    font-size: 16px;
    color: #ffd780;
    font-weight: 600;
    font-family: monospace;
}



/* 9. СТАТУС */
.lot-card__status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    align-self: flex-start;
}

.lot-card__status--active {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.lot-card__status--finished {
    background: rgba(158, 158, 158, 0.15);
    color: #9E9E9E;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.lot-card__status--sold {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

/* 10. МОДИФИКАТОРЫ (дополнительные состояния) */
.lot-card--highlighted {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.lot-card--featured {
    position: relative;
}

.lot-card--featured::before {
    content: "★ Рекомендуем";
    position: absolute;
    top: 15px;
    right: -30px;
    background: #FF5722;
    color: white;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
}

/* 11. АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .lot-card__image {
        height: 180px;
    }
    
    .lot-card__body {
        padding: 15px;
    }
    
    .lot-card__title {
        font-size: 16px;
    }
    
    .lot-card__bid-button {
        padding: 10px;
        font-size: 14px;
    }
}




/* ============================================
   УЛУЧШЕННЫЙ ВАРИАНТ КАРТОЧКИ (с полной информацией)
   ============================================ */

/* БЛОК С ЦЕНАМИ (расширенный) */
.lot-card__prices-detailed {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 215, 128, 0.3);
}

.lot-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lot-card__price-label {
    color:  rgb(255, 215, 128);
    font-size: 13px;
}

.lot-card__price-value {
    font-weight: 600;
    font-size: 14px;
}

.lot-card__price-value--start {
    color: #ffd780;
}

.lot-card__price-value--current {
    color: #4CAF50;
}

.lot-card__price-value--step {
    color: #2196F3;
}



/* ===============================*/
/* ===== КНОПКИ ==скелет==СДЕЛАТЬ СТАВКУ  И ПОДРОБНЕЕ ===ПЕРЕНЕСЕНО= В 
frontend\static\css\components\Two_ buttons.css==*/
/* ===============================*/


/* СООБЩЕНИЕ О СТАВКЕ */
.lot-card__bid-message {
    margin-top: 8px;
    font-size: 12px;
    min-height: 16px;
    text-align: center;
}

.lot-card__bid-message--success {
    color: #4CAF50;
}

.lot-card__bid-message--error {
    color: #f44336;
}

/* ТИП ПРОДАЖИ */
.lot-card__sale-type {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(33, 150, 243, 0.3);
}

/* стили под видео блока */
.lot-card__video {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.lot-card__video video {
  display: block;
  width: 100%;
  height: auto;
}


/* УСЛОВИЯ ПРОДАЖИ */
/* Внешняя коробка секции — БЕЗ ограничений высоты */
/* УСЛОВИЯ ПРОДАЖИ — контейнер со скроллом */
.lot-card__sale-terms {
    position: relative;
    margin: 0 0 12px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(246, 242, 233, 0.78);

    max-height: 80px;
  height: 80px;
    overflow-y: auto;

    background: radial-gradient(circle at top left,
                                rgba(255, 215, 128, 0.06),
                                rgba(0, 0, 0, 0.35));
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 128, 0.25);

    min-height: 42px;
}

/* СТИЛИ СКРОЛЛА — ДЛЯ sale-terms, а не description */
.lot-card__sale-terms::-webkit-scrollbar {
    width: 6px;
}
.lot-card__sale-terms::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.lot-card__sale-terms::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 128, 0.5);
    border-radius: 4px;
}
.lot-card__sale-terms::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 128, 0.8);
}
    

.lot-card__sale-terms-header {
    font-weight: 600;
    color: #ffd780;      /* цвет заголовка */
    margin-bottom: 4px;
    font-size: 13px;
}

/* Текст с прокруткой */
.lot-card__sale-terms-body {
    max-height: 60px;            /* окно для текста */
    min-height: 32px;
    overflow-y: auto;
}




/* 5. ОПИСАНИЕ */
.lot-card__description {
    position: relative;
    margin: 0 0 12px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(246, 242, 233, 0.78);

    /* фиксированная высота и скролл, чтобы карточки не прыгали */
    max-height: 90px;
    overflow-y: auto;

    /* лёгкий фон и тонкая рамка */
    background: radial-gradient(circle at top left,
                                rgba(255, 215, 128, 0.06),
                                rgba(0, 0, 0, 0.35));
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 128, 0.25);

    /* чтобы блок не сжимался до нуля, если текста мало */
    min-height: 42px;
}

/* аккуратный скролл только внутри описания */
.lot-card__description::-webkit-scrollbar {
    width: 6px;
}
.lot-card__description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.lot-card__description::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 128, 0.5);
    border-radius: 4px;
}
.lot-card__description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 128, 0.8);
}



/* Основной контейнер блока ТИП ПРОДАЖИ */
/* Основной контейнер */
.lot-card__sale-type {
    display: flex;
    align-items: center;
    /* margin: 15px 0;*/
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(30, 25, 20, 0.8) 0%, rgba(15, 12, 10, 0.9) 100%);
    border: 1px solid rgba(255, 215, 128, 0.12);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Внутренняя структура */
.lot-card__sale-type .lot-card__price-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px; /* Отступ между колонками */


}

/* Левая часть: ТИП ПРОДАЖИ (вертикально) */
.lot-card__sale-type .lot-card__price-label {
    display: flex;
    flex-direction: column; /* Ставим слова друг под друга */
    align-items: center;
    justify-content: center;
    text-align: center;
    

   /* font-size: 10px; /* Маленький, аккуратный шрифт */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 215, 128, 0.45); /* Приглушенное золото, не бьет в глаза */
    
    min-width: 65px;
    padding-right: 15px;
       border-right: 1px solid rgb(186 160 103 / 53%); /* Элегантная линия-разделитель */
    line-height: 1.2;
}

/* Правая часть: Значение параметров */
.lot-card__sale-type .lot-card__price-value {
    /* Меняем ядовито-желтый на мягкий кремовый/бежевый */
    color: #c8bb9f; 
    font-size: 14px;
    font-weight: 400; /* Облегчаем вес шрифта */
    line-height: 1.4;
    text-align: right;
   /*  flex: 1;*/
    
    /* Убираем тяжелое свечение, оставляем легкую глубину */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Декоративный блик на фоне (для "души") */
.lot-card__sale-type::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,128,0.03) 0%, transparent 70%);
    pointer-events: none;
}




/* Пока можно добавить очень простой стиль, 
чтобы кубок выглядел аккуратно и счётчик читался: */

.lot-card__leader-trophy {
    position: relative;
    width: 72px;   /* было ~24px, сделали в 3 раза больше */
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;      /* размер самого кубка (emoji / иконки / svg) */
}

/* цифра поверх в центре кубка */
.lot-card__leader-trophy-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
}





/* ===== ОПИСАНИЕ С ПРОКРУТКОЙ ===== */
.lot-card__description-container {
    max-height: 80px;
  height: 80px;

    overflow: hidden;
    position: relative;
    margin: 10px 0;
}

.lot-card__description-scroll {
max-height: 80px;
  height: 80px;
  
  overflow-y: auto;
    padding-right: 10px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
}

.lot-card__description-scroll::-webkit-scrollbar {
    width: 4px;
}

.lot-card__description-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.lot-card__description-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,215,128,0.5);
    border-radius: 2px;
}




/* ================================================ */
/* ============================================
   ТАЙМЕР: ПРЕМИАЛЬНЫЙ ХРОНОМЕТР С БЕГУЩЕЙ СТРОКОЙ
   ============================================ */
/*  ===ПЕРЕНЕСЕНО= В frontend\static\css\components\TIMER.css ==*/
/* =============================================== */



/* =============================================== */
/* Основной контейнер СПОЙЛЕРОВ  для карточки лота ===================== */
/*  ===ПЕРЕНЕСЕНО= В frontend\static\css\components\SPOILERS_on _the_CARD.css ==*/
/* =============================================== */




/* ===== СООБЩЕНИЯ ===== */
.bid-message, .lot-card__bid-message {
    min-height: 40px;
    margin-top: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bid-message--success, .lot-card__bid-message--success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.1));
    border: 2px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    animation: messagePop 0.5s ease;
}

.bid-message--error, .lot-card__bid-message--error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.1));
    border: 2px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
    animation: messageShake 0.5s ease;
}

.bid-message--info, .lot-card__bid-message--info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.1));
    border: 2px solid rgba(33, 150, 243, 0.4);
    color: #2196f3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

@keyframes messagePop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes messageShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}



/* Описание с прокруткой 
.lot-card__description-container {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
}
*/

/* Сообщения о ставках */
.bid-message, .lot-card__bid-message {
    min-height: 40px;
    margin-top: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bid-message--success, .lot-card__bid-message--success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.1));
    border: 2px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    animation: messagePop 0.5s ease;
}

.bid-message--error, .lot-card__bid-message--error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.1));
    border: 2px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
    animation: messageShake 0.5s ease;
}

.bid-message--info, .lot-card__bid-message--info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.1));
    border: 2px solid rgba(33, 150, 243, 0.4);
    color: #2196f3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

@keyframes messagePop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes messageShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

