/* Inquiry Institute Styles - Matching main site */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=EB+Garamond:wght@400;500;600&display=swap');

:root {
  --font-eb-garamond: 'EB Garamond', serif;
  --font-cinzel-decorative: 'Cinzel Decorative', serif;
  --background: #ffffff;
  --foreground: #171717;
  --border: #e2e8f0;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
    --border: #27272a;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-eb-garamond), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--slate-50);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.6;
}

/* Navigation Header - matching Inquiry.Institute */
nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--slate-900);
  font-family: var(--font-cinzel-decorative);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--amber-600);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--amber-500);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--amber-600);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--slate-600);
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-menu-btn:hover {
  color: var(--slate-900);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Game Container */
.game-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

#app {
  background: #111;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  width: 100%;
  min-height: 540px;
  height: 540px;
  position: relative;
}

#app canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.info {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  max-width: 300px;
  backdrop-filter: blur(4px);
}

.info h3 {
  margin-bottom: 10px;
  color: #667eea;
  font-family: var(--font-cinzel-decorative);
}

.info ul {
  list-style: none;
  padding-left: 0;
}

.info li {
  margin: 5px 0;
}

/* Patronage Lantern - Bottom Left */
.lantern-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
}

.lantern-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amber-500);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lantern-btn:hover {
  background: var(--amber-600);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.lantern-btn svg {
  width: 24px;
  height: 24px;
}

.lantern-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: white;
  color: var(--amber-500);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lantern-panel {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 320px;
  max-height: 80vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
}

.lantern-panel.open {
  display: block;
}

.panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0;
  font-family: var(--font-eb-garamond);
}

.panel-close {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.panel-close:hover {
  color: var(--slate-600);
}

.panel-content {
  max-height: 384px;
  overflow-y: auto;
  padding: 16px;
}

.panel-empty {
  text-align: center;
  padding: 32px 16px;
}

.panel-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--slate-300);
}

.panel-empty p {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.panel-empty .subtitle {
  font-size: 12px;
  color: var(--slate-500);
  margin-bottom: 16px;
}

.panel-cta {
  display: inline-block;
  background: var(--amber-500);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.panel-cta:hover {
  background: var(--amber-600);
}

/* Feedback Candle - Bottom Right */
.candle-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}

.candle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--indigo-500);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.candle-btn:hover {
  background: var(--indigo-600);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.candle-btn svg {
  width: 24px;
  height: 24px;
}

.candle-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 384px;
  max-height: 80vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.candle-panel.open {
  display: flex;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 40;
  display: none;
  backdrop-filter: blur(2px);
}

.panel-backdrop.open {
  display: block;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-600);
  margin-bottom: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  background: white;
  color: var(--slate-900);
  font-family: var(--font-eb-garamond);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  width: 100%;
  background: var(--indigo-500);
  color: white;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-family: var(--font-eb-garamond);
}

.form-submit:hover:not(:disabled) {
  background: var(--indigo-600);
}

.form-submit:disabled {
  background: var(--slate-400);
  cursor: not-allowed;
}
