/* =====================================================================
   NexousHub landing - component styles
   These blocks were inline <style> tags inside the React components
   (Footer.tsx and Index.tsx); they are moved here unchanged so Razor does
   not need to escape the @media / @keyframes rules.
   ===================================================================== */

/* ---- Home page: hero call-to-action hover (was onMouseEnter/onMouseLeave) ---- */
.hero-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.6), 0 4px 12px rgba(139, 92, 246, 0.5) !important;
}

/* ---- Footer (was the <style> block in Footer.tsx) ---- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1.1fr 4px 1fr 1.3fr;
    gap: 0;
  }
  .footer-col { padding-left: 2rem; }
  .footer-col:first-child { padding-left: 0; }
  .footer-accordion-btn { display: none !important; }
  .footer-col-desktop-title { display: flex !important; }
  .footer-accordion-body { display: block !important; max-height: none !important; overflow: visible !important; padding-bottom: 0 !important; }
  .footer-col { border-bottom: none !important; padding-top: 0 !important; }
  .footer-brand-col { padding: 0 !important; }
  .footer-col-divider {
    display: block !important;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 20%, rgba(6,182,212,0.35) 50%, rgba(255,255,255,0.12) 80%, transparent);
    margin: 0 auto;
    align-self: stretch;
  }
  .footer-col-divider + .footer-col {
    padding-left: 3rem;
  }
}
.footer-col {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.footer-col:last-child { border-bottom: none; }
.footer-brand-col { padding: 20px 0 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}
.footer-col-title-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-accordion-chevron {
  transition: transform 0.3s ease;
  color: #64748b;
  flex-shrink: 0;
}
.footer-accordion-btn.open .footer-accordion-chevron {
  transform: rotate(180deg);
}
.footer-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-bottom: 0;
}
.footer-accordion-body.open {
  max-height: 600px;
  padding-bottom: 16px;
}
.footer-col-desktop-title { display: none; }

.social-link-fb:hover { background: rgba(24,119,242,0.35) !important; }
.social-link-ig:hover { background: rgba(225,48,108,0.35) !important; }
.social-link-in:hover { background: rgba(10,102,194,0.35) !important; }
.social-link-wa:hover { background: rgba(37,211,102,0.35) !important; }

/* ── LIGHT MODE ── */
html[data-theme="light"] footer {
  background: #f1f5f9 !important;
  border-top-color: rgba(15,23,42,0.08) !important;
}
html[data-theme="light"] #footer-logo-dark  { display: none !important; }
html[data-theme="light"] #footer-logo-light { display: block !important; }
html[data-theme="light"] footer p.text-slate-400 { color: #475569 !important; }
html[data-theme="light"] footer .text-slate-400 { color: #475569 !important; }
html[data-theme="light"] footer .text-slate-300 { color: #334155 !important; }
html[data-theme="light"] footer .text-slate-500 { color: #64748b !important; }
html[data-theme="light"] footer .text-slate-600 { color: #475569 !important; }
html[data-theme="light"] footer .text-white     { color: #0f172a !important; }
html[data-theme="light"] footer .footer-accordion-btn { color: #0f172a !important; }
html[data-theme="light"] footer .footer-col { border-bottom-color: rgba(15,23,42,0.08) !important; }
html[data-theme="light"] footer .footer-brand-col { border-bottom-color: rgba(15,23,42,0.08) !important; }
html[data-theme="light"] footer .border-t { border-top-color: rgba(15,23,42,0.08) !important; }
html[data-theme="light"] footer .footer-col-divider {
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.12) 20%, rgba(6,182,212,0.3) 50%, rgba(15,23,42,0.12) 80%, transparent) !important;
}
html[data-theme="light"] footer a[style*="rgba(24,119,242"] {
  background: rgba(24,119,242,0.12) !important;
  border-color: rgba(24,119,242,0.4) !important;
}
html[data-theme="light"] footer a[style*="rgba(225,48,108"] {
  background: rgba(225,48,108,0.12) !important;
  border-color: rgba(225,48,108,0.4) !important;
}
html[data-theme="light"] footer a[style*="rgba(10,102,194"] {
  background: rgba(10,102,194,0.12) !important;
  border-color: rgba(10,102,194,0.4) !important;
}
html[data-theme="light"] footer a[style*="rgba(37,211,102"] {
  background: rgba(37,211,102,0.12) !important;
  border-color: rgba(37,211,102,0.4) !important;
}
html[data-theme="light"] footer div[style*="rgba(79,142,247,0.15)"] {
  background: rgba(79,142,247,0.1) !important;
}
html[data-theme="light"] footer div[style*="rgba(6,182,212,0.15)"] {
  background: rgba(6,182,212,0.1) !important;
}
html[data-theme="light"] footer div[style*="rgba(139,92,246,0.15)"] {
  background: rgba(139,92,246,0.1) !important;
}

/* ---- Home page demo section (was the <style> block in Index.tsx) ---- */
#demo {
  transition: background-color 0.3s ease;
}

/* Dark theme */
#demo, [data-theme="dark"] #demo {
  background: #000000 !important;
}

.demo-overlay, [data-theme="dark"] .demo-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.75) 100%) !important;
}

/* Light theme */
[data-theme="light"] #demo {
  background: #f8fafc !important;
}

[data-theme="light"] .demo-overlay {
  background: linear-gradient(90deg, rgba(248,250,252,0.9) 0%, rgba(248,250,252,0.6) 60%, rgba(248,250,252,0.85) 100%) !important;
}

/* Mockup Card styling */
.home-chat-mockup {
  transition: all 0.3s ease;
  background: #0d0d1a;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 60px rgba(139,92,246,0.12);
}

[data-theme="light"] .home-chat-mockup {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06) !important;
}

.home-chat-header {
  transition: all 0.3s ease;
  background: #111122;
}

[data-theme="light"] .home-chat-header {
  background: #f8fafc !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

/* Chat bubbles */
.chat-bubble-user {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  color: #ffffff !important;
}

[data-theme="light"] .chat-bubble-user {
  color: #ffffff !important;
}

.chat-bubble-ai {
  transition: all 0.3s ease;
  background: #1a1a2e;
  color: #e2e8f0;
}

[data-theme="light"] .chat-bubble-ai {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.chat-bubble-typing {
  transition: all 0.3s ease;
  background: #1a1a2e;
}

[data-theme="light"] .chat-bubble-typing {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.chat-input-container {
  transition: all 0.3s ease;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
}

[data-theme="light"] .chat-input-container {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
}

.chat-input-field {
  transition: all 0.3s ease;
  color: #cbd5e1;
}

[data-theme="light"] .chat-input-field {
  color: #0f172a !important;
}

[data-theme="light"] .chat-input-field::placeholder {
  color: #94a3b8 !important;
}

/* Robot SVG light-mode overrides */
[data-theme="light"] .circuit-line {
  stroke: #7c3aed !important;
  opacity: 0.25 !important;
}
[data-theme="light"] .circuit-node {
  fill: #7c3aed !important;
  opacity: 0.4 !important;
}
[data-theme="light"] .glow-node {
  fill: #0891b2 !important;
  opacity: 0.6 !important;
}
[data-theme="light"] .robot-stroke {
  stroke: #7c3aed !important;
}
[data-theme="light"] .robot-fill {
  fill: rgba(124, 58, 237, 0.04) !important;
  stroke: #7c3aed !important;
}
[data-theme="light"] .robot-accent {
  fill: rgba(8, 145, 178, 0.1) !important;
  stroke: #0891b2 !important;
}
[data-theme="light"] .eye-glow {
  fill: #0891b2 !important;
}

/* ---- Home page demo section: robot / circuit SVG (was the <style> inside the <svg>) ---- */
.circuit-line { stroke: #8b5cf6; stroke-width: 1; fill: none; opacity: 0.35; }
.circuit-node { fill: #8b5cf6; opacity: 0.6; }
.glow-node { fill: #06b6d4; opacity: 0.8; }
.robot-stroke { stroke: #8b5cf6; stroke-width: 1.5; fill: none; }
.robot-fill { fill: rgba(139,92,246,0.08); stroke: #8b5cf6; stroke-width: 1.2; }
.robot-accent { fill: rgba(6,182,212,0.15); stroke: #06b6d4; stroke-width: 1; }
.eye-glow { fill: #06b6d4; }
@keyframes pulse-node { 0%,100%{opacity:0.3;r:3} 50%{opacity:1;r:5} }
@keyframes pulse-eye  { 0%,100%{opacity:0.6} 50%{opacity:1} }
@keyframes dash-flow  { to { stroke-dashoffset: -40; } }
.anim-node { animation: pulse-node 2.5s ease-in-out infinite; }
.anim-eye  { animation: pulse-eye 1.8s ease-in-out infinite; }
.anim-line { stroke-dasharray: 8 6; animation: dash-flow 2s linear infinite; }
