/* ==========================================================================
   Club Do Desejo - Public Profiles Grid CSS
   ========================================================================== */

/* Section and container layout */
body .clubPublic_gridSection {
    padding: 60px 0;
    background-color: #100025;
    /* Brand dark purple/black background */
    width: 100%;
}

body .clubPublic_gridContainer {
    max-width: 1320px;
    padding: 0 10px;
    margin: 0 auto;
    box-sizing: border-box;
}

body .clubPublic_gridTitle {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin: 0 auto;
    margin-bottom: 25px;
    position: relative;
}

/* Grid layout wrapper base (shared layout properties) */
body .clubPublic_gridWrapper {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Column Configurations (Desktop / Mobile configurations)
   -------------------------------------------------------------------------- */

/* Configuration: 4 cols desktop - 2 cols mobile */
body .clubPublic_gridCols_4_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    body .clubPublic_gridCols_4_2 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Configuration: 3 cols desktop - 1 col mobile */
body .clubPublic_gridCols_3_1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    body .clubPublic_gridCols_3_1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Column Configuration: 2 cols desktop - 1 col mobile */
body .clubPublic_gridCols_2_1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    body .clubPublic_gridCols_2_1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* --------------------------------------------------------------------------
   Profile Card Component Styling
   -------------------------------------------------------------------------- */

/* Premium Card item */
body .clubPublic_grid_item {
    display: flex;
    flex-direction: column;
    background-color: #16062f;
    border: 1px solid rgba(93, 17, 207, 0.25);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

body .clubPublic_grid_item:hover {
    border-color: rgba(159, 16, 216, 0.8);
    box-shadow: 0 12px 35px rgba(159, 16, 216, 0.35);
}

/* Media/Image Wrapper */
body .clubPublic_grid_media {
    position: relative;
    width: 100%;
    padding-top: 130%;
    overflow: hidden;
    background-color: #0b0119;
}

body .clubPublic_grid_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Card Placeholder when image is missing */
body .clubPublic_grid_placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #100025 0%, #2b0c54 100%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 2.5rem;
}

/* Destaque Badge (Static/No Animation) */
body .clubPublic_grid_badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #5d11cf 0%, #9f10d8 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(93, 17, 207, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20;
}

/* Card Content Details */
body .clubPublic_grid_details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    box-sizing: border-box;
}

/* Title & Age (Made slightly smaller) */
body .clubPublic_grid_title {
    font-size: 1.0rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

body .clubPublic_grid_item:hover .clubPublic_grid_title {
    color: #ffdc00;
    /* Yellow highlight color on card hover */
}

body .clubPublic_grid_age {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 2px;
}

/* City / Location Layout with Circle Icon */
body .clubPublic_grid_city {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

body .clubPublic_grid_iconCircle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(93, 17, 207, 0.18);
    border: 1px solid rgba(93, 17, 207, 0.25);
    flex-shrink: 0;
}

body .clubPublic_grid_icon {
    color: #9f10d8;
    font-size: 0.75rem;
}

/* Price styling */
body .clubPublic_grid_price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

body .clubPublic_grid_priceVal {
    color: #ffdc00;
    /* Highlighting the price using yellow */
    font-weight: 700;
}

/* Tagline highlight phrase (Colored yellow and made slightly larger) */
body .clubPublic_grid_tagline {
    font-size: 0.95rem;
    color: #ffdc00;
    font-style: italic;
    margin: 4px 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action button style */
body .clubPublic_grid_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #5d11cf 0%, #9f10d8 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 10px;
    /* Push to bottom of the flex container */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(93, 17, 207, 0.2);
    width: 100%;
    box-sizing: border-box;
}

body .clubPublic_grid_item:hover .clubPublic_grid_btn {
    background: linear-gradient(90deg, #9f10d8 0%, #5d11cf 100%);
    box-shadow: 0 6px 16px rgba(159, 16, 216, 0.45);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Swiper Slider Styling
   -------------------------------------------------------------------------- */

body .clubPublic_grid_swiper {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

body .clubPublic_grid_swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

body .clubPublic_grid_swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Prevent layout shift (CLS) and forced reflow before Swiper JS initializes */
body .clubPublic_grid_swiper:not(.swiper-initialized) {
    display: block;
    overflow: hidden;
}

body .clubPublic_grid_swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

body .clubPublic_grid_swiper:not(.swiper-initialized) .swiper-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

body .clubPublic_grid_swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

/* Swiper navigation buttons - Always visible */
body .clubPublic_grid_swiperPrev,
body .clubPublic_grid_swiperNext {
    color: #ffffff !important;
    background-color: rgba(16, 0, 37, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    border: 1px solid rgba(93, 17, 207, 0.3);
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

body .clubPublic_grid_swiperPrev::after,
body .clubPublic_grid_swiperNext::after {
    font-size: 0.65rem !important;
    font-weight: 900;
}

body .clubPublic_grid_swiperPrev {
    left: 8px !important;
}

body .clubPublic_grid_swiperNext {
    right: 8px !important;
}

body .clubPublic_grid_swiperPrev:hover,
body .clubPublic_grid_swiperNext:hover {
    background: linear-gradient(135deg, #5d11cf 0%, #9f10d8 100%);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(159, 16, 216, 0.5);
    transform: scale(1.05);
}

/* Swiper Pagination - Expanding Dots */
body .clubPublic_grid_swiperPagination {
    bottom: 10px !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

body .clubPublic_grid_swiperPagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 4px !important;
    cursor: pointer;
}

body .clubPublic_grid_swiperPagination .swiper-pagination-bullet-active {
    width: 18px;
    /* Stretching pill shape */
    background: linear-gradient(90deg, #5d11cf 0%, #9f10d8 100%) !important;
    box-shadow: 0 0 6px rgba(159, 16, 216, 0.6);
}

/* ==========================================================================
   Responsiveness & Mobile Compact Layouts (For 2-column mobile layout)
   ========================================================================== */
@media (max-width: 767px) {

    /* Reduce margins/spacings and text sizes for maximum density inside 2-column mobile cards */
    body .clubPublic_gridCols_4_2 .clubPublic_grid_badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
        letter-spacing: 0.4px;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_details {
        padding: 12px;
        gap: 6px;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_title {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_age {
        font-size: 0.8rem;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_city {
        font-size: 0.72rem;
        gap: 5px;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_iconCircle {
        width: 16px;
        height: 16px;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_icon {
        font-size: 0.62rem;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_price {
        font-size: 0.72rem;
        gap: 3px;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_tagline {
        font-size: 0.85rem;
        margin-top: 1px;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_btn {
        font-size: 0.72rem;
        padding: 8px 12px;
        border-radius: 8px;
        letter-spacing: 0.5px;
    }

    /* Keep Swiper controls small on mobile */
    body .clubPublic_gridCols_4_2 .clubPublic_grid_swiperPrev,
    body .clubPublic_gridCols_4_2 .clubPublic_grid_swiperNext {
        width: 24px !important;
        height: 24px !important;
    }

    body .clubPublic_gridCols_4_2 .clubPublic_grid_swiperPrev::after,
    body .clubPublic_gridCols_4_2 .clubPublic_grid_swiperNext::after {
        font-size: 0.55rem !important;
    }
}