/* =============================
   Global Stylesheet: Siena Automation Library
   ============================= */

/* 1. Base Layout & Typography */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafb; /* Neutral Slate */
  color: #1f2937; /* Gray-800 */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #1f2937;
}

/* 2. Core Brand Palette */
:root {
  --brand-primary: #4f46e5; /* Indigo */
  --brand-primary-dark: #4338ca;
  --neutral-gray: #6b7280; /* Slate/Gray */
  --neutral-bg: #f9fafb;
  --card-bg: #ffffff; /* Accent White */
}

/* 3. Automation Cards */
.automation-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.automation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -4px rgba(0,0,0,0.12);
}

.automation-card .card-content {
  flex-grow: 1;
  padding: 1.5rem;
}

.automation-card .card-footer {
  background: var(--neutral-bg);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 4. Featured Badge */
.featured-badge {
  background-color: #fef3c7; /* Amber-100 */
  color: #92400e; /* Amber-700 */
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* 5. Category Badges (Library Index) */
.category-promotions-discounts {
  background-color: #3b82f6; /* Blue */
  color: #ffffff;
}

.category-order-management {
  background-color: #8b5cf6; /* Purple */
  color: #ffffff;
}

.category-product-information {
  background-color: #10b981; /* Green */
  color: #ffffff;
}

.category-shipping-delivery {
  background-color: #facc15; /* Yellow */
  color: #111827;
}

.category-business-inquiries {
  background-color: #ef4444; /* Red */
  color: #ffffff;
}

.category-other {
  background-color: #9ca3af; /* Gray */
  color: #ffffff;
}

.category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* 6. Semantic Automation Flow Cards */
.persona-card {
  border-left: 4px solid #10b981; /* Green */
  background-color: #ecfdf5;
}

.info-card, .action-card {
  border-left: 4px solid #3b82f6; /* Blue */
  background-color: #eff6ff;
}

.decision-card, .condition-card {
  border-left: 4px solid #f59e0b; /* Amber */
  background-color: #fffbeb;
}

.prerequisite-card {
  border-left: 4px solid #ef4444; /* Red */
  background-color: #fef2f2;
}

.escalation-card {
  border-left: 4px solid #8b5cf6; /* Violet */
  background-color: #f5f3ff;
}

.policy-check-card {
  border-left: 4px solid #facc15; /* Yellow */
  background-color: #fefce8;
}

/* 7. Search & Filters */
.filter-btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: white;
  color: #374151;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-btn.active {
  color: #ffffff;
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
}

/* 8. Scroll to Top Button */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  font-size: 20px;
  border: none;
  outline: none;
  background-color: var(--brand-primary);
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease-in-out;
}

#scrollToTopBtn:hover {
  background-color: var(--brand-primary-dark);
}

/* 9. Modal Styles */
.modal-overlay {
  display: none;
}

.modal-content {
  max-width: 500px;
  width: 100%;
}

/* =============================
   End Global Stylesheet
   ============================= */
