/* Основные стили страницы коллекций */

/* Шапка страницы с каруселью */
.collections-header {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
    color: white;
}

/* Карусель коллекций */
.collections-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Навигация карусели */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 2rem;
}

.carousel-nav.next {
    right: 2rem;
}

.carousel-nav i {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Индикаторы слайдов */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Контент поверх карусели */
.header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.collections-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.collections-description {
    font-size: 1.3rem;
    max-width: 600px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Статистика коллекций */
.collections-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: -3rem auto 3rem;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

.collections-stat-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 160px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.collections-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.collections-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.collections-stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Сетка коллекций */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.collection-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4a6fa5;
}

.collection-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover .collection-image {
    transform: scale(1.1);
}

.collection-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.collection-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.collection-description-short {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.collection-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f3f5;
    margin-top: auto;
}

.collection-count {
    font-weight: 600;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.collection-link {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.collection-card:hover .collection-link {
    color: #166088;
    gap: 0.8rem;
}

/* Коллекция без изображения */
.collection-no-image {
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.collection-no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 75%
    );
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
}

.no-image-icon {
    font-size: 4rem;
    color: white;
    z-index: 1;
    opacity: 0.8;
}

@keyframes movePattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Пустая страница */
.empty-collections {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    grid-column: 1 / -1;
    margin: 2rem 0;
}

.empty-icon {
    font-size: 5rem;
    color: #4a6fa5;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-collections h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .collections-title {
        font-size: 3rem;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .collections-header {
        height: 60vh;
        min-height: 400px;
    }
    
    .collections-title {
        font-size: 2.5rem;
    }
    
    .collections-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .collections-stats {
        gap: 1.5rem;
        margin: -2rem auto 2rem;
    }
    
    .collections-stat-item {
        padding: 1.5rem;
        min-width: 140px;
    }
    
    .collections-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .collections-header {
        height: 50vh;
        min-height: 350px;
    }
    
    .collections-title {
        font-size: 2rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-nav.prev {
        left: 1rem;
    }
    
    .carousel-nav.next {
        right: 1rem;
    }
    
    .collections-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .collections-stat-item {
        width: 80%;
        max-width: 300px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .collection-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .collections-header {
        height: 40vh;
        min-height: 300px;
    }
    
    .collections-title {
        font-size: 1.8rem;
    }
    
    .collections-description {
        font-size: 1rem;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}