/* ── Therapist Profile Page ─────────────────────────────────────────────
   Styles for the /appointments/resources/<id> view.
   Design tokens:
     primary:   #2d1b69
     accent:    #6c47d4
     bg-page:   #f5f3ff
     bg-card:   #ffffff
     border:    rgba(108, 71, 212, 0.10)
     radius:    20px
   ────────────────────────────────────────────────────────────────────── */

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

/* ── Page wrapper ───────────────────────────────────────────────────── */

.vtm-profile-page {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #f5f3ff;
    min-height: 100vh;
    padding: 28px 0 64px;
}

/* ── Two-column layout ──────────────────────────────────────────────── */

.vtm-profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* ── Sidebar card ───────────────────────────────────────────────────── */

.vtm-profile-sidebar {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(45, 27, 105, 0.08);
    border: 1px solid rgba(108, 71, 212, 0.10);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

/* Banner removed — sidebar is uniformly white */
.vtm-profile-sidebar__banner {
    display: none;
}

.vtm-profile-sidebar__body {
    padding: 28px 24px 28px;
    background: #ffffff;
}

/* ── Avatar ─────────────────────────────────────────────────────────── */

.vtm-profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 16px;
}

.vtm-profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(45, 27, 105, 0.20);
    background: #ede5ff;
    flex-shrink: 0;
}

.vtm-profile-avatar img,
.vtm-profile-avatar span,
.vtm-profile-avatar span img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
}

/* ── Name / title block ─────────────────────────────────────────────── */

.vtm-profile-identity {
    text-align: center;
    margin-bottom: 12px;
}

.vtm-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d1b69;
    margin: 0 0 4px;
    line-height: 1.3;
}

.vtm-profile-role {
    font-size: 0.9rem;
    color: #6c47d4;
    font-weight: 500;
    margin: 0;
}

/* Verified badge */
.vtm-profile-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #4caf50;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.35);
}

.vtm-profile-verified i {
    font-size: 0.7rem;
}

/* ── Rating row ─────────────────────────────────────────────────────── */

.vtm-profile-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 20px;
    font-size: 0.88rem;
    color: #6b6b8a;
    flex-wrap: wrap;
}

.vtm-profile-rating i {
    color: #fbc02d;
}

.vtm-profile-rating a {
    color: #6c47d4;
    text-decoration: none;
    font-weight: 500;
}

.vtm-profile-rating a:hover {
    text-decoration: underline;
}

/* ── Action buttons ─────────────────────────────────────────────────── */

.vtm-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

/* Primary CTA — Schedule appointment */
.vtm-profile-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #2d1b69, #4c2fa0);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(45, 27, 105, 0.30);
}

.vtm-profile-btn-primary:hover {
    background: linear-gradient(135deg, #3d2680, #5c3fb0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 27, 105, 0.35);
    color: #ffffff;
    text-decoration: none;
}

.vtm-profile-btn-primary.vtm-btn-disabled {
    background: #c4b5fd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary — About me */
.vtm-profile-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #2d1b69;
    border: 1.5px solid rgba(45, 27, 105, 0.25);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.vtm-profile-btn-secondary:hover {
    border-color: #6c47d4;
    background: rgba(108, 71, 212, 0.06);
    color: #6c47d4;
    text-decoration: none;
}

/* Unavailability warning */
.vtm-profile-unavailable-msg {
    font-size: 0.82rem;
    color: #7c5c00;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 4px;
    text-align: center;
}

/* ── Contact info list ──────────────────────────────────────────────── */

.vtm-profile-contact {
    border-top: 1px solid rgba(108, 71, 212, 0.08);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.vtm-profile-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #4a4a6a;
    word-break: break-word;
}

.vtm-profile-contact__item i {
    color: #6c47d4;
    font-size: 0.95rem;
    width: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Share button (subtle) ──────────────────────────────────────────── */

.vtm-profile-share {
    border-top: 1px solid rgba(108, 71, 212, 0.08);
    padding-top: 16px;
}

.vtm-profile-share__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #6c47d4;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.vtm-profile-share__toggle:hover {
    color: #4c2fa0;
    text-decoration: none;
}

.vtm-profile-share .dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(108, 71, 212, 0.12);
    box-shadow: 0 8px 24px rgba(45, 27, 105, 0.12);
    padding: 8px;
    min-width: 160px;
}

.vtm-profile-share .dropdown-menu a {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Content card (right column) ────────────────────────────────────── */

.vtm-profile-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(45, 27, 105, 0.08);
    border: 1px solid rgba(108, 71, 212, 0.10);
    overflow: hidden;
}

/* ── Tab bar ────────────────────────────────────────────────────────── */

.vtm-profile-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 20px 0;
    border-bottom: 2px solid rgba(108, 71, 212, 0.08);
    background: #faf8ff;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vtm-profile-tabs::-webkit-scrollbar {
    display: none;
}

.vtm-profile-tabs .nav-item {
    flex-shrink: 0;
}

.vtm-profile-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px 10px 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b6b8a;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
}

.vtm-profile-tabs .nav-link i {
    font-size: 0.95rem;
}

.vtm-profile-tabs .nav-link:hover {
    color: #6c47d4;
    background: rgba(108, 71, 212, 0.06);
}

.vtm-profile-tabs .nav-link.active {
    color: #2d1b69;
    background: #ffffff;
    border-bottom: 2px solid #6c47d4;
}

/* Hide the "Sobre mi" tab from the nav bar — it is triggered from the sidebar button */
.vtm-profile-tabs li.vtm-tab-about {
    display: none;
}

/* ── Tab content ────────────────────────────────────────────────────── */

.vtm-profile-tab-content {
    padding: 28px 28px 32px;
}

/* Section heading with left accent bar */
.vtm-profile-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2d1b69;
    margin: 0 0 20px;
    padding-left: 14px;
    border-left: 4px solid #6c47d4;
    line-height: 1.3;
}

/* ── Services table ─────────────────────────────────────────────────── */

.vtm-profile-services-group {
    margin-bottom: 32px;
}

.vtm-profile-services-group:last-child {
    margin-bottom: 0;
}

.vtm-profile-services-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45, 27, 105, 0.05);
}

.vtm-profile-services-table thead th {
    background: #f1eefc;
    color: #3d2b7a;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vtm-profile-services-table thead th:last-child {
    text-align: right;
    width: 100px;
}

.vtm-profile-services-table tbody tr {
    border-top: 1px solid rgba(108, 71, 212, 0.06);
    transition: background 0.15s;
}

.vtm-profile-services-table tbody tr:hover {
    background: #faf8ff;
}

.vtm-profile-services-table tbody td {
    padding: 13px 16px;
    font-size: 0.9rem;
    color: #3a3a5c;
    border: none;
    vertical-align: middle;
}

.vtm-profile-services-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
    color: #2d1b69;
}

/* ── Reviews (Opiniones) tab ────────────────────────────────────────── */

.vtm-profile-reviews-summary {
    display: flex;
    gap: 32px;
    align-items: center;
    background: #faf8ff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.vtm-profile-reviews-score {
    text-align: center;
    flex-shrink: 0;
}

.vtm-profile-reviews-score__number {
    font-size: 3rem;
    font-weight: 800;
    color: #2d1b69;
    line-height: 1;
    display: block;
}

.vtm-profile-reviews-score__stars {
    color: #fbc02d;
    font-size: 1.1rem;
    margin: 4px 0;
}

.vtm-profile-reviews-score__count {
    font-size: 0.8rem;
    color: #6b6b8a;
}

.vtm-profile-reviews-bars {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vtm-profile-reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #6b6b8a;
}

.vtm-profile-reviews-bar-row span:first-child {
    min-width: 60px;
    text-align: right;
}

.vtm-profile-reviews-bar-track {
    flex: 1;
    height: 8px;
    background: #e0d9f7;
    border-radius: 100px;
    overflow: hidden;
}

.vtm-profile-reviews-bar-fill {
    height: 100%;
    background: #2d1b69;
    border-radius: 100px;
}

/* Individual review card */
.vtm-profile-review-item {
    border-top: 1px solid rgba(108, 71, 212, 0.07);
    padding: 18px 0;
}

.vtm-profile-review-item:first-child {
    border-top: none;
}

.vtm-profile-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.vtm-profile-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c47d4, #a78bfa);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vtm-profile-review-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d1b69;
    flex: 1;
}

.vtm-profile-review-date {
    font-size: 0.78rem;
    color: #a0a0b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vtm-profile-review-stars {
    color: #fbc02d;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.vtm-profile-review-text {
    font-size: 0.9rem;
    color: #4a4a6a;
    line-height: 1.6;
    margin: 0;
}

/* ── About me tab ───────────────────────────────────────────────────── */

.vtm-profile-about-section {
    margin-bottom: 28px;
}

.vtm-profile-about-section:last-child {
    margin-bottom: 0;
}

.vtm-profile-about-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d1b69;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtm-profile-about-section-title i {
    color: #6c47d4;
}

.vtm-profile-about-content {
    font-size: 0.9rem;
    color: #4a4a6a;
    line-height: 1.7;
}

/* Service tags inside About */
.vtm-profile-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.vtm-profile-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1eefc;
    color: #4c2fa0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(108, 71, 212, 0.15);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

/* Tablet: stack to single column */
@media (max-width: 900px) {
    .vtm-profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vtm-profile-sidebar {
        position: static;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .vtm-profile-content {
        max-width: 100%;
    }

    .vtm-profile-page {
        padding: 20px 0 48px;
    }
}

/* Small mobile: portrait */
@media (max-width: 580px) {
    .vtm-profile-layout {
        padding: 0 12px;
        gap: 16px;
    }

    .vtm-profile-sidebar {
        max-width: 100%;
        border-radius: 16px;
    }

    .vtm-profile-avatar {
        width: 88px;
        height: 88px;
    }

    .vtm-profile-avatar-wrap {
        margin-top: 0;
    }

    .vtm-profile-sidebar__body {
        padding: 0 16px 20px;
    }

    .vtm-profile-name {
        font-size: 1.1rem;
    }

    .vtm-profile-content {
        border-radius: 16px;
    }

    .vtm-profile-tab-content {
        padding: 20px 16px 24px;
    }

    .vtm-profile-tabs {
        padding: 12px 12px 0;
    }

    .vtm-profile-tabs .nav-link {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .vtm-profile-section-title {
        font-size: 1.15rem;
    }

    .vtm-profile-reviews-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .vtm-profile-reviews-score {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        width: 100%;
    }

    .vtm-profile-services-table thead th,
    .vtm-profile-services-table tbody td {
        padding: 10px 12px;
        font-size: 0.83rem;
    }
}

/* Very small mobile */
@media (max-width: 360px) {
    .vtm-profile-layout {
        padding: 0 8px;
    }

    .vtm-profile-sidebar__body {
        padding: 0 12px 16px;
    }

    .vtm-profile-tab-content {
        padding: 16px 12px 20px;
    }

    .vtm-profile-btn-primary,
    .vtm-profile-btn-secondary {
        font-size: 0.88rem;
        padding: 11px 14px;
    }
}

/* Ultra-narrow mobile (< 300px) */
@media (max-width: 299px) {
    .vtm-profile-layout {
        padding: 0 6px;
    }

    .vtm-profile-sidebar__body {
        padding: 0 10px 14px;
    }

    .vtm-profile-tab-content {
        padding: 14px 10px 18px;
    }

    .vtm-profile-tabs .nav-link {
        padding: 7px 10px;
        font-size: 0.78rem;
    }
}
