/* Home.css — common landing screen styles */

/* Container removes the default main padding for an immersive feel */
.gc-main:has(.gc-home) { padding: 0 !important; }

.gc-home {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 40px;
  gap: 36px;
}

/* ============ AMBIENT BACKGROUND ============ */
.gc-home-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 0;
}
.gc-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
  animation: gc-orb-float 18s ease-in-out infinite;
}
.gc-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px; left: -120px; opacity: 0.22;
}
.gc-orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
  bottom: -120px; right: -100px; opacity: 0.18;
  animation-delay: -6s; animation-duration: 22s;
}
.gc-orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #FF9F1C 0%, transparent 70%);
  top: 40%; left: 55%; opacity: 0.10;
  animation-delay: -12s; animation-duration: 26s;
}
:root[data-theme="light"] .gc-orb-1 { opacity: 0.18; }
:root[data-theme="light"] .gc-orb-2 { opacity: 0.12; }
:root[data-theme="light"] .gc-orb-3 { opacity: 0.08; }

@keyframes gc-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.gc-grid-fade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  opacity: 0.35;
}

/* ============ CENTER STACK ============ */
.gc-home-center {
  position: relative; z-index: 2;
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.gc-home-meta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.gc-home-status {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: gc-pulse 2s ease-in-out infinite;
}
@keyframes gc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.gc-home-greet {
  font-family: var(--font-display);
  font-size: 56px; line-height: 1.05; font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.gc-home-name { font-style: italic; color: var(--accent); font-weight: 500; }

.gc-home-q {
  font-family: var(--font-display);
  font-size: 44px; line-height: 1.05; font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text-sec);
  margin-bottom: 40px;
}
.gc-home-q em { font-style: italic; color: var(--text); font-weight: 400; }

/* ============ COMPOSER ============ */
.gc-home-composer {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 18px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px var(--border-soft) inset;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
:root[data-theme="light"] .gc-home-composer {
  box-shadow: 0 12px 36px rgba(11,15,26,0.08), 0 0 0 1px var(--border-soft) inset;
}
.gc-home-composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 3px var(--accent-soft);
}
.gc-home-composer.recording {
  border-color: var(--risk);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,75,110,0.15);
}

.gc-home-textarea {
  width: 100%; resize: none; border: none; outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.5; color: var(--text);
  padding: 6px 4px 12px;
  min-height: 28px; max-height: 200px;
  overflow-y: auto;
}
.gc-home-textarea::placeholder { color: var(--text-muted); }

.gc-home-composer-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 4px;
}
.gc-home-tools { display: flex; gap: 4px; align-items: center; }
.gc-home-tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-muted); cursor: pointer;
  transition: background 150ms, color 150ms;
}
.gc-home-tool:hover {
  background: var(--bg-card-hover); color: var(--text-sec);
  border-color: var(--border-soft);
}

.gc-home-mic {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card-hover); border: 1px solid var(--border-soft);
  color: var(--text-sec); cursor: pointer;
  transition: all 200ms;
}
.gc-home-mic:hover { color: var(--text); border-color: var(--accent); }
.gc-home-mic.on {
  background: var(--risk); border-color: var(--risk); color: #fff;
}
.gc-mic-wave {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--risk);
  animation: gc-mic-ripple 1.6s ease-out infinite;
}
.gc-mic-wave-2 { animation-delay: 0.5s; }
.gc-mic-wave-3 { animation-delay: 1s; }
@keyframes gc-mic-ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

.gc-home-send {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card-hover); border: 1px solid var(--border-soft);
  color: var(--text-muted); cursor: pointer;
  transition: all 200ms;
}
.gc-home-send.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 6px 20px var(--accent-soft);
}
.gc-home-send:disabled { cursor: default; }

.gc-home-listening {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255,75,110,0.08); border: 1px solid rgba(255,75,110,0.2);
}
.gc-listen-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--risk);
  animation: gc-pulse 1.2s ease-in-out infinite;
}

/* ============ PROMPTS ============ */
.gc-home-prompts {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  max-width: 660px;
}
.gc-home-prompt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  color: var(--text-sec); cursor: pointer;
  font-size: 13px; font-family: var(--font-body);
  backdrop-filter: blur(8px);
  transition: all 180ms;
  text-align: left;
}
.gc-home-prompt:hover {
  border-color: var(--accent); color: var(--text);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.gc-home-prompt-icon {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
}

.gc-home-foot { margin-top: 32px; }

/* ============ HOME KPI ROW ============ */
.gc-home-kpis {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  animation: gc-bubble-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 200ms;
}
.gc-home-kpis .gc-kpi {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  transition: border-color 180ms, transform 180ms;
}
.gc-home-kpis .gc-kpi:hover { border-color: var(--border); transform: translateY(-2px); }
.gc-home-kpis .gc-kpi-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.gc-home-kpis .gc-kpi-value {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.gc-home-kpis .gc-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .gc-home-kpis .gc-kpi-value { font-size: 22px; }
}
@media (max-width: 900px) {
  .gc-home-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ============ FLOATING INSIGHT BUBBLES ============ */
.gc-insight-bubble {
  position: absolute; z-index: 3;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.32);
  backdrop-filter: blur(12px);
  animation: gc-bubble-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
:root[data-theme="light"] .gc-insight-bubble {
  box-shadow: 0 10px 28px rgba(11,15,26,0.08);
}
.gc-insight-bubble.closing {
  animation: gc-bubble-out 260ms cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes gc-bubble-in {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gc-bubble-out {
  to { opacity: 0; transform: translateY(-6px) scale(0.94); }
}

.gc-insight-bubble::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 2px 2px 0;
}
.gc-insight-warn::before { background: var(--warn); }
.gc-insight-good::before { background: var(--accent); }
.gc-insight-risk::before { background: var(--risk); }
.gc-insight-accent::before { background: #3B82F6; }

.gc-insight-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.gc-insight-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  animation: gc-pulse 2s ease-in-out infinite;
}
.gc-insight-warn .gc-insight-pulse { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.gc-insight-good .gc-insight-pulse { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.gc-insight-risk .gc-insight-pulse { background: var(--risk); box-shadow: 0 0 10px var(--risk); }
.gc-insight-accent .gc-insight-pulse { background: #3B82F6; box-shadow: 0 0 10px #3B82F6; }

.gc-insight-tag {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  flex: 1;
}
.gc-insight-x {
  background: none; border: none; cursor: pointer;
  color: var(--text-faint); font-size: 16px;
  width: 18px; height: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.gc-insight-x:hover { background: var(--bg-card-hover); color: var(--text-sec); }

.gc-insight-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--text); line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.gc-insight-body {
  font-size: 12.5px; line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.gc-insight-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
  background: none; border: none; padding: 0; cursor: pointer;
  transition: gap 150ms;
}
.gc-insight-cta:hover { gap: 8px; }

/* Responsive — hide insights on small viewports */
@media (max-width: 1100px) {
  .gc-insight-bubble { display: none; }
}
@media (max-width: 720px) {
  .gc-home-greet { font-size: 40px; }
  .gc-home-q { font-size: 30px; }
}
