/* css/generator.css - Styles for Client Widget Generator */

.generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1024px) {
  .generator-layout {
    grid-template-columns: 1fr;
  }
}

/* Niche Selection Cards */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.niche-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}
.niche-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}
.niche-card.active {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}
.niche-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
}
.niche-card.active .niche-icon {
  background: var(--primary-gradient);
  color: var(--text-primary);
}
.niche-details h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.niche-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Live Preview Mock Browser */
.browser-mockup {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.browser-header {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.browser-dot:nth-child(1) { background: var(--danger); }
.browser-dot:nth-child(2) { background: var(--warning); }
.browser-dot:nth-child(3) { background: var(--success); }

.browser-address-bar {
  flex-grow: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  height: 400px;
  background: #f8fafc; /* light background to simulate client site */
  color: #0f172a;
  position: relative;
  overflow-y: auto;
  padding: 32px;
}

/* Generated code area */
.code-panel {
  margin-top: 24px;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.code-header h4 {
  font-size: 0.95rem;
}
.code-block-wrapper {
  position: relative;
}
.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.btn-copy-code {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-copy-code:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* Niche Web Demo Inner Elements (Styled inside the mockup browser content) */
.demo-site-hero {
  text-align: center;
  margin-bottom: 24px;
}
.demo-site-hero h1 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 8px;
}
.demo-site-hero p {
  font-size: 0.85rem;
  color: #64748b;
}

/* Simulated customer website widgets */
.demo-capture-widget {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  border: 1px solid #e2e8f0;
  max-width: 320px;
  margin: 0 auto;
}
.demo-capture-widget h3 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-capture-widget p {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 16px;
}
.demo-widget-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 12px;
  background: #fff;
  color: #0f172a;
}
.demo-widget-btn {
  width: 100%;
  padding: 10px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.demo-widget-btn:hover {
  opacity: 0.9;
}
