/* ══ מערכת מאץ' וצ'אט ══ */
.gmp-matches-wrap { direction: rtl; font-family: 'Segoe UI', Arial, sans-serif; max-width: 800px; margin: 0 auto; }

.gmp-no-matches { text-align: center; padding: 40px; color: #888; font-size: 16px; }

.gmp-matches-list { display: flex; flex-direction: column; gap: 16px; }

.gmp-match-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: 12px; padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: relative;
    border-right: 4px solid #e91e8c;
}
.gmp-match-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.gmp-match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gmp-match-avatar-placeholder { width: 100%; height: 100%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 50%; }
.gmp-match-info { flex: 1; }
.gmp-match-info h4 { margin: 0 0 4px; font-size: 17px; }
.gmp-match-date { color: #999; font-size: 12px; margin: 0 0 10px; }
.gmp-match-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gmp-match-badge { position: absolute; top: 10px; left: 14px; font-size: 12px; color: #e91e8c; font-weight: 700; }

.gmp-btn-chat, .gmp-btn-contact {
    padding: 7px 16px; border: none; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.gmp-btn-chat    { background: #6ABFB0; color: #fff; }
.gmp-btn-contact { background: #f5f5f5; color: #333; border: 1px solid #ddd; }
.gmp-btn-chat:hover    { background: #5aafa0; }
.gmp-btn-contact:hover { background: #eee; }

/* ── Modal */
.gmp-modal {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 99999; align-items: center; justify-content: center;
}
.gmp-modal-inner {
    background: #fff; border-radius: 16px; width: 90%; max-width: 480px;
    height: 80vh; display: flex; flex-direction: column; overflow: hidden;
}
.gmp-chat-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-bottom: 1px solid #eee; background: #6ABFB0;
}
.gmp-chat-header h3 { margin: 0; color: #fff; flex: 1; font-size: 16px; }
.gmp-modal-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 0 4px; }

/* ── Messages */
.gmp-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8f8f8; }

.gmp-msg { display: flex; flex-direction: column; max-width: 75%; }
.gmp-msg-me    { align-self: flex-start; }
.gmp-msg-other { align-self: flex-end; }

.gmp-msg-text {
    padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4;
}
.gmp-msg-me    .gmp-msg-text { background: #6ABFB0; color: #fff; border-bottom-right-radius: 4px; }
.gmp-msg-other .gmp-msg-text { background: #fff; color: #333; border: 1px solid #eee; border-bottom-left-radius: 4px; }
.gmp-msg-time { font-size: 11px; color: #aaa; margin-top: 3px; }
.gmp-msg-me    .gmp-msg-time { text-align: right; }
.gmp-msg-other .gmp-msg-time { text-align: left; }

/* ── Chat input */
.gmp-chat-input-wrap { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; background: #fff; }
.gmp-chat-input-wrap input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 24px; font-size: 14px; direction: rtl; }
.gmp-chat-input-wrap input:focus { outline: none; border-color: #6ABFB0; }
.gmp-chat-input-wrap button { padding: 10px 18px; background: #6ABFB0; color: #fff; border: none; border-radius: 24px; cursor: pointer; font-weight: 700; }

/* ── Contact */
.gmp-contact-content { padding: 20px; }
.gmp-contact-list { list-style: none; padding: 0; margin: 0; }
.gmp-contact-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.gmp-contact-list li:last-child { border: none; }

/* ── Like btn */
.gmp-like-btn { background: none; border: 2px solid #e91e8c; color: #e91e8c; padding: 8px 18px; border-radius: 20px; cursor: pointer; font-weight: 700; transition: all 0.2s; }
.gmp-like-btn:hover { background: #e91e8c; color: #fff; }
.gmp-like-btn:disabled { opacity: 0.6; cursor: default; }

@media(max-width:600px) { .gmp-modal-inner { width: 100%; height: 100vh; border-radius: 0; } }
