/* ════════════════════════════════════════════════════════════════════
   MTA AKIŞ — Acil Yardım / Ürün Modal Stilleri (A3.2)
   v7.34.10.26-AKIS-A3.2
   ════════════════════════════════════════════════════════════════════ */

/* ─── SOS FAB butonu (Akış sayfasında sağ alt) ─── */
#mta-akis-sos-fab {
    position: fixed;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 150px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: 3px solid #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4), 0 0 0 4px rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    animation: mta-sos-pulse 2.5s ease-in-out infinite;
}
#mta-akis-sos-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.5), 0 0 0 6px rgba(239, 68, 68, 0.25);
}
#mta-akis-sos-fab:active {
    transform: scale(0.95);
}

@keyframes mta-sos-pulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4), 0 0 0 4px rgba(239, 68, 68, 0.2); }
    50%      { box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5), 0 0 0 12px rgba(239, 68, 68, 0); }
}

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

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

.mta-akis-sos-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-sos-slide-up 0.3s ease;
    overflow: hidden;
}

@media (min-width: 600px) {
    .mta-akis-sos-modal { align-items: center; padding: 20px; }
    .mta-akis-sos-panel { border-radius: 20px; max-height: 88vh; }
}

@keyframes mta-sos-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ─── Header ─── */
.mta-akis-sos-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fcd34d;
}
.mta-akis-sos-header h2 {
    margin: 0;
    font-size: 17px;
    color: #92400e;
    font-weight: 700;
}
.mta-akis-sos-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: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mta-akis-sos-close:hover {
    background: rgba(255,255,255,0.9);
}

/* ─── Body ─── */
.mta-akis-sos-body {
    padding: 14px 16px 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* Mod sekmesi */
.mta-sos-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.mta-sos-mode-tab {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.mta-sos-mode-tab span { font-size: 22px; }
.mta-sos-mode-tab strong { font-size: 13px; color: #1f2937; }
.mta-sos-mode-tab small { font-size: 10px; color: #6b7280; }
.mta-sos-mode-tab.is-active {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

/* Profil eksik uyarısı */
.mta-sos-warn {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 14px;
    line-height: 1.5;
}
.mta-sos-warn a { color: #b45309; text-decoration: underline; }

/* Form */
.mta-sos-row { margin-bottom: 12px; }
.mta-sos-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.mta-sos-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;
    -webkit-appearance: none;
}
.mta-sos-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.mta-sos-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

.mta-sos-btn-sec {
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    color: #374151;
}
.mta-sos-btn-sec:hover { background: #e5e7eb; }

.mta-sos-btn-pri {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}
.mta-sos-btn-pri:hover { background: linear-gradient(135deg, #ea580c, #c2410c); }
.mta-sos-btn-pri:disabled { opacity: 0.6; cursor: wait; }

/* Aciliyet grid */
.mta-sos-urgency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.mta-sos-urgency {
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.15s ease;
}
.mta-sos-urgency input[type=radio] { display: none; }
.mta-sos-u-icon { font-size: 18px; line-height: 1; }
.mta-sos-urgency span:not(.mta-sos-u-icon) { font-size: 11px; font-weight: 600; color: #374151; }
.mta-sos-urgency.is-active {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    transform: scale(1.04);
}

/* KVKK */
.mta-sos-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
}
.mta-sos-check input[type=checkbox] { margin-top: 2px; flex-shrink: 0; }

/* Footer */
.mta-akis-sos-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-akis-sos-footer .mta-akis-sos-close { width: auto; height: auto; border-radius: 8px; padding: 10px 16px; font-size: 13px; }

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

/* ════════════════════════════════════════════════════════════════════
   EMERGENCY POST KARTI — Akış feed'inde renkli border
   ════════════════════════════════════════════════════════════════════ */
.mta-akis-post[data-category="acil_yardim"]::before,
.mta-akis-post[data-category="acil_urun"]::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid;
    border-radius: 0;
    pointer-events: none;
    z-index: 1;
}
.mta-akis-post[data-category="acil_yardim"]::before {
    border-color: #ef4444;
    box-shadow: inset 0 0 50px rgba(239, 68, 68, 0.15);
    animation: mta-emergency-blink 2s ease-in-out infinite;
}
.mta-akis-post[data-category="acil_urun"]::before {
    border-color: #3b82f6;
    box-shadow: inset 0 0 50px rgba(59, 130, 246, 0.12);
}

@keyframes mta-emergency-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* Acil etiketi */
.mta-akis-emergency-tag {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px) + 70px, 80px);
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mta-akis-emergency-tag.is-help    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.mta-akis-emergency-tag.is-product { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.mta-akis-emergency-urgency {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 6px;
    background: rgba(0,0,0,0.3);
}

/* Acil detay kartı (info bloğunun içine eklenir) */
.mta-akis-emergency-meta {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 6px;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    border-left: 3px solid #f59e0b;
}
.mta-akis-emergency-meta strong { color: #fde68a; font-weight: 700; }
.mta-akis-emergency-meta .em-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4ade80;
    font-weight: 700;
}
.mta-akis-emergency-meta .em-phone a { color: #4ade80; text-decoration: none; }

/* Yardım edebilirim butonu (USTA/Mühendis için) */
.mta-akis-emergency-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
}
.mta-akis-emergency-help-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
}
