/**
 * Collections Carousel Section
 * Interactive carousel of collections with blockchain info
 * Vanilla JS implementation - no external dependencies
 */

/* ============================================================
 * MAIN SECTION CONTAINER
 * ============================================================ */

.collections_carousel {
    position: relative;
    width: 100%;
    min-height: 60vh;
    padding: 40px 0;
}

.collections_carousel__container {
    position: relative;
    z-index: 2;
}

.collections_carousel__wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.collections_carousel__background {
    position: absolute;
    width: 100%;
    top: 0px;
    min-height: 100vh;
    z-index: 1;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-attachment: scroll;
}

/* ============================================================
 * HEADER
 * ============================================================ */

.collections_carousel__header {
    text-align: center;
}

.collections_carousel__title {
    /* Uses .section_title1 from pages.css */
    margin-bottom: 10px;
}

.collections_carousel__subtitle {
    /* Uses .section_title2 from pages.css */
    margin-bottom: 10px;
}

.collections_carousel__description {
    /* Uses .section_color_description from pages.css */
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
 * CAROUSEL CONTAINER
 * ============================================================ */

.collections_carousel__carousel {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 80vh;
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin: 0 auto;
}

/* Limit width on large screens */
@media (min-width: 1600px) {
    .collections_carousel__carousel {
        max-width: 90%;
    }
}

@media (min-width: 2000px) {
    .collections_carousel__carousel {
        max-width: 80%;
    }
}

/* ============================================================
 * SLIDES WRAPPER
 * ============================================================ */

.collections_carousel__slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.collections_carousel__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

/* ============================================================
 * SLIDE IMAGE (background layer)
 * ============================================================ */

.collections_carousel__slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.collections_carousel__slide.active .collections_carousel__slide-image {
    opacity: 1;
}

/* ============================================================
 * SLIDE CONTENT (overlay layer)
 * ============================================================ */

.collections_carousel__slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(10, 20, 40, 0.95), transparent);
    display: flex;
    align-items: flex-end;
}

.collections_carousel__slide-text {
    width: 100%;
    max-width: 500px;
}

/* ============================================================
 * SLIDE TEXT ELEMENTS
 * ============================================================ */

.collections_carousel__slide-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-link);
    margin: 0 0 10px 0;
}

.collections_carousel__slide-blockchain {
    font-size: 1rem;
    font-weight: 200;
    color: var(--color-text-secondary);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.collections_carousel__slide-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.collections_carousel__empty {
    text-align: center;
    padding: 40px;
    color: var(--color-text-secondary);
}

/* ============================================================
 * NAVIGATION ARROWS (carousel controls)
 * ============================================================ */

.collections_carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(132, 185, 255, 0.1);
    border: 1px solid var(--color-border);
    color: var(--color-link);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0;
}

.collections_carousel__arrow:hover {
    background: var(--color-link);
    color: var(--color-bg);
    transform: translateY(-50%) scale(1.1);
}

.collections_carousel__arrow--prev {
    left: 20px;
}

.collections_carousel__arrow--next {
    right: 20px;
}

/* ============================================================
 * COUNTER (current / total)
 * ============================================================ */

.collections_carousel__counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 15;
    background: rgba(10, 20, 40, 0.8);
    color: var(--color-link);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================================
 * DOTS PAGINATION
 * ============================================================ */

.collections_carousel__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

.collections_carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(132, 185, 255, 0.3);
    border: 1px solid rgba(132, 185, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.collections_carousel__dot:hover {
    background: rgba(132, 185, 255, 0.6);
}

.collections_carousel__dot.active {
    background: var(--color-link);
    border-color: var(--color-link);
    transform: scale(1.2);
}

/* ============================================================
 * SECTION NAVIGATION (between sections)
 * ============================================================ */

.collections_carousel__section-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.collections_carousel__section-arrow {
    flex: 1;
    text-align: center;
    color: var(--color-link);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.collections_carousel__section-arrow:hover {
    color: var(--color-link-accent);
    transform: translateY(-3px);
}

/* ============================================================
 * RESPONSIVE DESIGN
 * ============================================================ */

@media (max-width: 1024px) {
    .collections_carousel__carousel {
        height: 400px;
    }

    .collections_carousel__slide-title {
        font-size: 1.5rem;
    }

    .collections_carousel__arrow {
        width: 40px;
        height: 40px;
    }

    .collections_carousel__arrow--prev {
        left: 10px;
    }

    .collections_carousel__arrow--next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .collections_carousel__carousel {
        height: 300px;
    }

    .collections_carousel__slide-content {
        padding: 20px;
    }

    .collections_carousel__slide-title {
        font-size: 1.2rem;
    }

    .collections_carousel__slide-blockchain {
        font-size: 0.8rem;
    }

    .collections_carousel__slide-desc {
        display: none;
    }

    .collections_carousel__arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }

    .collections_carousel__counter {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .collections_carousel__dots {
        gap: 6px;
    }

    .collections_carousel__dot {
        width: 8px;
        height: 8px;
    }

    .collections_carousel__section-nav {
        gap: 10px;
    }

    .collections_carousel__section-arrow {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .collections_carousel__carousel {
        height: 250px;
        border-radius: 6px;
    }

    .collections_carousel__slide-content {
        padding: 15px;
    }

    .collections_carousel__slide-title {
        font-size: 1rem;
    }

    .collections_carousel__slide-blockchain {
        font-size: 0.7rem;
    }

    .collections_carousel__arrow {
        width: 32px;
        height: 32px;
    }

    .collections_carousel__arrow--prev {
        left: 5px;
    }

    .collections_carousel__arrow--next {
        right: 5px;
    }

    .collections_carousel__counter {
        font-size: 0.75rem;
        bottom: 15px;
        right: 15px;
        padding: 5px 8px;
    }

    .collections_carousel__dots {
        bottom: 15px;
    }

    .collections_carousel__dot {
        width: 6px;
        height: 6px;
    }
}