/* Profile Details - Variation 6: Gradient Background */
/* Reusable styling for profile label/value pairs across Dashboard, Team, and ScheduledEvent pages */

/* Profile display container - ensures proper block-level stacking */
.team-profile-display,
.organization-profile-display,
.user-profile-display,
.event-profile-display {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0rem; /* Remove bottom margin so role chips border works correctly */
    width: 100%; /* Force full width to ensure role chips container stays below */
}

.profile-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    max-width: 100%;
    min-width: 0;
}

.profile-detail-chip:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-detail-chip-link {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.profile-detail-chip-link:hover,
.profile-detail-chip-link:focus {
    color: inherit;
    text-decoration: none;
}

.profile-detail-chip-link:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.profile-detail-chip .chip-label {
    font-weight: 500;
    color: #6c757d;
    flex-shrink: 0;
}

.profile-detail-chip .chip-value {
    font-weight: 600;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Special styling for "LET THEM VOTE" values - uses VoteMVP red accent with checkbox styling */
.profile-detail-chip .chip-value.value-vote-highlight {
    color: #C43F32;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Checkbox icon for vote-highlight chips - matches VoteToggleWidget checkbox */
.profile-detail-chip .chip-value.value-vote-highlight .vote-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #C43F32 0%, #9a2f25 100%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(196, 63, 50, 0.3);
    flex-shrink: 0;
}

.profile-detail-chip .chip-value.value-vote-highlight .vote-checkbox i {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Role chips container - separate from profile details */
.user-roles,
.role-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    margin-top: 0.75rem;
    width: 100%; /* Force full width */
    clear: both; /* Ensure it starts on a new line */
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .profile-detail-chip {
        border-width: 2px;
    }
}

/* Leading icon inside profile detail chips */
.profile-detail-chip .chip-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Emoji icon variant — rendered as inline text, not a BI font glyph */
.profile-detail-chip .chip-emoji {
    font-style: normal;
    line-height: 1;
}

/* Standalone sport icon — first item in the chip list, outside any chip container.
   Sized to match the total height of adjacent chips (font + padding + border). */
.sport-icon-standalone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Match chip height: 0.85rem font × ~1.2 line-height + 0.35rem×2 padding + 2px border ≈ 1.74rem */
    font-size: 1.55rem;
    line-height: 1;
}

/* Large icon for MVPCard Media slot — vertically centered alongside card content */
.dashboard-sport-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

/* Purple color utility for icons (not in Bootstrap by default) */
.text-purple {
    color: #7c3aed;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .profile-detail-chip {
        transition: none;
    }
}

/* Mobile responsive - keep chips wrapping naturally */
@media (max-width: 576px) {
    .profile-details {
        gap: 0.4rem;
    }
    
    .profile-detail-chip {
        font-size: 0.8rem;
        padding: 0.3rem 0.65rem;
        max-width: calc(100vw - 3rem); /* Prevent overflow on mobile, accounting for padding */
    }
    
    .profile-detail-chip .chip-value {
        max-width: 150px; /* Further constrain value on mobile */
    }
}
