/* css/categories.css */
/* Стили для страницы категорий */

/* Хлебные крошки */
.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;
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Основной контейнер */
.categories-content {
    margin-top: 30px;
}

/* Страница конкретной категории */
.category-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .category-detail {
        grid-template-columns: 1fr;
    }
}

/* Боковая панель */
.category-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    color: #3498db;
    font-size: 1.1rem;
    width: 24px;
}

.info-item span {
    flex: 1;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.other-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.other-category:hover {
    background-color: #f8f9fa;
    color: #3498db;
    border-color: #e0e0e0;
    transform: translateX(5px);
}

.other-category i {
    font-size: 1rem;
    width: 20px;
    color: #95a5a6;
}

.other-category:hover i {
    color: #3498db;
}

/* Основной контент категории */
.category-main {
    min-height: 500px;
}

.lots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Карточка лота */
.lot-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.lot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.lot-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.lot-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.lot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lot-card:hover .lot-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.no-image i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.lot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lot-badge.ending {
    background-color: #e74c3c;
}

.lot-info {
    padding: 20px;
}

.lot-info h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.lot-info h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.lot-info h3 a:hover {
    color: #3498db;
}

.lot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.meta-item i {
    font-size: 0.9rem;
}

.lot-price {
    margin-bottom: 20px;
}

.lot-price span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}

.lot-actions {
    display: flex;
    gap: 10px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    color: #7f8c8d;
}

.empty-state i {
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Страница всех категорий */
.all-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Статистика категорий */
.categories-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Карточка категории */
.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.category-card-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #3498db;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.category-card-body {
    padding: 25px;
    flex: 1;
}

.category-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.category-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.category-card-body h3 a:hover {
    color: #3498db;
}

.category-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-card-footer {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Адаптивность */
@media (max-width: 768px) {
    .categories-stats {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .lots-grid {
        grid-template-columns: 1fr;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .categories-stats {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}