/* ================================
   Novitrac Documentation - Styles
   Mobile-First, Clean & Simple
   ================================ */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f8fafc;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   Header & Navigation
   ================================ */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  opacity: 0.9;
}

/* Desktop Nav */
.nav-links {
  display: none;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: rgba(0,0,0,0.95);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 80px 30px 30px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Desktop styles */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* ================================
   Hero Section
   ================================ */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: white;
  color: #764ba2;
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid white;
}

@media (min-width: 500px) {
  .hero-buttons {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

/* ================================
   Page Header (for inner pages)
   ================================ */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
}

/* ================================
   Main Content
   ================================ */
main {
  padding: 40px 20px;
}

.content-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4 {
  color: #1a1a2e;
  margin-bottom: 15px;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  color: #4a5568;
}

p {
  margin-bottom: 15px;
  color: #4a5568;
}

ul, ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

li {
  margin-bottom: 8px;
  color: #4a5568;
}

strong {
  color: #1a1a2e;
}

/* ================================
   Tables
   ================================ */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1a1a2e;
}

tr:hover {
  background: #f8fafc;
}

/* ================================
   Code Blocks
   ================================ */
code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: #e53e3e;
}

pre {
  background: #1a1a2e;
  color: #a0aec0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ================================
   Callout Boxes
   ================================ */
.callout {
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-tip {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
}

.callout-tip .callout-title {
  color: #047857;
}

.callout-warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}

.callout-warning .callout-title {
  color: #b45309;
}

.callout-danger {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.callout-danger .callout-title {
  color: #dc2626;
}

.callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.callout-info .callout-title {
  color: #1d4ed8;
}

/* ================================
   Step Cards
   ================================ */
.step {
  display: flex;
  gap: 20px;
  margin: 25px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 8px;
  color: #1a1a2e;
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* ================================
   Feature Cards (Home Page)
   ================================ */
.features {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   Quick Reference Boxes
   ================================ */
.ref-grid {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.ref-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px 20px;
  border-left: 4px solid #667eea;
}

.ref-box h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.ref-box p {
  margin: 0;
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   Checklist
   ================================ */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.checklist li:last-child {
  border-bottom: none;
}

.check-icon {
  color: #10b981;
  font-weight: bold;
}

/* ================================
   Footer
   ================================ */
footer {
  background: #1a1a2e;
  color: white;
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
}

footer p {
  color: rgba(255,255,255,0.7);
  margin: 0;
}

footer a {
  color: white;
}

/* ================================
   Breadcrumb
   ================================ */
.breadcrumb {
  padding: 15px 20px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.breadcrumb span {
  color: #a0aec0;
  margin: 0 8px;
}

/* ================================
   Table of Contents
   ================================ */
.toc {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 30px;
}

.toc h4 {
  margin-bottom: 15px;
  font-size: 1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: #667eea;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* ================================
   Badge/Tag
   ================================ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.badge-green {
  background: #d1fae5;
  color: #047857;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-red {
  background: #fee2e2;
  color: #dc2626;
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-30 {
  margin-bottom: 30px;
}

/* ================================
   Print Styles
   ================================ */
@media print {
  header, footer, .mobile-nav {
    display: none;
  }
  
  .content-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
