/* ════════════════════════════════════════════════════════════════════
   MTA AKIŞ — Yardım Teklifi Modal Stilleri (A3.6a)
   v7.34.10.31-AKIS-A3.6a
   ════════════════════════════════════════════════════════════════════ */

/* ─── Modal genel ─── */
.mta-offer-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.mta-offer-modal.is-open { display: flex; }
.mta-offer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

body.mta-offer-no-scroll { overflow: hidden; }

.mta-offer-panel {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: mta-offer-slide 0.3s ease;
    overflow: hidden;
}
.mta-offers-list-panel { max-width: 600px; }
@media (min-width: 600px) {
    .mta-offer-modal { align-items: center; padding: 20px; }
    .mta-offer-panel { border-radius: 20px; max-height: 88vh; }
}
@keyframes mta-offer-slide {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ─── Header ─── */
.mta-offer-header {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #6ee7b7;
}
.mta-offer-header h2 {
    margin: 0;
    font-size: 17px;
    color: #064e3b;
    font-weight: 700;
}
.mta-offer-close {
    background: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: #064e3b;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mta-offer-close:hover { background: rgba(255, 255, 255, 0.9); }

/* ─── Body ─── */
.mta-offer-body {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}
.mta-offer-hint {
    background: #ecfdf5;
    border-left: 3px solid #22c55e;
    padding: 10px 12px;
    font-size: 12px;
    color: #065f46;
    border-radius: 6px;
    margin-bottom: 16px;
}

.mta-offer-row { margin-bottom: 14px; }
.mta-offer-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.mta-offer-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.mta-offer-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    box-sizing: border-box;
}
.mta-offer-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.mta-offer-char-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* ─── Footer ─── */
.mta-offer-footer {
    padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.mta-offer-btn-sec {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #d1d5db;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.mta-offer-btn-sec:hover { background: #e5e7eb; }
.mta-offer-btn-pri {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
}
.mta-offer-btn-pri:hover { background: linear-gradient(135deg, #16a34a, #15803d); }
.mta-offer-btn-pri:disabled { opacity: 0.6; cursor: wait; }

.mta-offer-result {
    padding: 0 16px 12px;
}
.mta-offer-result:empty { display: none; }
.mta-offer-success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.mta-offer-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* ─── Teklif listesi (talep sahibi gelen teklifleri görür) ─── */
.mta-offers-list-body { padding: 8px 12px; }
.mta-offers-loading,
.mta-offers-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.mta-offer-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.15s ease;
}
.mta-offer-card.is-status-accepted {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}
.mta-offer-card.is-status-rejected,
.mta-offer-card.is-status-cancelled {
    opacity: 0.6;
}

.mta-offer-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.mta-offer-helper-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.mta-offer-helper-info {
    flex: 1;
    min-width: 0;
}
.mta-offer-helper-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    text-decoration: none;
}
.mta-offer-helper-name:hover { text-decoration: underline; }
.mta-offer-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.mta-offer-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.mta-offer-status.is-pending { background: #fef3c7; color: #92400e; }
.mta-offer-status.is-accepted { background: #d1fae5; color: #065f46; }
.mta-offer-status.is-rejected { background: #fee2e2; color: #991b1b; }
.mta-offer-status.is-cancelled { background: #f3f4f6; color: #6b7280; }

.mta-offer-message {
    background: #f9fafb;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 8px;
}
.mta-offer-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.mta-offer-meta-item {
    background: #f0f9ff;
    color: #075985;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.mta-offer-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.mta-offer-accept-btn,
.mta-offer-reject-btn {
    flex: 1;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.mta-offer-accept-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}
.mta-offer-accept-btn:hover { background: linear-gradient(135deg, #16a34a, #15803d); }
.mta-offer-reject-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}
.mta-offer-reject-btn:hover { background: #fecaca; }

/* ─── Akış'taki ek butonlar ─── */
.mta-akis-emergency-view-offers-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    margin-left: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}
.mta-akis-emergency-view-offers-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.mta-akis-emergency-resolved-tag {
    display: inline-block;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
}

/* Telefon kilidi (emergency-meta içinde) */
.em-phone.is-locked {
    color: #fbbf24 !important;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 4px;
    border-left: 3px solid #fbbf24;
}

/* ────────────────────────────────────────────────────────────
   A3.6b — Puanlama Modal (yıldızlar)
   ──────────────────────────────────────────────────────────── */
.mta-rating-panel { max-width: 440px; }
.mta-rating-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-bottom-color: #fbbf24 !important;
}
.mta-rating-header h2 { color: #78350f !important; }
.mta-rating-header .mta-offer-close { color: #78350f !important; }

.mta-rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    margin: 8px 0;
}
.mta-rating-stars span {
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.mta-rating-stars span:hover {
    transform: scale(1.15);
}
.mta-rating-stars span.is-filled {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}
.mta-rating-value {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    min-height: 22px;
}
.mta-rating-value strong { color: #d97706; }

/* ────────────────────────────────────────────────────────────
   A3.6c — Accepted Helper rozeti (post sahibinin gördüğü)
   ──────────────────────────────────────────────────────────── */
.mta-akis-emergency-accepted-helper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1.5px solid #6ee7b7;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    margin-left: 6px;
}
.mta-akis-emergency-accepted-helper .ah-label {
    font-size: 12px;
    font-weight: 700;
    color: #065f46;
    flex-shrink: 0;
}
.mta-akis-emergency-accepted-helper .ah-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #064e3b;
    font-weight: 700;
    padding: 4px 10px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #a7f3d0;
}
.mta-akis-emergency-accepted-helper .ah-link:hover {
    background: #f0fdf4;
}
.mta-akis-emergency-accepted-helper .ah-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.mta-akis-emergency-accepted-helper .ah-name {
    font-size: 12px;
}
