/* === MODULE 5.2: POSITION RECOMMENDATIONS === */

.pos-rec-block {
    display: flex;
    flex-direction: row; /* Visual Left, Text Right */
    align-items: center;
    gap: 60px;
    margin-top: 100px;
}

/* --- Visual Card Styles --- */
.rec-pos-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    font-family: 'Montserrat', sans-serif;
}

/* Header */
.rpc-header {
    background: #ffffff; /* Light header as per screenshot contrast */
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
.rpc-title {
    color: #1e293b; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}
.rpc-title .icon { color: #3b82f6; font-size: 1.1rem; }
.rpc-badge {
    background: #ef4444; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}

/* Body */
.rpc-body {
    padding: 10px;
    background: #f8fafc; /* Very light gray bg for list */
}

/* List Item */
.rp-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rp-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* Highlight Item (The Defender->Winger) */
.rp-item.highlight {
    border-left: 4px solid #3b82f6;
    background: #fff;
}

/* Main Row Layout */
.rp-row-main {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}

/* Player Info */
.rp-player { display: flex; align-items: center; gap: 10px; }
.rp-avatar {
    width: 36px; height: 36px; background: #334155; border-radius: 50%;
    color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rp-meta { display: flex; flex-direction: column; }
.rp-meta .name { font-weight: 700; color: #1e293b; font-size: 0.9rem; }
.rp-meta .current-role { font-size: 0.65rem; color: #64748b; }

/* Position Shift Badges */
.rp-shift { display: flex; align-items: center; gap: 6px; }
.pos-old {
    font-size: 0.7rem; font-weight: 700; color: #94a3b8; 
    border: 1px solid #cbd5e1; padding: 2px 6px; border-radius: 4px;
}
.arrow { color: #cbd5e1; font-size: 0.8rem; }
.pos-new {
    font-size: 0.8rem; font-weight: 800; color: #fff;
    background: #f43f5e; /* Rose/Pink color from screenshot */
    padding: 4px 8px; border-radius: 4px;
    box-shadow: 0 2px 5px rgba(244, 63, 94, 0.3);
}

/* Tags Row */
.rp-tags {
    display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.tag {
    font-size: 0.65rem; color: #475569; background: #f1f5f9;
    padding: 2px 8px; border-radius: 4px; border: 1px solid #e2e8f0; font-weight: 600;
}
.highlight .tag { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; } /* Blue tint for highlight */

/* Footer Row */
.rp-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f1f5f9; padding-top: 8px;
}
.match-score { font-size: 0.75rem; color: #64748b; }
.match-score strong { color: #1e293b; }
.match-score strong.good { color: #16a34a; }

.btn-approve {
    background: #fff; border: 1px solid #cbd5e1; color: #64748b;
    padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.btn-approve:hover {
    border-color: #16a34a; color: #16a34a; background: #f0fdf4;
}
.btn-approve.small { padding: 2px 8px; }


/* Note Footer */
.rpc-note {
    padding: 10px 15px; background: #fff; border-top: 1px solid #e2e8f0;
    font-size: 0.65rem; color: #94a3b8; display: flex; align-items: center; gap: 6px;
}
.info-icon { font-size: 0.8rem; }


/* Responsive */
@media (max-width: 900px) {
    .pos-rec-block { flex-direction: column-reverse; gap: 30px; }
    .feature-visual { width: 100%; }
}