/**
 * CSS para o Carrossel de Posts Recentes
 * Arquivo: modules/recent-posts-carousel/assets/recent-posts-carousel.css
 */

/* Container principal */
.dotes-recent-posts-carousel-wrapper {
    width: 100vw;
    position: relative;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 0px 0;
}

/* Efeitos de fade laterais brancos - igual ao slider de categorias */
.dotes-recent-posts-carousel-wrapper::before,
.dotes-recent-posts-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.dotes-recent-posts-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 100%);
}

.dotes-recent-posts-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 100%);
}

/* ContÃªiner principal com a correÃ§Ã£o de layout */
.dotes-recent-posts-carousel {
    display: block;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px; /* EspaÃ§o externo para as setas */
}

/* ConfiguraÃ§Ãµes do Swiper com a correÃ§Ã£o de padding */
.dotes-recent-posts-carousel .swiper {
    width: 100%;
    padding: 20px 0; /* CORREÃ‡ÃƒO: Padding lateral removido */
    overflow: visible;
}

.dotes-recent-posts-carousel .swiper-wrapper {
    align-items: center;
}

.dotes-recent-posts-carousel .swiper-slide {
    width: auto;
    height: auto;
    margin-right: 20px;
}

/* Estilos dos cards (sem alteraÃ§Ãµes) */
.dotes-recent-posts-carousel .carousel-card {
    width: 100%; max-width: 280px;
    height: 498px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    background: #fff;
}
.dotes-recent-posts-carousel .carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
.dotes-recent-posts-carousel .card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.3s ease;
}
.dotes-recent-posts-carousel .carousel-card:hover .card-image {
    transform: scale(1.05);
}
.dotes-recent-posts-carousel .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
    padding: 30px 20px 20px;
    color: white;
}
.dotes-recent-posts-carousel .card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dotes-recent-posts-carousel .carousel-card:hover .card-title {
    transform: translateY(-2px);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
}
.dotes-carousel-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    font-style: italic;
}

/* Responsividade com as correÃ§Ãµes de padding */
@media (max-width: 1200px) {
    .dotes-recent-posts-carousel .carousel-card {
        width: 100%; max-width: 260px;
        height: 462px;
    }
    .dotes-recent-posts-carousel .swiper {
        padding: 20px 0; /* CORREÃ‡ÃƒO APLICADA */
    }
}

@media (max-width: 768px) {
    .dotes-recent-posts-carousel {
        padding: 0 60px;
    }
    .dotes-recent-posts-carousel .carousel-card {
        width: 100%; max-width: 240px;
        height: 427px;
    }
    .dotes-recent-posts-carousel .swiper {
        padding: 20px 0; /* CORREÃ‡ÃƒO APLICADA */
    }
    .dotes-recent-posts-carousel .card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .dotes-recent-posts-carousel {
        padding: 0 50px;
    }
    .dotes-recent-posts-carousel .carousel-card {
        width: 100%; max-width: 200px;
        height: 356px;
    }
    .dotes-recent-posts-carousel .swiper {
        padding: 15px 0; /* CORREÃ‡ÃƒO APLICADA */
    }
    .dotes-recent-posts-carousel .card-title {
        font-size: 14px;
    }
    .dotes-recent-posts-carousel .card-overlay {
        padding: 20px 15px 15px;
    }
    .dotes-recent-posts-carousel .swiper-slide {
        margin-right: 15px;
    }
}

/* AnimaÃ§Ãµes e outros estilos */
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.dotes-recent-posts-carousel .swiper-slide {
    animation: slideInFromRight 0.6s ease-out;
}
.dotes-recent-posts-carousel .swiper-slide:nth-child(2) { animation-delay: 0.1s; }
.dotes-recent-posts-carousel .swiper-slide:nth-child(3) { animation-delay: 0.2s; }
.dotes-recent-posts-carousel .swiper-slide:nth-child(4) { animation-delay: 0.3s; }
.dotes-recent-posts-carousel .carousel-card:focus {
    outline: none;
}

/* ========== ESTILOS DAS SETAS - VERSÃO CORRIGIDA COM CHEVRONS ========== */
/* Botões de navegação com as setas chevron como na imagem */
.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next,
.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 2px solid #e9ecef;
    position: absolute;
    top: 50%;
    cursor: pointer;
    z-index: 11; /* Maior que o fade para ficar acima */
    transition: all 0.3s ease;
    display: flex; /* Para centralizar o ícone */
    align-items: center; /* Para centralizar verticalmente */
    justify-content: center; /* Para centralizar horizontalmente */
}

.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next:hover,
.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev:hover {
    background-color: #dbbd81;
    border-color: #9b7936;
    transform: scale(1.05);
}

/* Ícones Font Awesome para as setas */
.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next::after {
    content: '\f061'; /* fa-arrow-right */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    color: #9b7936;
    transition: color 0.3s ease;
}

.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev::after {
    content: '\f060'; /* fa-arrow-left */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    color: #9b7936;
    transition: color 0.3s ease;
}

/* Posicionamento nas extremidades do wrapper */
.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next { 
    right: 20px; 
}
.dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev { 
    left: 20px; 
}

/* Responsividade para as setas - adaptada do slider de categorias */
@media (max-width: 1024px) {
    .dotes-recent-posts-carousel-wrapper::before,
    .dotes-recent-posts-carousel-wrapper::after {
        width: 60px;
    }
    
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next,
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev {
        width: 45px;
        height: 45px;
        margin-top: -22.5px;
    }
    
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next::after,
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev::after {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .dotes-recent-posts-carousel-wrapper::before,
    .dotes-recent-posts-carousel-wrapper::after {
        width: 40px;
    }
    
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next { 
        right: 15px; 
    }
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev { 
        left: 15px; 
    }
}

@media (max-width: 640px) {
    .dotes-recent-posts-carousel-wrapper::before,
    .dotes-recent-posts-carousel-wrapper::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next,
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next::after,
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev::after {
        font-size: 12px;
    }
    
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-next { 
        right: 10px; 
    }
    .dotes-recent-posts-carousel-wrapper .dotes-wrapper-button-prev { 
        left: 10px; 
    }
}

/* ========== PAGINAÃ‡ÃƒO (sem alteraÃ§Ãµes) ========== */
.dotes-recent-posts-carousel .swiper-pagination {
    position: relative; /* Para que fique abaixo do carrossel e nÃ£o sobre ele */
    bottom: auto;
    padding-top: 30px; /* EspaÃ§o entre os cards e as bolinhas */
    text-align: center;
    z-index: 10;
}
.dotes-recent-posts-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 0.8;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dotes-recent-posts-carousel .swiper-pagination-bullet:hover {
    opacity: 1;
    transform: scale(1.1);
}
.dotes-recent-posts-carousel .swiper-pagination-bullet-active {
    background-color: #9b7936; /* Cor dourada, igual Ã s setas */
    opacity: 1;
    width: 12px; /* Efeito sutil para destacar a bolinha ativa */
    height: 12px;
}