/* ========================================
   ProfileGrid User Carousel Styles
   ======================================== */

/* Container Principal */
.pm-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Wrapper do Carrossel */
.pm-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Container da Track */
.pm-carousel-track-container {
    overflow: hidden;
    width: 100%;
}

/* Track (linha de cards) */
.pm-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

/* ========================================
   Card do Usuário
   ======================================== */

.pm-carousel-card {
    flex: 0 0 calc(25% - 15px); /* 4 cards no desktop */
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pm-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Container da Imagem */
.pm-card-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
    background: linear-gradient(135deg, #D06376 0%, #764ba2 100%);
}

.pm-card-image-container img.pm-card-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Badge Premium */
.pm-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    z-index: 10;
    animation: pulse 2s infinite;
}

.pm-card-badge-svg {
    width: 50px;
    height: 50px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Conteúdo do Card */
.pm-card-content {
    padding: 20px;
    background: #ffffff;
}

.pm-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.pm-card-profession {
    font-size: 14px;
    color: #C98024;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.pm-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #718096;
    margin: 0 0 8px 0;
}

.pm-card-location svg {
    flex-shrink: 0;
}

.pm-card-need {
    font-size: 13px;
    color: #4a5568;
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 12px 0 0 0;
}

/* Links do WhatsApp */
.pm-card-whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #25d366;
    text-decoration: none;
    margin: 12px 0;
    transition: color 0.2s;
}

.pm-card-whatsapp-link:hover {
    color: #128c7e;
}

/* Botão Ver Perfil */
.pm-card-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0;
    transition: all 0.3s;
}

.pm-card-profile-btn:hover {
    background: #b5cabb;
    transform: scale(1.02);
}

/* Botão WhatsApp secundário (quando existe perfil) */
.pm-card-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0;
    transition: all 0.3s;
}

.pm-card-whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.02);
}

/* Link do Instagram */
.pm-card-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.pm-card-instagram:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ========================================
   Botões de Navegação
   ======================================== */

.pm-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
    outline: none;
}

.pm-carousel-btn svg {
    color: #D06376;
    stroke: #D06376;
}

.pm-carousel-btn:hover svg {
    color: #D06376;
    stroke: #D06376;
    transform: scale(1.2);
}

.pm-carousel-btn:active svg {
    transform: scale(1);
}

.pm-carousel-prev {
    left: -40px;
}

.pm-carousel-next {
    right: -40px;
}

/* ========================================
   Indicadores (Dots)
   ======================================== */

.pm-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pm-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.pm-carousel-dot:hover {
    background: #a0aec0;
    transform: scale(1.2);
}

.pm-carousel-dot.active {
    background: #D06376;
    width: 32px;
    border-radius: 6px;
}

/* ========================================
   Responsivo
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
    .pm-carousel-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards */
    }

    .pm-carousel-prev {
        left: -50px;
    }

    .pm-carousel-next {
        right: -50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pm-carousel-container {
        padding: 0 10px;
    }

    .pm-carousel-card {
        flex: 0 0 100%; /* 1 card por vez */
    }

    .pm-carousel-wrapper {
        gap: 10px;
    }

    .pm-carousel-track {
        gap: 10px;
    }

    /* Botões no mobile */
    .pm-carousel-btn svg {
        width: 32px;
        height: 32px;
    }

    .pm-carousel-prev {
        left: -10px;
    }

    .pm-carousel-next {
        right: -10px;
    }

    /* Card content ajustado */
    .pm-card-content {
        padding: 16px;
    }

    .pm-card-name {
        font-size: 16px;
    }

    .pm-card-profession,
    .pm-card-location {
        font-size: 13px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .pm-carousel-container {
        margin: 20px auto;
    }

    .pm-card-badge {
        width: 40px;
        height: 40px;
        top: 8px;
        right: 8px;
    }

    .pm-card-badge-svg {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   Animações e Transições
   ======================================== */

/* Fade in ao carregar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pm-carousel-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading state (opcional) */
.pm-carousel-container.loading .pm-carousel-track {
    opacity: 0.5;
    pointer-events: none;
}
