/* =====================================================
   USER HUB
===================================================== */

.portal-user-hub-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HERO */

.portal-user-hub-hero {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 14px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-user-hub-photo {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #f8f9fa;
}

.portal-user-hub-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.portal-user-hub-hero-info {
    flex: 1;
    min-width: 0;
}

.portal-user-hub-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--primary-color);

    font-size: 14px;
    font-weight: 600;
}

.portal-user-hub-hero-info h2 {
    margin: 0 0 3px;

    font-size: 19px;
    font-weight: 800;
}

.portal-user-hub-id {
    display: block;

    color: #777;

    font-size: 14px;
    font-weight: 500;
}

.portal-user-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 8px;
}

.portal-user-hub-meta span {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 4px 7px;

    border-radius: 8px;

    background: #f7f7f8;
    color: #666;

    font-size: 14px;
}

.portal-user-hub-meta i {
    color: var(--primary-color);
}

.portal-user-hub-rate {
    flex: 0 0 auto;

    min-width: 68px;

    padding: 8px 10px;

    border-radius: 11px;

    background: rgba(92,45,145,.07);

    text-align: center;
}

.portal-user-hub-rate small,
.portal-user-hub-rate strong {
    display: block;
}

.portal-user-hub-rate small {
    color: #888;

    font-size: 14px;
}

.portal-user-hub-rate strong {
    margin-top: 2px;

    color: var(--primary-color);

    font-size: 16px;
}


/* FILTER */

.portal-user-hub-filter {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 14px;

    background: #fff;
}

.portal-user-hub-filter-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}

.portal-user-hub-filter-heading > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-user-hub-filter-heading strong,
.portal-user-hub-filter-heading small {
    display: block;
}

.portal-user-hub-filter-heading strong {
    font-size: 14px;
}

.portal-user-hub-filter-heading small {
    margin-top: 1px;

    color: #999;

    font-size: 14px;
}

.portal-user-hub-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-user-hub-filter-grid label {
    display: block;

    margin-bottom: 4px;

    color: #777;

    font-size: 14px;
}

.portal-user-hub-filter-grid .form-control {
    min-height: 44px;

    border-radius: 9px;
}

.portal-user-hub-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin-top: 9px;
}

.portal-user-hub-filter-actions .btn,
.portal-user-hub-reset {
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;
}

.portal-user-hub-reset {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* SECTION */

.portal-user-hub-section {
    margin-bottom: 14px;
    padding: 14px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}

.portal-user-hub-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-user-hub-section-title > span {
    flex: 0 0 35px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-user-hub-section-title h4 {
    margin: 0;

    font-size: 16px;
    font-weight: 700;
}

.portal-user-hub-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 14px;
}


/* STATS */

.portal-user-hub-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 7px;

    margin-bottom: 12px;
}

.portal-user-hub-stats > div {
    padding: 10px 5px;

    border-radius: 9px;

    background: #f8f9fa;

    text-align: center;
}

.portal-user-hub-stats strong,
.portal-user-hub-stats span {
    display: block;
}

.portal-user-hub-stats strong {
    color: #333;

    font-size: 16px;
    font-weight: 800;
}

.portal-user-hub-stats span {
    margin-top: 2px;

    color: #888;

    font-size: 14px;
}


/* MEMBERSHIPS */

.portal-user-hub-memberships {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-user-hub-membership {
    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;
}

.portal-user-hub-membership > strong {
    display: block;

    margin-bottom: 6px;

    font-size: 14px;
}

.portal-user-hub-membership > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.portal-user-hub-membership span {
    display: flex;
    align-items: center;
    gap: 3px;

    padding: 4px 6px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 14px;
}

.portal-user-hub-membership i {
    color: var(--primary-color);
}


/* BEST */

.portal-user-hub-best-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;

    margin-bottom: 10px;
}

.portal-user-hub-best {
    min-width: 0;

    padding: 11px;

    border-radius: 10px;

    background: #f8f9fa;

    text-align: center;
}

.portal-user-hub-best > span {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 14px;
}

.portal-user-hub-best > strong {
    display: block;

    overflow: hidden;

    font-size: 14px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-hub-best > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;

    margin-top: 7px;
}

.portal-user-hub-best > div span {
    padding: 4px 7px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 14px;
}


/* HORSES */

.portal-user-hub-horses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.portal-user-hub-horse {
    min-width: 0;

    padding: 10px;

    border: 1px solid #ececec;
    border-radius: 10px;

    background: #fff;
}

.portal-user-hub-horse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 8px;
}

.portal-user-hub-horse-header > a,
.portal-user-hub-horse-header > div {
    display: flex;
    align-items: center;
    gap: 7px;

    min-width: 0;

    color: #333;

    text-decoration: none !important;
}

.portal-user-hub-horse-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);
}

.portal-user-hub-horse-header strong {
    overflow: hidden;

    font-size: 14px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-hub-horse-rating {
    flex: 0 0 auto;

    padding: 4px 6px;

    border-radius: 7px;

    background: rgba(23,162,184,.08);
    color: #167587;

    font-size: 14px;
    font-weight: 600;
}

.portal-user-hub-horse-meta {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5px;
}

.portal-user-hub-horse-meta span {
    padding: 5px 3px;

    border-radius: 7px;

    background: #f8f9fa;
    color: #888;

    font-size: 14px;

    text-align: center;
}

.portal-user-hub-horse-meta strong {
    color: #444;
}


/* EMPTY */

.portal-user-hub-empty {
    padding: 20px 10px;

    border: 1px dashed #ddd;
    border-radius: 10px;

    background: #fafafa;
    color: #888;

    font-size: 14px;
    font-weight: 600;

    text-align: center;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-user-hub-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-user-hub-hero {
        gap: 10px;

        padding: 12px;
    }

    .portal-user-hub-photo {
        flex-basis: 58px;

        width: 58px;
        height: 58px;
    }

    .portal-user-hub-hero-info h2 {
        font-size: 18px;
    }

    .portal-user-hub-rate {
        min-width: 56px;
    }

    .portal-user-hub-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portal-user-hub-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .portal-user-hub-memberships {
        grid-template-columns: 1fr;
    }

    .portal-user-hub-best-grid {
        grid-template-columns: 1fr;
    }

    .portal-user-hub-horses {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   PROFILE PHOTO
===================================================== */

.portal-profile-photo-page {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 110px;
}


/* HEADER */

.portal-profile-photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 16px;
    padding: 16px;

    border: 1px solid #eee;
    border-radius: 16px;

    background: #fff;

    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.portal-profile-photo-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-color);

    font-size: 14px;
    font-weight: 600;
}

.portal-profile-photo-header h3 {
    margin: 0 0 3px;

    font-size: 18px;
    font-weight: 700;
}

.portal-profile-photo-header p {
    margin: 0;

    color: #888;

    font-size: 14px;
}

.portal-profile-photo-header-icon {
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 21px;
}


/* LAYOUT */

.portal-profile-photo-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 12px;
}


/* CARD */

.portal-profile-photo-card {
    min-width: 0;

    padding: 15px;

    border: 1px solid #eee;
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 4px 16px rgba(0,0,0,.025);
}


/* TITLE */

.portal-profile-photo-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 14px;
    padding-bottom: 11px;

    border-bottom: 1px solid #eee;
}

.portal-profile-photo-section-title > span {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(92,45,145,.08);
    color: var(--primary-color);

    font-size: 14px;
}

.portal-profile-photo-section-title h4 {
    margin: 0;

    font-size: 16px;
    font-weight: 700;
}

.portal-profile-photo-section-title small {
    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 14px;
}


/* CURRENT */

.portal-profile-photo-current {
    text-align: center;
}

.portal-profile-photo-avatar {
    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 8px auto 13px;

    overflow: hidden;

    border: 4px solid #fff;
    border-radius: 50%;

    background: #f8f9fa;

    box-shadow: 0 0 0 1px #eee,
    0 8px 24px rgba(0,0,0,.07);
}

.portal-profile-photo-avatar img {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    border: 0 !important;
    border-radius: 50% !important;
}

.portal-profile-photo-current p {
    max-width: 260px;

    margin: 0 auto;

    color: #888;

    font-size: 14px;
    line-height: 1.7;
}


/* UPLOAD */

.portal-profile-photo-upload {
    width: 100%;
}


/* NOTES */

.portal-profile-photo-notes {
    display: grid;
    gap: 7px;

    margin-top: 13px;
}

.portal-profile-photo-notes > div {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    padding: 8px 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-profile-photo-notes i {
    margin-top: 2px;

    color: var(--primary-color);

    font-size: 14px;
}

.portal-profile-photo-notes span {
    color: #777;

    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-profile-photo-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .portal-profile-photo-header {
        padding: 13px;
    }

    .portal-profile-photo-header h3 {
        font-size: 18px;
    }

    .portal-profile-photo-header-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;

        font-size: 18px;
    }

    .portal-profile-photo-layout {
        grid-template-columns: 1fr;
    }

    .portal-profile-photo-card {
        padding: 13px;
    }

    .portal-profile-photo-avatar {
        width: 132px;
        height: 132px;
    }

}

.portal-profile-photo-logo {
    border-radius: 14px;
}

.portal-profile-photo-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain;

    border: 0 !important;
    border-radius: 10px !important;
}

/* =====================================================
   PROFILE DOCUMENT PREVIEW
===================================================== */

.portal-profile-document-preview {
    width: 100%;
    max-width: 280px;
    height: 190px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #f8f9fa;

    box-shadow: none;
}

.portal-profile-document-preview img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain;

    border: 0 !important;
    border-radius: 10px !important;
}

.portal-profile-document-preview iframe,
.portal-profile-document-preview embed,
.portal-profile-document-preview object {
    width: 100% !important;
    height: 100% !important;

    border: 0;
    border-radius: 10px;
}
.portal-profile-document-preview {
    width: 100%;
    max-width: 280px;
    height: 190px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #f8f9fa;

    box-shadow: none;
}

.portal-profile-document-preview img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain;

    border: 0 !important;
    border-radius: 10px !important;
}

.portal-profile-document-preview iframe,
.portal-profile-document-preview embed,
.portal-profile-document-preview object {
    width: 100% !important;
    height: 100% !important;

    border: 0;
    border-radius: 10px;
}


