/* Стили для страницы лота */

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    color: #bdc3c7;
    font-size: 0.8rem;
}

.breadcrumbs span {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Заголовок лота */
.lot-header {
    margin-bottom: 30px;
}

.lot-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.lot-status {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-active {
    background-color: #d5f4e6;
    color: #27ae60;
    border: 2px solid #27ae60;
}

.status-ended {
    background-color: #f8d7da;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.status-cancelled {
    background-color: #f8f9fa;
    color: #95a5a6;
    border: 2px solid #95a5a6;
}

.time-remaining {
    color: #7f8c8d;
    font-size: 1rem;
}

.countdown {
    font-weight: 700;
    color: #e74c3c;
}

.winner-info {
    background-color: #fff3cd;
    padding: 8px 15px;
    border-radius: 5px;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Основной контент лота */
.lot-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .lot-content {
        grid-template-columns: 1fr;
    }
}

/* Колонка с изображениями */
.lot-images-column {
    position: sticky;
    top: 20px;
    align-self: start;
}

.main-image-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: #f8f9fa;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.no-image-large {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1;
    color: #7f8c8d;
    border-radius: 10px;
}

.no-image-large i {
    margin-bottom: 20px;
}

.lot-hot-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(238, 90, 82, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Дополнительные изображения */
.additional-images {
    margin-top: 30px;
}

.additional-images h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 576px) {
    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #3498db;
    transform: translateY(-3px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Колонка с информацией */
.lot-info-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Карточка с ценой */
.price-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid #f8f9fa;
}

.price-info {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.current-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.price-label {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 10px;
}

.bids-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.min-bid-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    margin-bottom: 20px;
}

.min-bid-label {
    color: #856404;
    font-weight: 500;
}

.min-bid {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e67e22;
}

/* Форма ставки */
.bid-form-section {
    margin-top: 20px;
}

.bid-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bid-input-group {
    position: relative;
    width: 100%;
}

#bidAmount {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    border: 2px solid #3498db;
    border-radius: 8px;
    text-align: center;
}

.currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 500;
    color: #7f8c8d;
}

.user-balance {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.user-balance strong {
    color: #27ae60;
}

.btn-bid {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-bids {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.quick-bids span {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.btn-quick-bid {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #2c3e50;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-quick-bid:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Уведомления */
.owner-notice,
.auth-required {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.owner-notice {
    background-color: #e8f4fc;
    border: 1px solid #b3e0ff;
    color: #0066cc;
}

.auth-required {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.owner-notice i,
.auth-required i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.auth-required a {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}

.auth-required a:hover {
    text-decoration: underline;
}

/* Мета-информация */
.lot-meta-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .lot-meta-info {
        grid-template-columns: 1fr;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.meta-item i {
    font-size: 1.2rem;
    color: #3498db;
    width: 30px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.meta-value {
    display: block;
    font-weight: 500;
    color: #2c3e50;
}

/* Описание */
.description-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.description-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 1.05rem;
}

.description-content p {
    margin-bottom: 15px;
}

/* История ставок */
.bids-history-section {
    margin-bottom: 50px;
}

.bids-history-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-bids {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    color: #7f8c8d;
}

.empty-bids i {
    margin-bottom: 20px;
}

.bids-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.bids-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.bids-table thead {
    background-color: #2c3e50;
    color: white;
}

.bids-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 1rem;
}

.bids-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.bids-table tbody tr:hover {
    background-color: #f8f9fa;
}

.bids-table td {
    padding: 15px 20px;
}

.bid-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bid-user i {
    font-size: 1.5rem;
    color: #3498db;
}

.your-bid-badge {
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 10px;
}

.bid-amount {
    font-size: 1.1rem;
    color: #27ae60;
}

.bid-date {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.current-user-bid {
    background-color: #e8f4fc !important;
}

/* Похожие лоты */
.similar-lots-section {
    margin-bottom: 50px;
}

.similar-lots-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-lots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.similar-lot-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.similar-lot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.similar-lot-image {
    height: 150px;
    overflow: hidden;
}

.similar-lot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-lot-card:hover .similar-lot-image img {
    transform: scale(1.05);
}

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    color: #bdc3c7;
}

.similar-lot-info {
    padding: 15px;
}

.similar-lot-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.similar-lot-category {
    font-size: 0.85rem;
    color: #3498db;
    margin-bottom: 10px;
}

.similar-lot-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #27ae60;
}

.similar-bids-count {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Модальное окно для изображений */
.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

#modalImage {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-bid {
    animation: slideIn 0.5s ease;
}