/* css/style.css — StartLocal Design System */

/* ── Base ─────────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Brand Buttons ────────────────────────────────────── */
.btn-primary {
    background-color: #2557a7;
    color: white;
    transition: background-color 0.2s ease-in-out, transform 0.15s ease;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover { background-color: #164081; transform: translateY(-1px); }

.btn-secondary {
    background-color: white;
    color: #2557a7;
    border: 1.5px solid #2557a7;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
    display: inline-block;
    text-align: center;
}
.btn-secondary:hover { background-color: #f0f4fb; transform: translateY(-1px); }

.btn-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transition: opacity 0.2s, transform 0.15s;
    display: inline-block;
    text-align: center;
}
.btn-indigo:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-wave {
    background-color: #059669;
    color: white;
    transition: background-color 0.2s, transform 0.15s;
    display: inline-block;
    text-align: center;
}
.btn-wave:hover { background-color: #047857; transform: translateY(-1px); }

/* ── Pay & status badges ──────────────────────────────── */
.pay-green { color: #108a00; }

.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-rose   { background: #ffe4e6; color: #9f1239; }

/* ── CIC badge / banner ───────────────────────────────── */
.cic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ── Stat banner ──────────────────────────────────────── */
.stat-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2557a7 100%);
    border-left: 5px solid #f59e0b;
}

/* ── Provider / opportunity cards ───────────────────────  */
.provider-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
}
.provider-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.09); transform: translateY(-2px); }

.opportunity-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
}
.opportunity-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.09); transform: translateY(-2px); }

/* ── Wave badge ───────────────────────────────────────── */
.wave-badge {
    background: linear-gradient(90deg, #d1fae5, #a7f3d0);
    color: #065f46;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid #6ee7b7;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Talent Profile Card ───────────────────────────────── */
.talent-card { background: white; border-radius: 1.25rem; overflow: hidden; }

/* ── Modal / accordion ────────────────────────────────── */
.modal-fade { animation: fadeIn 0.3s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

#mobile-menu { transition: all 0.3s ease-in-out; }

/* ── Auth forms ───────────────────────────────────────── */
.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.auth-input:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.auth-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.role-card {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    background: white;
}
.role-card:hover   { border-color: #6366f1; background: #f5f3ff; transform: translateY(-2px); }
.role-card.selected { border-color: #6366f1; background: #ede9fe; }

.pw-strength-bar { height: 4px; border-radius: 2px; transition: width 0.3s, background 0.3s; }

/* ── Pulse Widget ──────────────────────────────────────── */
#pulse-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Floating toggle button */
#pulse-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(99,102,241,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
#pulse-toggle-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(99,102,241,0.55); }

/* Pulse ring animation */
#pulse-toggle-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 99px;
    border: 2px solid rgba(99,102,241,0.4);
    animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(1);    opacity: 0.8; }
    70%  { transform: scale(1.12); opacity: 0; }
    100% { transform: scale(1.12); opacity: 0; }
}

/* Notification bubble */
#pulse-notif {
    background: white;
    border-radius: 1rem 1rem 0 1rem;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    max-width: 240px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    border: 1px solid #e5e7eb;
    position: relative;
    animation: slideInNotif 0.4s ease-out;
}
@keyframes slideInNotif {
    from { opacity:0; transform: translateY(8px); }
    to   { opacity:1; transform: translateY(0); }
}
#pulse-notif::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* Chat panel */
#pulse-panel {
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #0f0f1a;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.07);
}

.pulse-panel-hidden  { display: none !important; }
.pulse-panel-visible { display: flex !important; animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Panel header */
.pulse-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.pulse-header-avatar {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: white;
}
.pulse-header-info h3 { font-size: 0.9rem; font-weight: 700; color: white; margin: 0; }
.pulse-header-info p  { font-size: 0.7rem; color: rgba(255,255,255,0.7); margin: 0; }
.pulse-header-actions { margin-left: auto; display: flex; gap: 8px; }
.pulse-header-actions button {
    background: rgba(255,255,255,0.15);
    border: none; border-radius: 6px;
    width: 28px; height: 28px;
    color: white; cursor: pointer; font-size: 11px;
    transition: background 0.15s;
}
.pulse-header-actions button:hover { background: rgba(255,255,255,0.25); }

/* Messages area */
#pulse-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f0f1a;
}
#pulse-messages::-webkit-scrollbar { width: 4px; }
#pulse-messages::-webkit-scrollbar-track { background: transparent; }
#pulse-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Message rows */
.pulse-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: msgIn 0.25s ease-out;
}
@keyframes msgIn {
    from { opacity:0; transform: translateY(6px); }
    to   { opacity:1; transform: translateY(0); }
}
.pulse-msg-user { flex-direction: row-reverse; }

.pulse-avatar-sm {
    width: 28px; height: 28px; flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: white;
}

.pulse-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.55;
}
.pulse-bubble p { margin: 0; }

.pulse-bubble-pulse {
    background: #1e1e32;
    color: #e5e7eb;
    border-radius: 4px 14px 14px 14px;
}
.pulse-bubble-user {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 14px 4px 14px 14px;
}

.pulse-link { color: #a5b4fc; text-decoration: underline; }

/* Options */
.pulse-options { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pulse-option-btn {
    background: rgba(99,102,241,0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    display: block;
}
.pulse-option-btn:hover { background: rgba(99,102,241,0.3); color: #c7d2fe; }

/* Chips */
.pulse-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pulse-chip-btn {
    background: rgba(255,255,255,0.06);
    color: #d1d5db;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 99px;
    padding: 5px 10px;
    font-size: 0.73rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pulse-chip-btn:hover       { background: rgba(99,102,241,0.25); border-color: #6366f1; color: #c7d2fe; }
.pulse-chip-btn.pulse-chip-selected { background: rgba(99,102,241,0.4); border-color: #818cf8; color: white; }

.pulse-confirm-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s;
}
.pulse-confirm-btn:hover { opacity: 0.9; }

/* Typing indicator */
.pulse-typing-indicator { display: flex; align-items: center; gap: 5px; padding: 10px 14px !important; }
.pulse-typing-indicator span {
    width: 6px; height: 6px;
    background: #6366f1;
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}
.pulse-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.pulse-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-6px); }
}

/* Inline input */
.pulse-inline-input {
    display: flex; gap: 6px; margin-top: 8px;
}
.pulse-input-field {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 7px 10px;
    color: white;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.pulse-input-field:focus { border-color: #6366f1; }
.pulse-send-inline {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    width: 32px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}
.pulse-send-inline:hover { background: #4f46e5; }

/* Panel footer / text input */
.pulse-footer {
    background: #1a1a2e;
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
#pulse-text-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.15s;
}
#pulse-text-input:focus { border-color: #6366f1; }
#pulse-text-input::placeholder { color: rgba(255,255,255,0.3); }
#pulse-send-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
#pulse-send-btn:hover { opacity: 0.9; }

/* ── Responsive mobile tweaks ─────────────────────────── */
@media (max-width: 480px) {
    #pulse-panel { width: calc(100vw - 32px); right: 16px; }
    #pulse-widget { right: 16px; bottom: 16px; }
}
