/* ============================================================
   TARGET AREA MODAL — "Target this neighborhood with:"
   Shown when user clicks a block group on the heatmap.
   ============================================================ */

/* Overlay */
.fi-target-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 600;
    backdrop-filter: blur(4px);
    padding: 1rem;
    animation: fi-target-fade-in 0.15s ease;
}

@keyframes fi-target-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal card */
.fi-target-modal {
    background: var(--tiq-surface);
    border: 1.5px solid var(--tiq-border);
    border-radius: var(--tiq-radius-lg);
    box-shadow: var(--tiq-shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: fi-target-slide-up 0.2s ease;
}

@keyframes fi-target-slide-up {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Header — colored by tier */
.fi-target-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tiq-border);
}

.fi-target-modal-header--red    { background: #FEF2F2; border-bottom-color: #FECACA; }
.fi-target-modal-header--yellow { background: #FFFBEB; border-bottom-color: #FDE68A; }
.fi-target-modal-header--green  { background: #F0FDF4; border-bottom-color: #86EFAC; }
.fi-target-modal-header--neutral { background: #F1F5F9; border-bottom-color: #CBD5E1; }

.fi-target-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fi-target-modal-tier-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fi-target-modal-header--red    .fi-target-modal-tier-dot { background: #DC2626; box-shadow: 0 0 8px rgba(220,38,38,0.4); }
.fi-target-modal-header--yellow .fi-target-modal-tier-dot { background: #D97706; box-shadow: 0 0 8px rgba(217,119,6,0.4); }
.fi-target-modal-header--green  .fi-target-modal-tier-dot { background: #16A34A; box-shadow: 0 0 8px rgba(22,163,74,0.4); }
.fi-target-modal-header--neutral .fi-target-modal-tier-dot { background: #64748B; box-shadow: 0 0 8px rgba(100,116,139,0.3); }

.fi-target-modal-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tiq-text);
    letter-spacing: -0.01em;
}

.fi-target-modal-header--red    .fi-target-modal-label { color: #B91C1C; }
.fi-target-modal-header--yellow .fi-target-modal-label { color: #92400E; }
.fi-target-modal-header--green  .fi-target-modal-label { color: #15803D; }
.fi-target-modal-header--neutral .fi-target-modal-label { color: #334155; }

.fi-target-modal-stats {
    font-size: 0.775rem;
    color: var(--tiq-text-3);
    margin-top: 0.15rem;
}

.fi-target-modal-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--tiq-text-4);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.15s;
    flex-shrink: 0;
}

.fi-target-modal-close:hover { background: rgba(0,0,0,0.06); color: var(--tiq-text); }

/* Body */
.fi-target-modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fi-target-modal-prompt {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tiq-text-4);
}

/* Channel list */
.fi-target-channels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Channel row — base */
.fi-target-channel,
a.fi-target-channel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--tiq-border);
    border-radius: var(--tiq-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    position: relative;
}

/* Live channel */
.fi-target-channel--live,
a.fi-target-channel--live {
    cursor: pointer;
    border-color: rgba(24,119,242,0.25);
    background: #F8FBFF;
}

.fi-target-channel--live:hover,
a.fi-target-channel--live:hover {
    border-color: #1877F2;
    background: #EFF6FF;
    transform: translateX(2px);
    box-shadow: 0 2px 12px rgba(24,119,242,0.15);
    text-decoration: none;
}

/* Soon channel */
.fi-target-channel--soon {
    opacity: 0.55;
    cursor: default;
}

/* Icon */
.fi-target-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Info */
.fi-target-channel-info { flex: 1; min-width: 0; }

.fi-target-channel-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tiq-text);
    letter-spacing: -0.01em;
}

.fi-target-channel-desc {
    font-size: 0.775rem;
    color: var(--tiq-text-3);
    margin-top: 0.1rem;
}

/* Action arrow on live */
.fi-target-channel-action {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1877F2;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.fi-target-channel--live:hover .fi-target-channel-action {
    transform: translateX(3px);
}

/* Soon badge */
.fi-target-channel-soon-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tiq-text-4);
    background: var(--tiq-surface-2);
    border: 1px solid var(--tiq-border);
    border-radius: 20px;
    padding: 0.15rem 0.55rem;
    flex-shrink: 0;
}
