/* ═══════════════════════════════════════════
   MindMatch Featured Therapists — v1.0.0
   ═══════════════════════════════════════════ */

/* ── Wrap ── */
.mmf-wrap {
        background: #f5fbfb;
        border-radius: 20px;
        padding: 2.5rem 2rem;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ── Header row ── */
.mmf-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 1.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
}
.mmf-title {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: #1a4444 !important;
        margin: 0 0 0.2rem !important;
        padding: 0 !important;
        border: none !important;
        line-height: 1.2 !important;
}
.mmf-subtitle {
        font-size: 0.88rem;
        color: #5a7070;
        margin: 0;
}
.mmf-view-all {
        font-size: 0.88rem;
        font-weight: 600;
        color: #2bb5ba;
        text-decoration: none;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
}
.mmf-view-all:hover { text-decoration: underline; color: #1a4444; }

/* ── 4-column equal grid ── */
.mmf-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
        justify-items: center;
}

.mmf-grid--loading {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 260px;
}

.mmf-featured-spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #e0f4f5;
        border-top-color: #2bb5ba;
        border-radius: 50%;
        animation: mmf-spin 0.8s linear infinite;
}

@keyframes mmf-spin {
        to { transform: rotate(360deg); }
}

/* ── Cards ── */
.mmf-card {
        width: 100%;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 14px rgba(0,0,0,0.07);
        transition: transform 0.22s, box-shadow 0.22s;
        cursor: pointer;
}
.mmf-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Photo area */
.mmf-card__photo {
        position: relative;
        width: 100%;
        padding-top: 110%; /* portrait ratio */
        background: linear-gradient(160deg, #daf0f0, #b8e4e5);
        overflow: hidden;
}
.mmf-card__photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
}
.mmf-card__photo-placeholder {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3.5rem;
        color: #8acece;
}

/* Match badge */
.mmf-card__badge {
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(4px);
        border-radius: 8px;
        padding: 0.3rem 0.5rem;
        text-align: center;
        line-height: 1.1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        min-width: 44px;
}
.mmf-badge-num {
        display: block;
        font-size: 0.88rem;
        font-weight: 800;
        color: #1a4444;
        letter-spacing: -0.02em;
}
.mmf-badge-label {
        display: block;
        font-size: 0.65rem;
        font-weight: 600;
        color: #2bb5ba;
        text-transform: uppercase;
        letter-spacing: 0.04em;
}

/* Play button */
.mmf-card__play {
        position: absolute;
        bottom: 0.6rem;
        left: 0.6rem;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1a4444;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transition: background 0.15s, color 0.15s, transform 0.15s;
        padding: 0;
}
.mmf-card__play svg { width: 10px; height: 10px; margin-left: 1px; }
.mmf-card__play:hover:not(.mmf-card__play--muted) {
        background: #2bb5ba;
        color: #fff;
        transform: scale(1.1);
}
.mmf-card__play--muted {
        cursor: default;
        opacity: 0.45;
}

/* Card body */
.mmf-card__body {
        padding: 0.85rem 0.9rem 1rem;
}
.mmf-card__name {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: #1a2a2a !important;
        margin: 0 0 0.3rem !important;
        padding: 0 !important;
        border: none !important;
        line-height: 1.3 !important;
        text-align: center;
}
.mmf-card__specialisms {
        font-size: 0.72rem;
        color: #5a7070;
        margin: 0 0 0.45rem;
        line-height: 1.4;
        text-align: center;
}
.mmf-card__location {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        font-size: 0.72rem;
        color: #3a7070;
        margin: 0 0 0.75rem;
}
.mmf-card__location svg { flex-shrink: 0; color: #2bb5ba; }

/* View Profile button */
.mmf-card__btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.45rem 0.5rem;
        border: 1.5px solid #c0d8d8;
        border-radius: 50px;
        font-size: 0.78rem;
        font-weight: 600;
        color: #1a4444;
        text-decoration: none;
        transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.mmf-card__btn:hover {
        border-color: #2bb5ba;
        color: #2bb5ba;
        background: #f0fafa;
}

/* Audio player (hidden, injected by JS) */
.mmf-audio-player {
        position: fixed;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        background: #1a4444;
        color: #fff;
        border-radius: 50px;
        padding: 0.6rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        z-index: 9999;
        font-family: inherit;
        font-size: 0.85rem;
        min-width: 280px;
}
.mmf-audio-player.mmf-hidden { display: none; }
.mmf-audio-player__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.mmf-audio-player__controls { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.mmf-audio-player__close {
        background: none;
        border: none;
        color: #a8d0d0;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0;
        line-height: 1;
}
.mmf-audio-player__close:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 780px) {
        .mmf-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
        .mmf-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
        .mmf-wrap { padding: 1.5rem 1rem; border-radius: 12px; }
        .mmf-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
        .mmf-card__photo { padding-top: 105%; }
        .mmf-card__body { padding: 0.65rem 0.75rem 0.8rem; }
        .mmf-audio-player { left: 1rem; right: 1rem; transform: none; min-width: auto; }
}
