/* Voices.ma custom talent card — scoped to avoid disturbing other Felan elements. */
:root {
    --vma-primary: #0071ce;
    --vma-primary-hover: #005eae;
    --vma-text: #303b45;
    --vma-muted: #56616b;
    --vma-panel: #f6f7f9;
    --vma-track: #cbd3dc;
}

.vma-talent-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 13px 16px 14px !important;
    overflow: visible !important;
    border: 1px solid #d6dce1 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: 0 3px 10px rgba(20, 38, 54, .11) !important;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.vma-talent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(20, 38, 54, .14) !important;
}

.vma-talent-card::before,
.vma-talent-card::after {
    content: none !important;
}

.vma-card-actions {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 13px;
}

.vma-card-actions .add-follow-freelancer,
.vma-card-actions .logged-out,
.vma-card-actions .logged-out > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d8dde2 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(20, 38, 54, .11);
    color: #b1bac2 !important;
    text-decoration: none !important;
}

.vma-card-actions .add-follow-freelancer:hover,
.vma-card-actions .add-follow-freelancer.added {
    border-color: rgba(0, 113, 206, .35) !important;
    color: var(--vma-primary) !important;
}

.vma-card-actions .icon-plus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.vma-card-actions i {
    font-size: 21px !important;
    line-height: 1 !important;
}

.vma-card-actions .text-icon,
.vma-card-actions [data-title]::before,
.vma-card-actions [data-title]::after {
    display: none !important;
}

.vma-avatar-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin: 0 auto 5px;
    text-decoration: none !important;
}

.vma-avatar-wrap {
    display: block;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #f3f5f7;
    box-shadow: 0 1px 5px rgba(20, 38, 54, .12);
}

.vma-talent-avatar {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.vma-card-header {
    width: 100%;
    margin-bottom: 9px;
}

.vma-talent-name {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 0 5px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

.vma-talent-name a {
    color: var(--vma-primary) !important;
    text-decoration: none !important;
}

.vma-talent-name a:hover {
    color: var(--vma-primary-hover) !important;
}

.vma-verified {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
}

.vma-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #45515c;
    font-size: 14px;
    line-height: 1.3;
}

.vma-rating-star {
    color: #ffbd21;
    font-size: 24px;
    line-height: .8;
}

.vma-rating-value {
    font-weight: 500;
}

.vma-rating-separator {
    color: #77818a;
}

.vma-review-count {
    color: var(--vma-primary);
    font-weight: 700;
}

.vma-demo-panel {
    width: 100%;
    margin-bottom: 9px;
    padding: 10px 11px 11px;
    border-radius: 4px;
    background: var(--vma-panel);
}

.vma-talent-summary {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 8px !important;
    overflow: hidden;
    color: var(--vma-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vma-audio-player {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 8px;
}

.vma-audio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--vma-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: transform .15s ease, background-color .15s ease;
}

.vma-audio-toggle:hover,
.vma-audio-toggle:focus-visible {
    background: var(--vma-primary-hover);
    transform: scale(1.025);
}

.vma-audio-toggle svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.vma-icon-pause {
    display: none;
}

.vma-audio-player.is-playing .vma-icon-play {
    display: none;
}

.vma-audio-player.is-playing .vma-icon-pause {
    display: block;
}

.vma-audio-range {
    width: 100%;
    height: 15px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    accent-color: var(--vma-primary);
    -webkit-appearance: none;
    appearance: none;
}

.vma-audio-range::-webkit-slider-runnable-track {
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--vma-primary) 0 var(--vma-progress, 0%), var(--vma-track) var(--vma-progress, 0%) 100%);
}

.vma-audio-range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -4.5px;
    border: 0;
    border-radius: 50%;
    background: var(--vma-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .17);
    -webkit-appearance: none;
    appearance: none;
}

.vma-audio-range::-moz-range-track {
    height: 7px;
    border-radius: 999px;
    background: var(--vma-track);
}

.vma-audio-range::-moz-range-progress {
    height: 7px;
    border-radius: 999px;
    background: var(--vma-primary);
}

.vma-audio-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--vma-primary);
}

.vma-audio-time {
    min-width: 36px;
    color: #38444e;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.vma-audio-element {
    display: none !important;
}

.vma-talent-meta {
    display: -webkit-box;
    margin: 0 !important;
    overflow: hidden;
    color: var(--vma-muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vma-no-audio {
    margin: 2px 0 9px !important;
    color: #68737d;
    font-size: 13px;
}

.vma-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    min-height: 40px;
    margin-top: 0;
    padding: 8px 20px;
    border: 1px solid var(--vma-primary);
    border-radius: 4px;
    background: var(--vma-primary);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.vma-profile-button:hover,
.vma-profile-button:focus-visible {
    border-color: var(--vma-primary-hover);
    background: var(--vma-primary-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Remove Felan's default card children if theme CSS targets them globally. */
.vma-talent-card > .freelancer-top,
.vma-talent-card > .freelancer-center,
.vma-talent-card > .freelancer-bottom {
    display: none !important;
}

@media (max-width: 1199px) {
    .vma-talent-card {
        min-height: 0;
        height: auto;
        padding-right: 14px !important;
        padding-left: 14px !important;
    }
}

@media (max-width: 767px) {
    .vma-talent-card {
        min-height: 0;
        height: auto;
        padding: 12px 14px 13px !important;
    }

    .vma-card-actions {
        top: 11px;
        right: 11px;
    }

    .vma-card-actions .add-follow-freelancer,
    .vma-card-actions .logged-out,
    .vma-card-actions .logged-out > a {
        width: 40px;
        height: 40px;
    }

    .vma-avatar-wrap {
        width: 68px;
        height: 68px;
    }

    .vma-talent-name {
        font-size: 17px !important;
    }

    .vma-audio-player {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .vma-audio-toggle {
        width: 42px;
        height: 42px;
    }

    .vma-profile-button {
        width: auto;
        min-width: 145px;
    }
}

/* WhatsApp reservation button state when the dashboard number has not been configured. */
.vma-whatsapp-button.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}

/* Talent names and avatars are intentionally non-clickable because profile pages are disabled. */
.vma-talent-name span {
    color: var(--vma-primary);
}
