/* OrderMAX Documentation Styles */

:root {
  --orange-primary: #FF6B35;
  --orange-light: #FF8A5C;
  --orange-dark: #E85A28;
  --shopify-green: #95BF47;
  --green-light: #AAD062;
  --dark-gray: #1A1A1A;
  --medium-gray: #4A4A4A;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-gray);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand .logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

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

.nav-links a {
  color: var(--medium-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--orange-primary);
}

.nav-links a.active {
  color: var(--orange-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary-sm {
  background: var(--white);
  color: var(--orange-primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--orange-primary);
  display: inline-block;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-secondary-sm:hover {
  background: var(--orange-primary);
  color: white;
}

.nav-mobile {
  display: none;
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

/* Docs Hero */
.docs-hero {
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DD 100%);
  padding: 8rem 2rem 4rem;
  margin-top: 70px;
  text-align: center;
}

.docs-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.docs-hero-subtitle {
  font-size: 1.25rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Docs Navigation Cards */
.docs-navigation {
  padding: 4rem 2rem;
  background: var(--white);
}

.docs-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.docs-nav-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #F0F0F0;
  text-decoration: none;
  color: var(--dark-gray);
  transition: all 0.3s ease;
  position: relative;
}

.docs-nav-card:hover {
  border-color: var(--orange-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.docs-nav-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.docs-nav-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
}

.docs-nav-card p {
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.docs-nav-arrow {
  color: var(--orange-primary);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Quick Start */
.docs-quick-start {
  padding: 4rem 2rem;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--medium-gray);
}

.quick-start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.quick-start-step {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--orange-primary);
  box-shadow: var(--shadow);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--medium-gray);
  font-size: 1rem;
}

/* Common Features */
.common-features {
  padding: 4rem 2rem;
  background: var(--white);
}

.features-grid-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-doc-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.feature-doc-card:hover {
  border-color: var(--orange-primary);
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-doc-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.feature-doc-card p {
  color: var(--medium-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Docs Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Sidebar */
.docs-sidebar {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #F0F0F0;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.docs-sidebar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.docs-nav-list {
  list-style: none;
  margin-bottom: 2rem;
}

.docs-nav-list li {
  margin-bottom: 0.5rem;
}

.docs-nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--medium-gray);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.docs-nav-list a:hover {
  background: #FFF5F0;
  color: var(--orange-primary);
}

.docs-nav-list a.active {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: white;
}

.docs-sidebar-cta {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.docs-sidebar-cta h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.docs-sidebar-cta p {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

/* Main Content */
.docs-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  border: 2px solid #F0F0F0;
}

.docs-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.docs-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
  padding-top: 1rem;
  border-top: 1px solid #E0E0E0;
}

.docs-content h2:first-of-type {
  margin-top: 2rem;
  border-top: none;
  padding-top: 0;
}

.docs-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.docs-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.docs-content p {
  color: var(--medium-gray);
  font-size: 1.063rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.25rem !important;
  color: var(--medium-gray) !important;
  line-height: 1.7 !important;
  margin-bottom: 2rem !important;
}

.docs-content ul,
.docs-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--medium-gray);
}

.docs-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.docs-content a {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 500;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-content code {
  background: var(--light-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--orange-dark);
}

/* Info Boxes */
.info-box,
.tip-box,
.warning-box {
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.info-box {
  background: #EBF5FF;
  border-color: #3B82F6;
}

.tip-box {
  background: #F0FDF4;
  border-color: var(--shopify-green);
}

.warning-box {
  background: #FFF5F0;
  border-color: var(--orange-primary);
}

.info-box strong,
.tip-box strong,
.warning-box strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Workflow */
.workflow-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.workflow-step {
  flex: 1;
  min-width: 180px;
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.workflow-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--shopify-green), var(--green-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 auto 1rem;
}

.workflow-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.workflow-content p {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-bottom: 0;
}

.workflow-arrow {
  color: var(--orange-primary);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Tables */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 2px solid #F0F0F0;
  border-radius: 8px;
  overflow: hidden;
}

.docs-table th,
.docs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #F0F0F0;
}

.docs-table th {
  background: var(--light-gray);
  font-weight: 700;
  color: var(--dark-gray);
}

.docs-table tr:last-child td {
  border-bottom: none;
}

/* Next Steps */
.next-steps {
  background: linear-gradient(135deg, #FFF5F0, #FFE8DD);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.next-steps h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.next-steps ul {
  list-style: none;
  margin-left: 0;
}

.next-steps li {
  margin-bottom: 0.75rem;
}

.next-steps a {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.next-steps a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--dark-gray);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 2rem 2rem;
}

.footer-content .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
  margin-left: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--orange-primary);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .container {
  padding: 0;
}

/* Responsive */
@media (max-width: 968px) {
  .docs-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
  }

  .docs-content {
    padding: 2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .docs-hero {
    padding: 6rem 1.5rem 3rem;
  }

  .docs-hero-content h1 {
    font-size: 2rem;
  }

  .workflow-steps {
    flex-direction: column;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .docs-content h1 {
    font-size: 2rem;
  }

  .docs-content h2 {
    font-size: 1.5rem;
  }

  .docs-content {
    padding: 1.5rem;
  }

  .quick-start-steps,
  .features-grid-docs,
  .docs-nav-grid {
    grid-template-columns: 1fr;
  }
}
