/* lite.css — Styles for speKthem Lite and collaborator features */

/* ── Lite Toolbar (floating pill) ── */
.lite-toolbar {
    position: fixed;
    top: 56px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 4px 8px;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lite-toolbar .lt-btn {
    background: transparent;
    border: 1.5px solid #FFE500;
    color: #FFE500;
    padding: 5px 12px;
    border-radius: 16px;
    font: 500 11px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.lite-toolbar .lt-btn:hover {
    background: rgba(255, 229, 0, 0.15);
}
.lite-toolbar .lt-btn.active {
    background: #FFE500;
    color: #111;
    border-color: #FFE500;
}
.lite-toolbar .lt-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 229, 0, 0.3);
    margin: 0 4px;
}
.lite-toolbar .lt-btn.submit {
    background: #FFE500;
    color: #111;
    border-color: #FFE500;
    font-weight: 600;
}
.lite-toolbar .lt-btn.submit:hover {
    opacity: 0.9;
}

/* ── Lite Version Stamp ── */
.lite-version-stamp {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font: 400 10px 'DM Mono', monospace;
    color: rgba(0,0,0,0.3);
    z-index: 50;
    pointer-events: none;
}

/* ── Lite Name Prompt ── */
.lite-name-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lite-name-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 36px 32px 28px;
    width: 360px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.lite-name-card h2 {
    font: 800 22px 'Syne', sans-serif;
    color: var(--text);
    margin-bottom: 8px;
}
.lite-name-card p {
    font: 400 13px 'Inter', sans-serif;
    color: var(--text-mid);
    margin-bottom: 20px;
}
.lite-name-card input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    font: 500 15px 'Inter', sans-serif;
    text-align: center;
    outline: none;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
}
.lite-name-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(74,143,255,0.15);
}
.lite-name-card button {
    width: 100%;
    padding: 12px;
    background: #FFE500;
    color: #111;
    border: none;
    border-radius: 10px;
    font: 600 14px 'Inter', sans-serif;
    cursor: pointer;
}

/* ── Submit Modal ── */
.submit-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 600;
}
.submit-modal-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 400px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    color: var(--text);
}
.submit-modal-card h3 {
    font: 700 18px 'Syne', sans-serif;
    color: var(--text);
    margin-bottom: 12px;
}
.submit-modal-card textarea {
    width: 100%;
    height: 80px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    font: 400 13px 'Inter', sans-serif;
    resize: vertical;
    outline: none;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
}
.submit-modal-card textarea:focus {
    border-color: var(--accent);
}
.submit-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ── Collaborator Modal (full version) ── */
.collab-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}
.collab-modal-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px 28px 24px;
    width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    color: var(--text);
}
.collab-modal-card h3 {
    font: 800 20px 'Syne', sans-serif;
    color: var(--text);
    margin-bottom: 12px;
}
.collab-perms {
    margin: 12px 0 20px;
    font: 400 13px 'DM Sans', sans-serif;
    color: #6B7280;
    line-height: 1.8;
}
.collab-perms .yes { color: #059669; }
.collab-perms .no { color: #DC2626; }

.collab-link-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    font: 400 11px 'DM Mono', monospace;
    color: var(--text-mid);
    word-break: break-all;
    margin-bottom: 12px;
    max-height: 100px;
    overflow-y: auto;
    user-select: all;
}
.collab-link-note {
    font: 400 11px 'DM Sans', sans-serif;
    color: #9CA3AF;
    margin-top: 8px;
}

/* ── Review Modal (full version) ── */
.review-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}
.review-modal-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px 28px 24px;
    width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    color: var(--text);
}
.review-modal-card h3 {
    font: 800 18px 'Syne', sans-serif;
    color: var(--text);
    margin-bottom: 4px;
}
.review-meta {
    font: 400 12px 'DM Sans', sans-serif;
    color: #6B7280;
    margin-bottom: 16px;
}
.review-note {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 10px 14px;
    font: 400 13px 'DM Sans', sans-serif;
    color: #92400E;
    margin-bottom: 16px;
    font-style: italic;
}
.review-section-title {
    font: 700 12px 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B7280;
    margin-bottom: 8px;
}
.review-change-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    font: 400 13px 'DM Sans', sans-serif;
    margin-bottom: 4px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}
.review-change-item .change-desc { flex: 1; color: #1C1C1E; }
.review-change-item .change-actions { display: flex; gap: 6px; }
.review-change-item .accept-btn {
    background: #059669; color: white; border: none; padding: 3px 10px;
    border-radius: 6px; font: 500 11px 'DM Sans', sans-serif; cursor: pointer;
}
.review-change-item .reject-btn {
    background: #DC2626; color: white; border: none; padding: 3px 10px;
    border-radius: 6px; font: 500 11px 'DM Sans', sans-serif; cursor: pointer;
}
.review-change-item.accepted { background: #ECFDF5; border-color: #A7F3D0; }
.review-change-item.rejected { background: #FEF2F2; border-color: #FECACA; opacity: 0.6; }

.review-bulk-actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

/* ── Collaborator Dropdown ── */
.collab-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    font: 400 13px 'DM Sans', sans-serif;
    transition: background 0.1s;
}
.collab-dropdown-item:hover { background: var(--bg-hover); }
.collab-dropdown-item .collab-name { flex: 1; color: var(--text); }
.collab-dropdown-item .collab-date { font-size: 10px; color: var(--text-dim); margin-left: 8px; }
.collab-dropdown-item .collab-badge {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #FFE500;
    margin-right: 8px;
    flex-shrink: 0;
}
.collab-dropdown-item.active { background: #FFFBEB; }
.collab-dropdown-empty {
    padding: 12px;
    font: 400 12px 'DM Sans', sans-serif;
    color: var(--text-dim);
    text-align: center;
}

/* ── Inline Review Panel Changes ── */
.review-inline-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 6px;
    font: 400 12px 'DM Sans', sans-serif;
    margin-bottom: 3px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}
.review-inline-change .change-desc { flex: 1; color: var(--text); }
.review-inline-change .accept-btn {
    background: #059669; color: white; border: none; padding: 2px 8px;
    border-radius: 4px; font: 500 10px 'DM Sans', sans-serif; cursor: pointer; margin-left: 4px;
}
.review-inline-change .reject-btn {
    background: #DC2626; color: white; border: none; padding: 2px 8px;
    border-radius: 4px; font: 500 10px 'DM Sans', sans-serif; cursor: pointer; margin-left: 4px;
}
.review-inline-change.accepted { background: #ECFDF5; border-color: #A7F3D0; }
.review-inline-change.rejected { background: #FEF2F2; border-color: #FECACA; opacity: 0.5; }
