/* ==========================================================
   REGISTRY INDEX CARDS
   Shared visual language for entity rows/cards on index pages.
   Entity-specific grid/layout rules remain in the page CSS.
   ========================================================== */

.registry-index-row {
    background: var(--surface-primary, #fffdf9);
    border: 1px solid var(--club-border, #e3dacd);
    border-radius: var(--radius-md, 9px);
    box-shadow: 0 3px 11px rgba(61, 40, 30, 0.035);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.registry-index-row:hover {
    border-color: #cfb984;
    box-shadow: 0 6px 17px rgba(61, 40, 30, 0.075);
    transform: translateY(-1px);
}

.registry-index-primary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.registry-index-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    border-radius: 50%;
}

.registry-index-avatar > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.registry-index-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f6efe3, #ebe0d0);
    border: 1px solid #dfd0b7;
    border-radius: 50%;
}

.registry-index-name {
    overflow: hidden;
    color: #49352c;
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registry-index-registration {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--club-burgundy, #941328);
    font-size: 8px;
    font-weight: 700;
}

.registry-index-registration i {
    color: #b18f49;
    font-size: 8px;
}

.registry-index-column-label {
    color: #9a8e85;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.registry-index-arrow {
    color: #b59a62;
    text-align: right;
    font-size: 9px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.registry-index-row:hover .registry-index-arrow {
    color: var(--club-burgundy, #941328);
    transform: translateX(2px);
}

.registry-entity-card {
    color: inherit;
    background: var(--surface-primary, #fffdf9);
    border-color: var(--club-border, #e2d8cc);
    text-decoration: none;
}

.registry-entity-card:hover,
.registry-entity-card:focus,
.registry-entity-card:visited {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================
   SHARED INDEX STAT
   Used by member and kennel index cards.
   ========================================================== */

.registry-index-stat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.registry-index-stat-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    color: var(--club-burgundy, #941328);
    background: #f5e9e8;
    border: 1px solid #ead8d5;
    border-radius: 50%;
    font-size: 8px;
}

.registry-index-stat-icon > i,
.registry-index-stat-icon > .registry-kennel-icon,
.registry-index-stat-icon > .registry-litter-icon {
    color: inherit;
}

.registry-index-stat-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.registry-index-stat-content strong {
    color: #49352c;
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 12px;
    line-height: 1;
}

.registry-index-stat-content span {
    margin-top: 3px;
    overflow: hidden;
    color: #8f8278;
    font-size: 7px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registry-index-stat-compact {
    padding: 7px 8px;
    background: #faf6ee;
    border: 1px solid #eee4d5;
    border-radius: 6px;
}

.registry-index-stat-compact .registry-index-stat-icon {
    width: auto;
    height: auto;
    flex-basis: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #a98742;
    font-size: 9px;
}

.registry-index-stat-compact .registry-index-stat-content strong {
    color: var(--club-burgundy, #941328);
}

.registry-index-stat-compact .registry-index-stat-content span {
    font-size: 6px;
    font-weight: 600;
    letter-spacing: .15px;
    text-transform: uppercase;
}
