/**
 * View profile page only (/profiles/view/...).
 * Loaded from view-profile.php; not part of global site-ui.
 */

.nsm-neo-profile-section-rule {
  border: 0;
  border-top: 1px solid var(--bs-border-color);
  opacity: 1;
}

.nsm-match-badge-jump:focus-visible {
  outline: 2px solid var(--bs-body-bg);
  outline-offset: 2px;
}

/* Hero avatar column (partials/view-profile-hero-avatar.php) */
.nsm-hero-avatar-frame {
  aspect-ratio: 1 / 1;
}

.nsm-hero-avatar-img {
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.nsm-hero-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  line-height: 1;
}

.nsm-hero-badge--premium {
  top: 0;
  left: 0;
  width: 3.375rem;
  height: 3.375rem;
  font-size: 1.35rem;
}

.nsm-hero-badge--video {
  bottom: 0.375rem;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.95rem;
}

.nsm-hero-badge--online {
  right: 0.5rem;
  bottom: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.55rem;
}

/* Hero icon-only actions (partials/view-profile-hero-actions-icons.php) */
.nsm-hero-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.nsm-hero-icon-btn-sm {
  width: 36px;
  height: 36px;
  min-width: 36px;
}

.nsm-hero-icon-wrap-break {
  flex-basis: 100%;
  height: 0;
}

.nsm-hero-icon-secondary-row {
  margin-top: 0.25rem;
  opacity: 0.75;
}

/* Custom color utilities for profile page */
.bg-pink { background-color: #e91e63 !important; }
.text-pink { color: #e91e63 !important; }
.bg-pink.bg-opacity-10 { background-color: rgba(233, 30, 99, 0.1) !important; }
.text-pink.border-pink { border-color: rgba(233, 30, 99, 0.25) !important; }

/* Activity log badge colors */
.badge.bg-pink { background-color: #e91e63 !important; }

/* Ban history and account action styles */
.ban-history-entry {
    border-left: 4px solid #dc3545;
}

.ban-history-entry.unban {
    border-left-color: #28a745;
}

.ban-history-entry.shadowban {
    border-left-color: #ffc107;
}

.ban-history-entry.unshadowban {
    border-left-color: #17a2b8;
}

.ban-history-entry.disable {
    border-left-color: #ffc107;
}

.ban-history-entry.enable {
    border-left-color: #28a745;
}

.ban-history-entry.delete {
    border-left-color: #dc3545;
}


/* Activity modal tabs styling */
#activityTabs .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

#activityTabs .nav-link i {
    font-size: 0.8rem;
}

/* Responsive tab wrapping */
@media (max-width: 768px) {
    #activityTabs {
        flex-wrap: wrap;
    }
    
    #activityTabs .nav-item {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    #activityTabs .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
        text-align: center;
    }
}

/* Message details styling */
.activity-entry .small {
    margin-bottom: 0.25rem;
}

.activity-entry code {
    font-size: 0.75rem;
    background-color: var(--bs-gray-100);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Enhanced message details card styling */
.message-details-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
}


.message-header {
    margin-bottom: 0.75rem;
}

.message-status {
    font-size: 0.875rem;
    font-weight: 500;
}

.message-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.info-value {
    font-size: 0.875rem;
    color: var(--bs-body-color);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: block;
    margin-bottom: 0.25rem;
}

.participants-section,
.recipient-section {
    margin-bottom: 0.75rem;
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.user-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--bs-primary-bg-subtle);
    border-radius: 0.375rem;
    border: 1px solid var(--bs-primary-border-subtle);
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
}

.user-link:hover {
    background: var(--bs-primary);
    color: white;
    text-decoration: none;
}

.admin-actions-section {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.conversation-id,
.message-id-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.id-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.conversation-id-code,
.message-id-code {
    font-size: 0.75rem;
    background-color: var(--bs-gray-100);
    color: var(--bs-body-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    word-break: break-all;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .message-info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }

}


/* Enhanced Report Modal Styling */
#report-modal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#report-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
}

#report-modal .modal-body {
    padding: 0 1.5rem 1.5rem;
}

#report-modal .modal-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem;
}

#report-modal .alert {
    border-radius: 0.75rem;
}

#report-modal .form-control-lg {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#report-modal .form-control-lg:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-warning-rgb), 0.25);
    border-color: var(--bs-warning);
}

#report-modal .btn-warning {
    transition: all 0.2s ease;
}

#report-modal .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-warning-rgb), 0.3);
}

#report-modal .btn-outline-secondary:hover {
    background-color: var(--bs-gray-100);
}

/* Character counter styling */
#char-count.text-success {
    color: #198754 !important;
}

#char-count.text-warning {
    color: #ffc107 !important;
}

#char-count.text-danger {
    color: #dc3545 !important;
}

/* Report type indicator */
#report-type-indicator {
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

/* Responsive adjustments for report modal */
@media (max-width: 576px) {
    #report-modal .modal-dialog {
        margin: 0.5rem;
    }

    #report-modal .modal-header,
    #report-modal .modal-body,
    #report-modal .modal-footer {
        padding: 1rem;
    }

    #report-modal .alert .d-flex {
        flex-direction: column;
        text-align: center;
    }

    #report-modal .alert .text-info {
        margin-bottom: 0.5rem;
    }
}

/* Card styling - no borders or shadows */
.card {
    border: none !important;
    box-shadow: none !important;
    transition: none;
}

.card:hover {
    transform: none;
    box-shadow: none !important;
}

/* Badge enhancements */
.badge {
    transition: none;
}

.badge:hover {
    transform: none;
}

/* Profile picture enhancement */
.rounded-circle {
    transition: transform 0.3s ease-in-out;
}

.rounded-circle:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Matching System Enhancements */
.card.border-primary {
    transition: none;
}

.card.border-primary:hover {
    transform: none;
    box-shadow: none !important;
}

.progress {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.badge.bg-success {
    transition: none;
}

.badge.bg-success:hover {
    transform: none;
    box-shadow: none;
}

/* Enhanced Matching System Styles */
.card.border-info {
    transition: none;
}

.card.border-info:hover {
    transform: none;
    box-shadow: none !important;
}

.border-start.border-4 {
    transition: none;
}

.card:hover .border-start.border-4 {
    border-width: 4px !important;
}

/* Match detail hover effects */
.d-flex.align-items-center.gap-2.p-3.rounded-3 {
    transition: none;
    cursor: default;
}

.d-flex.align-items-center.gap-2.p-3.rounded-3:hover {
    transform: none;
    box-shadow: none;
}

/* Progress bar animation */
.progress-bar {
    animation: progressFill 1.5s ease-out;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--progress-width); }
}

/* AskMe Modal Styling */
#sendAskMeModal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#sendAskMeModal .modal-header {
    padding: 1.5rem;
}

#sendAskMeModal .recipient-avatar img {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#sendAskMeModal .message-input-container textarea {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

#sendAskMeModal .message-input-container textarea:focus {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}

#sendAskMeModal .textarea-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#sendAskMeModal .form-control:focus + .textarea-focus-border {
    width: 100%;
}

#sendAskMeModal .char-counter {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#sendAskMeModal .form-control:focus ~ .char-counter,
#sendAskMeModal .form-control:not(:placeholder-shown) ~ .char-counter {
    opacity: 1;
}

#sendAskMeModal .btn-primary {
    transition: transform 0.2s ease;
}

#sendAskMeModal .btn-primary:hover {
    transform: translateY(-1px);
}

#sendAskMeModal .btn-primary:active {
    transform: translateY(0);
}

/* Staff tools panel (view-profile.php, staff-only) */
.nsm-staff-tools .nsm-staff-tools-shell {
    border-left: 4px solid var(--bs-info);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .nsm-staff-tools .nsm-staff-tools-shell {
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.35);
}

.nsm-staff-tools-head {
    background: color-mix(in srgb, var(--bs-body-bg) 88%, var(--bs-info) 12%);
}

.nsm-staff-tools-head-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
    color: var(--bs-info);
    background: color-mix(in srgb, var(--bs-info) 18%, transparent);
}

.nsm-staff-tools-pill {
    font-weight: 500;
    font-size: 0.7rem;
}

.nsm-staff-tools-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bs-secondary);
    margin-bottom: 0.375rem;
}

.nsm-staff-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary);
}

.nsm-staff-stat-card {
    transition: border-color 0.15s ease;
}

.nsm-staff-stat-card:hover {
    border-color: var(--bs-border-color-translucent) !important;
}

.nsm-staff-btn-shadowban {
    --bs-btn-bg: color-mix(in srgb, var(--bs-danger) 72%, transparent);
    --bs-btn-border-color: var(--bs-danger);
    --bs-btn-hover-bg: var(--bs-danger);
    --bs-btn-hover-border-color: var(--bs-danger);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

/* Compact buttons in staff tools (moderation + related admin grid) */
.nsm-staff-tools .btn.nsm-staff-btn-mod.btn-sm {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.4rem;
    font-size: 0.72rem;
    line-height: 1.25;
}

.nsm-staff-tools .btn.nsm-staff-btn-mod.btn-sm i {
    font-size: 0.8em;
    opacity: 0.95;
}

.nsm-staff-tools-inline-sep {
    width: 1px;
    min-height: 2rem;
    background: var(--bs-border-color);
    opacity: 0.85;
    margin: 0 0.125rem;
}

.nsm-staff-uid-code {
    word-break: break-all;
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    .nsm-staff-tools-quicklinks .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Blocking relationship notice (staff-only, view-profile) */
.nsm-staff-block-notice .nsm-staff-block-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.05rem;
    color: var(--bs-info);
    background: color-mix(in srgb, var(--bs-info) 18%, transparent);
}

/* Sexual health blocks (About sidebar + section) */
.nsm-sh-label {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.nsm-sh-staff-sensitive-li:first-child {
    border-top: none !important;
    padding-top: 0 !important;
}

.nsm-sh-audience-label {
    font-size: 0.65rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
