/* ============================================
   innerviewz · components.css
   Cards, Chat, Interview, Auswertung, Voice
   ============================================ */

/* --- Install Banner --- */
.install-banner { background: var(--petrol-pale); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; display: none; }
.install-banner-text { font-size: var(--text-sm); color: var(--petrol); line-height: var(--leading-normal); margin-bottom: 10px; }
.install-banner-actions { display: flex; gap: 8px; }
.install-banner-actions .btn { margin: 0; padding: 10px; font-size: var(--text-sm); flex: 1; }

/* --- Cards --- */
.commit-card { background: var(--petrol); border-radius: var(--radius); padding: 20px; color: var(--white); cursor: pointer; transition: transform 0.15s; position: relative; overflow: hidden; }
.commit-card-fp { position: absolute; right: -30px; bottom: -50px; font-size: 160px; color: white; opacity: 0.06; pointer-events: none; }
.commit-card:hover { transform: translateY(-2px); }
.commit-label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--petrol-light); margin-bottom: 6px; }
.commit-title { font-family: 'Charis SIL', serif; font-size: var(--text-xl); margin-bottom: 6px; }
.commit-desc  { font-size: var(--text-sm); color: rgba(123,191,191,0.8); line-height: var(--leading-normal); }
.commit-cta   { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(123,191,191,0.15); border: 1px solid rgba(123,191,191,0.3); border-radius: 8px; padding: 7px 12px; font-size: var(--text-sm); font-weight: 500; }

/* --- Stats --- */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card  { background: var(--petrol-pale); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.stat-num   { font-family: 'Charis SIL', serif; font-size: 28px; color: var(--petrol); font-weight: 700; }
.stat-label { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }

/* --- Interview List --- */
.section-title        { font-size: var(--text-xs); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.interview-list       { display: flex; flex-direction: column; }
.interview-item       { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.interview-item-info  { flex: 1; min-width: 0; }
.interview-item-title { font-size: var(--text-sm); font-weight: 500; color: var(--petrol); }
.interview-item-sub   { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.interview-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.badge          { font-size: var(--text-xs); padding: 2px 7px; border-radius: 20px; font-weight: 500; }
.badge-draft    { background: #fff3cd; color: #856404; }
.badge-completed { background: #cce5ff; color: #004085; }
.badge-committed { background: #d4edda; color: #155724; }
.action-btn         { font-size: var(--text-xs); padding: 5px 9px; border-radius: 8px; cursor: pointer; border: none; font-family: 'Inter', sans-serif; white-space: nowrap; }
.action-btn-primary { background: var(--petrol); color: white; }
.action-btn-danger  { background: transparent; color: var(--danger); border: 1px solid var(--danger); }

/* --- Interview Screen --- */
.interview-header    { background: var(--petrol); padding: 52px 20px 16px; position: relative; overflow: hidden; flex-shrink: 0; }
.interview-header-fp { position: absolute; right: -60px; bottom: -80px; font-size: 280px; color: white; opacity: 0.05; line-height: 1; pointer-events: none; }
.interview-nav  { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; position: relative; z-index: 1; }
.nav-back       { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; cursor: pointer; color: white; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.interview-title { font-family: 'Charis SIL', serif; font-size: var(--text-md); color: white; flex: 1; }
.progress-row   { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--petrol-light); margin-bottom: 6px; position: relative; z-index: 1; }
.progress-bg    { height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; position: relative; z-index: 1; }
.progress-fill  { height: 3px; background: var(--petrol-light); border-radius: 2px; transition: width 0.5s; width: 0%; }

/* --- Chat --- */
.chat-body   { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.bubble-wrap { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.bubble-ai   { background: var(--petrol-pale); border-radius: 18px 18px 18px 4px; padding: 14px 16px; font-size: var(--text-base); color: var(--petrol); line-height: var(--leading-loose); max-width: 85%; align-self: flex-start; font-family: 'Charis SIL', serif; word-break: break-word; }
.bubble-user { background: var(--petrol); border-radius: 18px 18px 4px 18px; padding: 12px 16px; font-size: var(--text-base); color: var(--white); line-height: var(--leading-normal); max-width: 80%; align-self: flex-end; word-break: break-word; }
.bubble-sender { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 4px; letter-spacing: 0.5px; text-transform: uppercase; }
.bubble-sender.right { text-align: right; }
.bubble-partial { font-style: italic; opacity: 0.7; }
.typing { display: none; align-self: flex-start; padding: 12px 16px; background: var(--petrol-pale); border-radius: 18px 18px 18px 4px; flex-shrink: 0; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--petrol-light); display: inline-block; margin: 0 2px; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

/* --- Commit Banner --- */
.commit-banner { background: var(--petrol-pale); padding: 14px 20px; flex-shrink: 0; display: none; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); }
.commit-banner-text { font-size: var(--text-sm); color: var(--petrol); line-height: var(--leading-normal); }
.commit-banner-actions { display: flex; gap: 8px; }
.commit-banner-actions .btn { margin: 0; padding: 12px; font-size: var(--text-sm); flex: 1; }

/* --- Input Area --- */
.input-area  { background: var(--petrol-pale); padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; border-top: 1px solid var(--border); }
.input-row   { display: flex; gap: 8px; align-items: flex-end; }
.text-input  { flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 16px; color: var(--petrol); outline: none; resize: none; height: 48px; line-height: 1.4; background: white; transition: border-color 0.2s; -webkit-appearance: none; }
.text-input:focus { border-color: var(--petrol-light); }
.send-btn  { width: 44px; height: 44px; border-radius: 50%; background: var(--petrol); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.send-btn:hover { background: var(--petrol-mid); }
.voice-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--petrol-mid); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.voice-btn:hover { background: var(--petrol); }
.voice-btn.recording { background: var(--danger); animation: pulse 1.5s infinite; }
.voice-btn.processing { background: var(--petrol-light); }
.voice-btn.voice-mode-active { background: var(--petrol-light); }
.voice-btn.voice-mode-active i { color: var(--petrol) !important; }
.voice-status { font-size: var(--text-sm); color: var(--text-muted); text-align: center; min-height: 28px; height: 28px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* --- Voice Overlay --- */
.voice-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--petrol); z-index: 300; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px; max-width: 430px; margin: 0 auto; }
.voice-overlay.active { display: flex; }
.voice-overlay-fp     { font-size: 160px; color: var(--petrol-light); opacity: 0.15; line-height: 1; }
.voice-overlay-title  { font-family: 'Charis SIL', serif; font-size: 30px; color: white; text-align: center; }
.voice-overlay-sub    { font-size: var(--text-md); color: var(--petrol-light); text-align: center; line-height: var(--leading-normal); }
.voice-overlay-status { font-size: var(--text-md); color: var(--petrol-light); text-align: center; height: 44px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 500; padding: 0 20px; }
.voice-overlay-mic    { width: 88px; height: 88px; border-radius: 50%; background: rgba(123,191,191,0.15); border: 2px solid var(--petrol-light); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.voice-overlay-mic.listening { background: rgba(192,57,43,0.3); border-color: var(--danger); animation: micPulse 1s infinite; }
.voice-overlay-mic.speaking  { background: rgba(123,191,191,0.3); animation: micPulse 0.8s infinite; }
.voice-overlay-end { background: transparent; border: 1px solid var(--petrol-light); color: var(--petrol-light); padding: 12px 36px; border-radius: 24px; font-family: 'Inter', sans-serif; font-size: var(--text-base); cursor: pointer; }

/* --- Accordion --- */
.acc       { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc-hdr   { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; -webkit-user-select: none; }
.acc-hdr:active { background: var(--petrol-pale); }
.acc-title { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--petrol); }
.acc-icon  { font-size: 11px; color: var(--text-muted); transition: transform 0.25s; }
.acc-icon.open { transform: rotate(180deg); }
.acc-body  { display: none; padding: 4px 20px 20px; }
.acc-body.open { display: block; }
.sec-sub   { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; margin-bottom: 12px; line-height: var(--leading-normal); }

/* --- Ghostwriter / Prompt --- */
.copy-prompt      { background: var(--petrol); border-radius: var(--radius); padding: 16px; }
.copy-prompt-text { font-size: var(--text-sm); color: white; line-height: var(--leading-loose); white-space: pre-wrap; word-break: break-word; }
.copy-btn         { margin-top: 12px; background: rgba(123,191,191,0.2); border: 1px solid var(--petrol-light); color: var(--petrol-light); padding: 8px 16px; border-radius: 8px; font-size: var(--text-sm); cursor: pointer; font-family: 'Inter', sans-serif; }

/* --- Dimensionen Detail --- */
.dim-row     { margin-bottom: 16px; }
.dim-row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.dim-label   { font-size: var(--text-base); font-weight: 500; color: var(--petrol); flex: 1; min-width: 0; }
.dim-scores  { display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
.dim-current { font-size: var(--text-base); color: var(--petrol); font-weight: 600; min-width: 24px; text-align: right; }
.dim-avg     { font-size: var(--text-sm); color: var(--text-muted); min-width: 32px; text-align: center; }
.dim-tendency { font-size: var(--text-base); font-weight: 700; min-width: 20px; text-align: right; }
.dim-bar-bg  { height: 8px; background: var(--petrol-pale); border-radius: 4px; position: relative; overflow: visible; }
.dim-bar-range   { position: absolute; height: 8px; background: rgba(26,74,74,0.12); border-radius: 4px; border: 1px solid rgba(26,74,74,0.2); }
.dim-bar-avg     { position: absolute; width: 2px; height: 12px; background: var(--petrol-mid); top: -2px; border-radius: 1px; }
.dim-bar-current { position: absolute; width: 8px; height: 8px; background: var(--petrol); border-radius: 50%; top: 0; transform: translateX(-4px); }
.dim-desc    { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-normal); margin-top: 6px; }
