/* Base Styles */
:root {
  --dark: #1a1a1a;
  --muted: #111827;
  --accent: #f97316;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: 'Lato', sans-serif;
  line-height: 1.6; */
  color: var(--dark);
  background: #fff;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}

.btn-xxs {
  padding: 10px 15px !important;
  font-size: 10px !important;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-mark {
  text-decoration: none;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.brand-title .name {
  color: var(--dark);
}

.brand-title .dot {
  color: var(--accent);
}

.brand-title .domain {
  color: var(--muted);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: #111827;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Mobile Menu Styles */
nav.main-nav.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #f9fafb;
  z-index: 1000;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
  flex-direction: column;
}

.nav-menu-header {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #0f172a;
  padding: 0 1.1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 1001;
}

nav.main-nav.open~.nav-menu-header,
body.menu-open .nav-menu-header {
  display: flex;
}

.nav-menu-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-menu-logo .brand-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-menu-logo .brand-title .name {
  color: var(--accent);
}

.nav-menu-logo .brand-title .dot {
  color: #ffffff;
}

.nav-menu-logo .brand-title .domain {
  color: #ffffff;
}

.nav-menu-logo .brand-tagline {
  font-size: 0.68rem;
  color: #e5e7eb;
  font-weight: 700;
}

.nav-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  font-weight: 300;
}

nav.main-nav.open a {
  color: var(--text);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: none;
  padding: 0.5rem 0;
  border: none;
}

nav.main-nav.open a:hover {
  color: var(--accent);
  border: none;
}

nav.main-nav.open a.active {
  color: var(--accent);
  font-weight: 500;
  border: none;
}

/* Footer */
.site-footer {
  background: #f9f9f9;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

.page-wrapper {
  min-height: 60vh;
}

/* Book Navigator Specific Styles */
.navigator-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.navigator-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.navigator-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.navigator-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  border-radius: 25px;
  background: #f5f5f5;
  color: #999;
  font-size: 1.6rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.step.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.step.completed {
  background: #111827;
  color: white;
  /* border-color: var(--accent); */
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  color: #999;
  font-weight: 700;
  font-size: 1.3rem;
}

.step.active .step-number {
  background: white;
  color: var(--accent);
  font-weight: 700;
}

.step.completed .step-number {
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.navigator-screen {
  display: none;
}

.navigator-screen.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark);
  text-align: center;
}

.screen-subtitle {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.role-card {
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.role-card:hover {
  border-color: var(--accent);
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.role-card.selected {
  border-color: var(--accent);
  background: #fff5f0;
}

.role-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.role-card p {
  font-size: 1.3rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.use-case-card {
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.use-case-card:hover {
  border-color: var(--accent);
  /* transform: translateY(s-2px); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.use-case-card.selected {
  border-color: var(--accent);
  background: #fff5f0;
}

.use-case-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 600;
}

.use-case-card p {
  font-size: 1.3rem;
  color: var(--muted);
  margin: 0;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* .nav-buttons button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back {
  background: #f5f5f5;
  color: var(--dark);
} */

.btn-back:hover {
  background: #e0e0e0;
}

.btn-continue {
  background: var(--accent);
  color: white;
}

.btn-continue:hover {
  background: #d85a1f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-continue:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.skip-option {
  text-align: center;
  margin-top: 1.5rem;
}

.skip-option a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.skip-option a:hover {
  text-decoration: underline;
}

/* Tailoring Inputs Styling */
.tailoring-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--dark);
  font-size: 1rem;
}

.form-group select {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: white;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group select:hover {
  border-color: var(--accent);
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Prompts Styling */
.prompts-list {
  max-width: 800px;
  margin: 0 auto;
}

.prompt-category {
  margin-bottom: 2.5rem;
}

.prompt-category h3 {
  font-size: 1.8rem;
  /* color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent); */
}

.prompt-item {
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.prompt-item:hover {
  border-color: var(--accent);
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #f6f7f8;
}

.prompt-item.selected {
  border-color: var(--accent);
  background: #fff5f0;
}

.prompt-item h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.prompt-item p {
  font-size: 1.4rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1.2rem 0;
}

.prompt-expand-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0;
  text-decoration: underline;
  margin-bottom: 0.8rem;
  display: block;
}

.prompt-expand-btn:hover {
  color: #d85a1f;
}

.prompt-submit-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-submit-btn:hover {
  background: #d85a1f;
  transform: translateY(-1px);
}

.response-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  display: none;
}

.response-container.show {
  display: block;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.response-content {
  color: var(--dark);
  line-height: 1.6;
  font-size: 1.3rem;
}

.response-content p {
  margin-bottom: 1.2rem;
}

.response-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.response-content li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.response-content strong {
  font-weight: 600;
  color: var(--dark);
}

.response-content.collapsed {
  max-height: 250px;
  overflow: hidden;
  position: relative;
}

.response-content.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, #f9f9f9);
}

.read-more-btn {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.loading-indicator {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.loading-indicator p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 1rem;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  background: #ffebee;
  border-left: 4px solid #d32f2f;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  color: #c62828;
}

.ask-another {
  text-align: center;
  margin-top: 2rem;
}

/* .ask-another button {
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ask-another button:hover {
  background: #d85a1f;
  transform: translateY(-1px);
} */

/* Responsive */
@media (max-width: 768px) {
  .navigator-hero h1 {
    font-size: 2rem;
  }

  .role-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .step-indicator {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .step {
    padding: 0.5rem 0.8rem;
  }

  .step-number {
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
  }

  .nav-buttons button {
    width: 100%;
  }

  .form-group select {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .prompt-item h4 {
    font-size: 1.6rem;
  }

  .prompt-item p {
    font-size: 1.4rem;
  }
}