/* Vacation Rental House Manual Generator — shared styles */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e4e6f0;
  --muted: #8b8fa3;
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --success: #22c55e;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-center { text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Nav */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .logo { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.navbar .logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0f1117;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* Cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* Badge */
.badge {
  display: inline-block;
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Hero */
.hero { text-align: center; padding: 80px 0 60px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.trust-row { display: flex; gap: 32px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.trust-item .icon { font-size: 1.2rem; color: var(--success); }

/* Footer */
.footer { background: var(--surface); padding: 40px 0; margin-top: 60px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.comparison-table th, .comparison-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--surface); font-weight: 600; }
.comparison-table .highlight-col { background: rgba(45, 212, 191, 0.1); color: var(--accent); font-weight: 600; }
.comparison-table .check { color: var(--success); }
.comparison-table .cross { color: #ef4444; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* App Layout */
.app-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .app-layout { grid-template-columns: 1fr; } }

/* Form Section */
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.form-section h3 { margin-bottom: 20px; font-size: 1.1rem; }

/* Dynamic list items */
.dynamic-list { display: flex; flex-direction: column; gap: 12px; }
.dynamic-item { display: flex; gap: 12px; align-items: start; }
.dynamic-item input, .dynamic-item textarea { flex: 1; }
.dynamic-item .item-actions { display: flex; flex-direction: column; gap: 4px; }
.toggle-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.toggle-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.toggle-row label { margin: 0; font-weight: 400; }

/* Theme selector */
.theme-selector { display: flex; gap: 12px; margin-bottom: 20px; }
.theme-option { flex: 1; padding: 12px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; text-align: center; transition: border-color 0.2s; }
.theme-option.active { border-color: var(--accent); }
.theme-option .theme-preview { width: 100%; height: 40px; border-radius: 4px; margin-bottom: 8px; }
.theme-option .theme-name { font-size: 0.85rem; font-weight: 600; }

/* Preview */
.preview-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; }
.preview-container h3 { margin-bottom: 16px; font-size: 1rem; color: var(--muted); }
#pdf-preview { width: 100%; border-radius: 4px; background: #fff; min-height: 400px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: #ef4444; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* FAQ */
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item strong { display: block; margin-bottom: 4px; }

/* Actions */
.actions { display: flex; gap: 12px; margin-top: 24px; }
