/* ==========================================================================
   Behance Portfolio Carousel — public/css/carousel.css
   Design: dark overlay, tags bordadas, título bold, botão laranja
   ========================================================================== */

/* ---- Wrapper global ---- */
.bpc-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
}

/* ---- Swiper container ---- */
.bpc-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 44px !important; /* espaço para paginação */
}

/* ---- Slide ---- */
.bpc-slide {
    height: auto;
    display: flex;
}

/* ---- Card principal ---- */
.bpc-card {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* ---- Imagem de fundo ---- */
.bpc-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bpc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bpc-card:hover .bpc-card__image img {
    transform: scale(1.04);
}

.bpc-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ---- Overlay escuro gradiente ---- */
.bpc-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.20) 40%,
        rgba(0,0,0,0.75) 75%,
        rgba(0,0,0,0.88) 100%
    );
    transition: background 0.3s ease;
}

.bpc-card:hover .bpc-card__overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0.80) 75%,
        rgba(0,0,0,0.92) 100%
    );
}

/* ---- Logo Behance (canto superior esquerdo) ---- */
.bpc-card__behance-logo {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 10;
    opacity: 0.95;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* ---- Conteúdo inferior ---- */
.bpc-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px 14px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---- Tags / Categorias (setas azuis) ---- */
.bpc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bpc-card__tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.6);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    line-height: 1.5;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.bpc-card:hover .bpc-card__tag {
    background: rgba(255,255,255,0.12);
}

/* ---- Linha inferior: título + botão ---- */
.bpc-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

/* ---- Título (seta vermelha) ---- */
.bpc-card__title {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: clamp(13px, 2vw, 17px);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    flex: 1;
}

/* ---- Botão laranja (seta verde) ---- */
.bpc-card__btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background-color: #ff6b00;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(255,107,0,0.4);
}

.bpc-card:hover .bpc-card__btn {
    background-color: #ff8c00;
    transform: scale(1.08);
}

.bpc-card__btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   Navegação (prev/next)
   ============================================================ */
.bpc-nav-btn {
    color: #ffffff !important;
    background: rgba(0,0,0,0.45) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    transition: background 0.2s, transform 0.2s !important;
    backdrop-filter: blur(4px);
}

.bpc-nav-btn:hover {
    background: rgba(255,107,0,0.85) !important;
    transform: scale(1.1) !important;
}

.bpc-nav-btn::after {
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* ============================================================
   Paginação
   ============================================================ */
.bpc-pagination {
    bottom: 8px !important;
}

.bpc-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.4) !important;
    opacity: 1 !important;
    width: 7px !important;
    height: 7px !important;
    transition: background 0.2s, width 0.3s !important;
}

.bpc-pagination .swiper-pagination-bullet-active {
    background: #ff6b00 !important;
    width: 22px !important;
    border-radius: 4px !important;
}

/* ============================================================
   Responsividade
   ============================================================ */
@media (max-width: 1024px) {
    .bpc-card__title {
        font-size: 13px;
    }
    .bpc-card__btn {
        width: 36px;
        height: 36px;
    }
    .bpc-card__btn svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 640px) {
    .bpc-card__content {
        padding: 10px 12px 12px;
    }
    .bpc-card__title {
        font-size: 12px;
    }
    .bpc-card__tag {
        font-size: 9px;
        padding: 2px 8px;
    }
    .bpc-card__btn {
        width: 34px;
        height: 34px;
    }
    .bpc-card__behance-logo svg {
        width: 22px;
        height: 14px;
    }
    .bpc-nav-btn {
        display: none !important;
    }
}
