/**
 * REI Profile Dashboard styles.
 *
 * Styles the personal profile dashboard rendered by the
 * [rei_profile_dashboard] shortcode. All typography is inherited from the
 * active theme — no font-family declarations here.
 *
 * Design tokens match ERE: borders #dedede, text #222, muted text #8f8f8f,
 * cards with radius 4px and shadow 0 1px 4px rgba(0,0,0,0.08).
 *
 * @package Real_Estate_Individual
 */

/* ─── Wrapper ─── */
.rei-pd-wrap {
    --rei-pd-color: #D4AF37;
    --rei-pd-text: #FFFFFF;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
    color: #222;
}

/* ─── Header ─── */
.rei-pd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.rei-pd-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

/* ─── Cards ─── */
.rei-pd-card {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 18px;
    margin-bottom: 16px;
}

.rei-pd-card h3 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* ─── Maturity bar ─── */
.rei-pd-maturity-bar {
    height: 12px;
    border-radius: 6px;
    background: #eee;
    overflow: hidden;
    margin-bottom: 10px;
}

.rei-pd-maturity-fill {
    position: relative;
    height: 100%;
    border-radius: 6px;
    transition: width 0.618s ease;
}

/*
 * Gradient overlay on top of the personal color fill: soft highlight on
 * the left (61.8% — golden ratio cut) fading to a subtle darkening on the
 * right, so the bar reads as a gradient originating from the personal color.
 */
.rei-pd-maturity-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0) 61.8%,
        rgba(0, 0, 0, 0.12) 100%);
}

.rei-pd-maturity-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: #8f8f8f;
}

/* ─── Color swatches ─── */
.rei-pd-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.rei-pd-swatch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rei-pd-swatch-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #dedede;
    box-sizing: border-box;
}

.rei-pd-swatch-hex {
    font-size: 12px;
    color: #8f8f8f;
}

/* ─── Interests grid (locations / types) ─── */
.rei-pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.rei-pd-grid .rei-pd-card {
    margin-bottom: 0;
}

.rei-pd-interest-row {
    margin-bottom: 12px;
}

.rei-pd-interest-row:last-child {
    margin-bottom: 0;
}

.rei-pd-interest-name {
    margin-bottom: 4px;
    font-size: 13px;
    color: #222;
}

.rei-pd-interest-bar {
    height: 6px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden;
}

.rei-pd-interest-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--rei-pd-color);
    transition: width 0.618s ease;
}

.rei-pd-empty {
    margin: 0;
    font-size: 13px;
    color: #8f8f8f;
}

/* ─── Stats ─── */
.rei-pd-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-bottom: 0;
    font-size: 13px;
}

.rei-pd-stat-label {
    color: #8f8f8f;
}

.rei-pd-stat-value {
    color: #222;
    font-weight: 600;
}

/* ─── Responsive: stack on mobile ─── */
@media (max-width: 640px) {
    .rei-pd-wrap {
        padding: 16px 12px;
    }

    .rei-pd-grid,
    .rei-pd-stats {
        grid-template-columns: 1fr;
    }
}
