/* =====================================================
   HORSE HUB
===================================================== */

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


/* HERO */

.portal-horse-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-horse-hub-photo {
    flex: 0 0 72px;

    width: 72px;
    height: 72px;

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

    overflow: hidden;

    border-radius: 14px;

    background: #f8f9fa;
}

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

    object-fit: cover;
}

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

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

    margin-bottom: 2px;

    color: var(--primary-color);

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

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

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

.portal-horse-hub-parents {
    display: block;

    color: #777;

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

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

    margin-top: 9px;
}

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

    padding: 4px 7px;

    border-radius: 8px;

    background: #f7f7f8;
    color: #666;

    font-size: 14px;
}

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

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

    min-width: 66px;

    padding: 8px 10px;

    border-radius: 11px;

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

    text-align: center;
}

.portal-horse-hub-rating small,
.portal-horse-hub-rating strong {
    display: block;
}

.portal-horse-hub-rating small {
    color: #888;

    font-size: 14px;
}

.portal-horse-hub-rating strong {
    margin-top: 2px;

    color: var(--primary-color);

    font-size: 16px;
}


/* FILTER */

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

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

    background: #fff;
}

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

    margin-bottom: 12px;
}

.portal-horse-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-horse-hub-filter-heading strong,
.portal-horse-hub-filter-heading small {
    display: block;
}

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

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

    color: #999;

    font-size: 14px;
}

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

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

    margin-bottom: 4px;

    color: #777;

    font-size: 14px;
}

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

    border-radius: 9px;
}

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

    margin-top: 9px;
}

.portal-horse-hub-filter-actions .btn,
.portal-horse-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-horse-hub-reset {
    border: 1px solid #e5e5e5;

    background: #fff;
    color: #666;

    text-decoration: none !important;
}


/* SECTION */

.portal-horse-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-horse-hub-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

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

    border-bottom: 1px solid #eee;
}

.portal-horse-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-horse-hub-section-title h4 {
    margin: 0;

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

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

    margin-top: 2px;

    color: #999;

    font-size: 14px;
}


/* INFO */

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

.portal-horse-hub-info-item,
.portal-horse-hub-person {
    min-width: 0;

    padding: 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-horse-hub-info-item span,
.portal-horse-hub-info-item strong,
.portal-horse-hub-person > span,
.portal-horse-hub-person > strong {
    display: block;
}

.portal-horse-hub-info-item span,
.portal-horse-hub-person > span {
    margin-bottom: 3px;

    color: #999;

    font-size: 14px;
}

.portal-horse-hub-info-item strong,
.portal-horse-hub-person > strong {
    overflow: hidden;

    color: #444;

    font-size: 14px;

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

.portal-horse-hub-person a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;

    color: #444;

    text-decoration: none !important;
}

.portal-horse-hub-person a strong {
    overflow: hidden;

    font-size: 14px;

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

.portal-horse-hub-person a i {
    color: var(--primary-color);

    font-size: 14px;
}


/* STATS */

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

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

    border-radius: 9px;

    background: #f8f9fa;

    text-align: center;
}

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

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

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

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

    color: #888;

    font-size: 14px;
}


/* PARTICIPATIONS */

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

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

    padding: 11px;

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

    background: #fff;
}

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

    margin-bottom: 8px;
}

.portal-horse-hub-participation-header span {
    color: #999;

    font-size: 14px;
}

.portal-horse-hub-participation-header h5 {
    margin: 2px 0 0;

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

.portal-horse-hub-result {
    flex: 0 0 auto;

    padding: 5px 7px;

    border-radius: 8px;

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

    font-size: 8px !important;
    font-weight: 600;
}

.portal-horse-hub-participation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-bottom: 8px;
}

.portal-horse-hub-participation-meta span {
    display: flex;
    align-items: center;
    gap: 3px;

    padding: 4px 6px;

    border-radius: 7px;

    background: #f8f9fa;
    color: #777;

    font-size: 14px;
}

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

.portal-horse-hub-participation-people {
    display: grid;
    gap: 5px;
}

.portal-horse-hub-participation-people a {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) auto;
    align-items: center;
    gap: 6px;

    min-height: 34px;
    padding: 6px 8px;

    border-radius: 8px;

    background: #f8f9fa;
    color: inherit;

    text-decoration: none !important;
}

.portal-horse-hub-participation-people span {
    color: #999;

    font-size: 14px;
}

.portal-horse-hub-participation-people strong {
    overflow: hidden;

    font-size: 14px;

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

.portal-horse-hub-participation-people i {
    color: var(--primary-color);

    font-size: 14px;
}

.portal-horse-hub-participation-status {
    margin-top: 8px;

    text-align: center;
}


/* RELATIONS */

.portal-horse-hub-relations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
}

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

    padding: 10px;

    border-radius: 10px;

    background: #f8f9fa;

    text-align: center;
}

.portal-horse-hub-relation > span {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 14px;
}

.portal-horse-hub-relation > strong,
.portal-horse-hub-relation a strong {
    font-size: 14px;
}

.portal-horse-hub-relation a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    color: #444;

    text-decoration: none !important;
}

.portal-horse-hub-relation a i {
    color: var(--primary-color);

    font-size: 14px;
}

.portal-horse-hub-relation-rate {
    display: inline-block;

    margin-top: 7px;
    padding: 4px 9px;

    border-radius: 20px;

    background: rgba(40,167,69,.10);
    color: #27843c;

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


/* HISTORY */

.portal-horse-hub-history-block + .portal-horse-hub-history-block {
    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid #eee;
}

.portal-horse-hub-history-block > h5 {
    margin-bottom: 11px;

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

.portal-horse-hub-timeline {
    position: relative;

    padding-right: 15px;
}

.portal-horse-hub-timeline::before {
    content: "";

    position: absolute;

    top: 5px;
    right: 4px;
    bottom: 5px;

    width: 2px;

    background: #ececec;
}

.portal-horse-hub-timeline-item {
    position: relative;

    margin-bottom: 9px;
    padding-right: 14px;
}

.portal-horse-hub-timeline-dot {
    position: absolute;

    top: 12px;
    right: -15px;

    width: 9px;
    height: 9px;

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

    background: var(--primary-color);

    box-shadow: 0 0 0 2px rgba(92,45,145,.10);
}

.portal-horse-hub-timeline-content {
    padding: 9px;

    border-radius: 9px;

    background: #f8f9fa;
}

.portal-horse-hub-timeline-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}

.portal-horse-hub-timeline-heading strong {
    font-size: 14px;
}

.portal-horse-hub-timeline-heading strong i {
    margin: 0 4px;

    color: var(--primary-color);

    font-size: 14px;
}

.portal-horse-hub-timeline-heading > span {
    flex: 0 0 auto;

    color: #777;

    font-size: 14px;
}

.portal-horse-hub-timeline-content p {
    margin: 6px 0 0;

    color: #777;

    font-size: 14px;
}

.portal-horse-hub-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 6px;
}

.portal-horse-hub-history-meta span {
    padding: 3px 6px;

    border-radius: 7px;

    background: #fff;
    color: #777;

    font-size: 14px;
}


/* EMPTY */

.portal-horse-hub-empty {
    padding: 24px 10px;

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

    background: #fafafa;
    color: #888;

    text-align: center;
}

.portal-horse-hub-empty i {
    display: block;

    margin-bottom: 7px;

    color: #bbb;

    font-size: 19px;
}

.portal-horse-hub-empty strong {
    font-size: 14px;
}

.portal-horse-hub-empty.small {
    padding: 14px 10px;

    font-size: 14px;
}


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

@media (max-width: 575.98px) {

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

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

        padding: 12px;
    }

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

        width: 58px;
        height: 58px;
    }

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

    .portal-horse-hub-rating {
        min-width: 54px;
    }

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

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

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

    .portal-horse-hub-participations {
        grid-template-columns: 1fr;
    }

    .portal-horse-hub-relations {
        grid-template-columns: 1fr;
    }

}


