/* ═══════════════════════════════════════════════════════════
   EliteAdvisor Listings — Dark Theme v2.0
   File path: /wp-content/themes/hello-elementor-child/assets/css/listing-styles.css
   Page bg: #0b001d  |  Card bg: #0b001d
   Label:   #e0dde3  |  Value: #fefeff
   Font:    Poppins
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ── Wrap ───────────────────────────────────────────────── */
.ea-listings-wrap {
    width: 100%;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    box-sizing: border-box;
}

/* ── Stack: one card per row ────────────────────────────── */
.ea-listings-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Single listing card ────────────────────────────────── */
.ea-listing-card {
    position: relative;
    background: #0b001d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 35px 35px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin: 10px 0 10px 0;
}

.ea-listing-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(120, 80, 255, 0.15);
}

/* ── New Listing badge — top right ─────────────────────── */
.ea-new-listing-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #4ade80;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.ea-new-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
    animation: ea-pulse 2s ease-in-out infinite;
}

@keyframes ea-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ── Horizontal stats row ───────────────────────────────── */
.ea-card-stats {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding-right: 120px;
}

/* ── Individual stat ────────────────────────────────────── */
.ea-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* ── Label color: #e0dde3 ───────────────────────────────── */
.ea-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #e0dde3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

/* ── Value color: #fefeff ───────────────────────────────── */
.ea-stat-value {
    font-size: 25px;
    font-weight: 600;
    color: #fefeff;
    white-space: nowrap;
    letter-spacing: -0.01em;
    font-family: 'Poppins', sans-serif;
}

/* ── Vertical divider between stats ────────────────────── */
.ea-stat-divider {
    width: 1px;
    height: 40px;
    background-color: #c1bcc6;
    flex-shrink: 0;
    margin: 0 45px;
    opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════
   GATE — blurred card + lock overlay + button below
   ══════════════════════════════════════════════════════════ */

 .ea-gate-wrap {
    position: relative;
    margin-top: 12px;
} 

/* ── Blurred ghost card ─────────────────────────────────── */
 .ea-ghost-stack {
    display: flex;
    flex-direction: column;
    pointer-events: none;
    user-select: none;
    position: relative;
} 

 .ea-ghost-card {
    display:none;
} 

/* ── Lock + heading overlay ON the card ─────────────────── */
.ea-ghost-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: rgba(11, 0, 29, 0.55);
}

.ea-ghost-lock {
    font-size: 22px;
    line-height: 1;
}

.ea-ghost-heading {
    font-size: 15px;
    font-weight: 700;
    color: #fefeff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    text-align: center;
    padding: 0 16px;
}

/* ── CTA section below the card ─────────────────────────── */
.ea-gate-cta {
    text-align: center;
    padding: 28px 24px 20px;
}

.ea-gate-title {
    font-size: 20px;
    font-weight: 600;
    color: #fefeff;
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
}

.ea-gate-text {
    font-size: 14px;
    line-height: 1.6;
    color: #e0dde3;
    margin: 0 0 20px;
    font-family: 'Poppins', sans-serif;
}

/* ── View All Listings button (gold gradient) ───────────── */
.ea-gate-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #0D1121;
    background-image: linear-gradient(90deg, #997A3D 0%, #D8B363 100%);
    border-radius: 0px;
    padding: 18px 30px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: 'Poppins', sans-serif;
    margin: 10px 0;
}

.ea-gate-btn:hover {
    background-image: none;
    background-color: #ffffff;
    color: #0D1121;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── I'm Interested button (grey) ───────────────────────── */
.ea-interested-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #0D1121;
    background-color: #A2A2A2;
    border-radius: 0px;
    padding: 18px 40px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    margin: 10px 0;
}

.ea-interested-btn:hover {
    background-color: transparent;
    background-image: linear-gradient(180deg, #0D1121 0%, #0D1121 100%);
    color: #ffffff;
    text-decoration: none;
}

.ea-gate-login {
    margin: 3px 0 10px;
    font-size: 13px;
    color: #e0dde3;
    font-family: 'Poppins', sans-serif;
}

.ea-gate-login a {
    color: #fefeff;
    text-decoration: underline;
}

.ea-gate-login a:hover {
    color: #ffffff;
}

/* ── No listings fallback ───────────────────────────────── */
.ea-no-listings {
    color: #e0dde3;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
    font-family: 'Poppins', sans-serif;
}

/* ── PMPro Account — Active Listing Box ─────────────────── */
.ea-account-listing-box {
    margin-top: 20px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.ea-account-listing-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Poppins', sans-serif;
}

.ea-account-listing-link {
    font-size: 14px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.ea-account-listing-link:hover {
    text-decoration: underline;
    color: #6d28d9;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ea-card-stats {
        flex-wrap: wrap;
        padding-right: 0;
    }

    .ea-stat-divider {
        display: none;
    }

    .ea-stat {
        flex: 0 0 50%;
        padding: 8px 0;
    }

    .ea-new-listing-badge {
        position: static;
        margin-bottom: 12px;
    }

    .ea-stat-value {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .ea-listing-card {
        padding: 16px;
    }

    .ea-stat {
        flex: 0 0 100%;
    }
}



/* ═══════════════════════════════════════════════
   SOLD OUT — Listing Card
   ═══════════════════════════════════════════════ */

.ea-listing-card.sold-out {
    position: relative;
}

.ea-listing-card.sold-out .ea-card-stats {
    position: relative;
}

/* Blur Practice Type + Custody (5th and 7th children, dividers counted) */
.ea-listing-card.sold-out .ea-card-stats .ea-stat:nth-child(5),
.ea-listing-card.sold-out .ea-card-stats .ea-stat:nth-child(7) {
    filter: blur(6px);
    opacity: 0.35;
}

/* The SOLD stamp */
.ea-listing-card.sold-out .ea-card-stats::after {
     content: "S O L D";
    background: rgba(74, 26, 38, 0.9);
    position: absolute;
    top: 50%;
    left: 45.2%;
    transform: translate(-50%, -50%);
    z-index: 3;

    /* Red text */
    color: #ff2b2b;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 6px;
    font-family: Arial, sans-serif;
    text-align: center;
    white-space: nowrap;

    /* Red rounded border box */
    border: 3px solid #ff2b2b;
    border-radius: 12px;
    padding: 12px 50px;
    min-width: 25%;

    /* Glow effect */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 18px rgba(255, 43, 43, 0.55),
                inset 0 0 12px rgba(255, 43, 43, 0.25);
}


/* Responsive */
@media (max-width: 640px) {
    .ea-listing-card.sold-out .ea-card-stats::after {
        font-size: 26px;
        letter-spacing: 3px;
        padding: 8px 30px;
    }
}
