/* =========================================================
   ACUMEN SPORTS MANAGEMENT
   Player modal styles
   File: /partner/assets/css/player-modal.css
   Brand: #0a2463 (navy)  /  #d90429 (red)
   ========================================================= */

.pm-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.pm-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.15);
    border: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pm-close:hover { background: rgba(255, 255, 255, 0.3); }

.pm-content {
    background: #fff;
    max-height: 85vh;
    overflow-y: auto;
}

/* ---- Header ---- */
.pm-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 18px 24px;
    background: linear-gradient(135deg, #0a2463 0%, #123b8f 100%);
    color: #fff;
}
.pm-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.35);
}
.pm-header-text { flex: 1; min-width: 0; }
.pm-title {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.pm-meta {
    font-size: 0.9rem;
    opacity: 0.92;
}
.pm-meta code {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
}
.pm-meta-sub {
    font-size: 0.82rem;
    opacity: 0.75;
    margin-top: 2px;
}

/* ---- Tabs ---- */
.pm-tabs {
    padding: 0 20px;
    background: #f6f7fa;
    border-bottom: 1px solid #e6e8ec;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.pm-tabs .nav-link {
    border: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 16px;
    background: transparent;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.pm-tabs .nav-link:hover {
    color: #0a2463;
    border-bottom-color: #cdd3e0;
}
.pm-tabs .nav-link.active {
    color: #0a2463;
    background: transparent;
    border-bottom-color: #d90429;
}
.pm-count {
    display: inline-block;
    background: #e6e8ec;
    color: #4a5568;
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 700;
}
.pm-count-hot {
    background: #d90429;
    color: #fff;
}

/* ---- Body / panes ---- */
.pm-body {
    padding: 20px 24px 26px 24px;
}
.pm-pane { display: none; }
.pm-pane.active { display: block; }

/* ---- Profile grid ---- */
.pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 20px;
}
.pm-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.9rem;
}
.pm-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8892a0;
    font-weight: 700;
}
.pm-value { color: #1a202c; }
.pm-value code {
    background: #f0f2f7;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #0a2463;
}

.pm-section {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #eef0f5;
}
.pm-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 800;
    color: #0a2463;
    margin: 0 0 8px 0;
}
.pm-section p {
    margin: 0;
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.55;
}
.pm-good { color: #1a7a3f; }
.pm-warn { color: #b26b00; }
.pm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 640px) {
    .pm-two-col { grid-template-columns: 1fr; }
}

/* ---- Ratings ---- */
.pm-rating-row {
    display: grid;
    grid-template-columns: 110px 1fr 70px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}
.pm-rating-label { color: #4a5568; font-weight: 600; }
.pm-rating-bar {
    height: 8px;
    background: #eef0f5;
    border-radius: 4px;
    overflow: hidden;
}
.pm-rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #0a2463, #d90429);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.pm-rating-val {
    text-align: right;
    color: #2d3748;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ---- Media ---- */
.pm-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.pm-media-item {
    background: #f6f7fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6e8ec;
}
.pm-media-item img,
.pm-media-embed iframe {
    width: 100%;
    display: block;
    border: 0;
}
.pm-media-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.pm-media-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.pm-media-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 12px;
    text-decoration: none;
    color: #0a2463;
    gap: 8px;
    font-size: 0.85rem;
    text-align: center;
}
.pm-media-file i { font-size: 2rem; }
.pm-media-caption {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #4a5568;
    background: #fff;
    border-top: 1px solid #e6e8ec;
    font-weight: 600;
}

/* ---- Reports ---- */
.pm-report {
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
}
.pm-report-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.pm-report-date { font-size: 0.82rem; color: #4a5568; }
.pm-report-block { margin-bottom: 8px; font-size: 0.88rem; }
.pm-report-block p { margin: 3px 0 0 0; color: #2d3748; }
.pm-report-details { margin-top: 8px; font-size: 0.88rem; }
.pm-report-details summary {
    cursor: pointer;
    color: #0a2463;
    font-weight: 600;
    padding: 4px 0;
}
.pm-report-details p { margin: 6px 0 0 0; color: #2d3748; }

/* ---- Offers ---- */
.pm-offer {
    border: 1px solid #e6e8ec;
    border-left: 4px solid #0a2463;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
}
.pm-offer-new { border-left-color: #0a2463; background: #f7f9ff; }
.pm-offer-viewed { border-left-color: #0d6efd; }
.pm-offer-accepted { border-left-color: #1a7a3f; background: #f4fbf6; }
.pm-offer-declined { border-left-color: #d90429; background: #fff7f8; }
.pm-offer-expired,
.pm-offer-withdrawn { border-left-color: #8892a0; opacity: 0.85; }

.pm-offer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.pm-offer-club {
    margin: 0 0 4px 0;
    color: #0a2463;
    font-weight: 700;
    font-size: 1.02rem;
}
.pm-offer-prog {
    font-size: 0.82rem;
    color: #4a5568;
    font-weight: 600;
}
.pm-offer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #2d3748;
    margin-bottom: 6px;
}
.pm-offer-row i { color: #0a2463; }
.pm-offer-fees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 16px;
    font-size: 0.88rem;
    color: #2d3748;
    padding: 10px 12px;
    background: #f6f7fa;
    border-radius: 6px;
    margin: 10px 0;
}
.pm-offer-desc {
    font-size: 0.88rem;
    color: #4a5568;
    margin: 10px 0;
    line-height: 1.55;
}
.pm-offer-note {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
}
.pm-offer-note.pm-good { background: #e6f5ec; color: #1a7a3f; }
.pm-offer-note.pm-bad  { background: #fde8eb; color: #a01c36; }

.pm-offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef0f5;
}

/* ---- Empty / loading ---- */
.pm-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8892a0;
}
.pm-empty i {
    font-size: 2.4rem;
    color: #cdd3e0;
    margin-bottom: 10px;
    display: block;
}
.pm-empty p { margin: 0 0 4px 0; font-size: 0.95rem; color: #4a5568; }
.pm-muted { color: #8892a0; font-size: 0.82rem; }

.pm-loading {
    text-align: center;
    padding: 60px 20px;
    color: #8892a0;
}

/* ---- Small screens ---- */
@media (max-width: 640px) {
    .pm-header { padding: 16px; }
    .pm-avatar { width: 52px; height: 52px; font-size: 18px; }
    .pm-title { font-size: 1.05rem; }
    .pm-body { padding: 16px; }
    .pm-rating-row { grid-template-columns: 90px 1fr 60px; font-size: 0.82rem; }
    .pm-tabs .nav-link { padding: 10px 12px; font-size: 0.82rem; }
}