/*
Theme Name: Vibe Church
Theme URI: https://example.com/vibe-church
Author: Luke Frederick & Codex
Author URI: https://example.com
Description: A minimal, SPA-friendly, design-system theme shell for the Vibe Church plugin.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vibe-church
*/

:root {
  --vc-color-bg: #f6f7fb;
  --vc-color-surface: #ffffff;
  --vc-color-brand: #23395b;
  --vc-color-accent: #4f8cff;
  --vc-color-text: #1c1f26;
  --vc-color-muted: #5c6370;
  --vc-font-heading: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --vc-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --vc-space-xs: 0.5rem;
  --vc-space-sm: 0.75rem;
  --vc-space-md: 1.5rem;
  --vc-space-lg: 3rem;
  --vc-radius-sm: 6px;
  --vc-radius-lg: 18px;
  --vc-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vc-color-bg);
  color: var(--vc-color-text);
  font-family: var(--vc-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--vc-color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Assistant app shell */
html,
body {
  height: 100%;
}

body.page-template-page-assistant {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.page-template-page-voice-console {
  overflow: hidden !important;
}

body.page-template-page-assistant.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-template-page-assistant #wpadminbar {
  display: none !important;
}

body.page-template-page-assistant .vc-app-shell,
body.page-template-page-assistant #vc-assistant-root,
body.page-template-page-assistant #vc-voice-console-root,
body.page-template-page-voice-console .vc-app-shell,
body.page-template-page-voice-console #vc-assistant-root,
body.page-template-page-voice-console #vc-voice-console-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--vc-viewport-h, 100vh);
  height: var(--vc-viewport-h, 100dvh);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

body.page-template-page-assistant .vc-chat-thread,
body.page-template-page-assistant .vc-chat-log,
body.page-template-page-voice-console .vc-chat-thread,
body.page-template-page-voice-console .vc-chat-log {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

body.page-template-page-assistant .vc-input-bar,
body.page-template-page-voice-console .vc-input-bar {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.vc-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--vc-space-md);
}

header.site-header {
  background: var(--vc-header-bg);
  border-bottom: 1px solid var(--vc-header-border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--vc-space-sm);
  padding: var(--vc-space-md) 0;
}

.site-branding .site-title {
  font-family: var(--vc-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.nav-primary {
  display: flex;
  gap: var(--vc-space-md);
  align-items: center;
}

.nav-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--vc-space-md);
}

.nav-primary li {
  margin: 0;
}

.nav-primary a {
  color: var(--vc-header-link-color);
  font-weight: 600;
}

.nav-primary a:hover,
.nav-primary a:focus {
  color: var(--vc-header-link-active);
}

.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a {
  color: var(--vc-header-link-active);
}

.vc-page-shell {
  padding-top: var(--vc-space-lg);
  padding-bottom: var(--vc-space-lg);
}

footer.site-footer {
  background: var(--vc-color-surface);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--vc-space-md) 0;
  text-align: center;
  color: var(--vc-color-muted);
  font-size: 0.95rem;
}
