/* =============================================================================
   PHOTOSCANR GLOBAL STYLES
   Centralized styling for all content pages
   ============================================================================= */

/* Base HTML/Body styles */
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility classes - Tailwind handles .container, so we don't redefine it */

/* Simple scrollbar styling for a more modern look */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Progress bar animation */
@keyframes progress {
  0% { width: 0%; }
  20% { width: 30%; }
  50% { width: 60%; }
  80% { width: 85%; }
  100% { width: 95%; }
}

.animate-progress {
  animation: progress 5s ease-out forwards;
}

/* =============================================================================
   CONTENT PAGE LAYOUT COMPONENTS
   Standard classes for all content pages (about, faq, resources, etc.)
   ============================================================================= */

/* Header Component */
.content-page-header {
  background-color: rgb(249 250 251);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  border-bottom: 1px solid rgb(229 231 235);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 80px;
}

.content-page-header .container {
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  max-width: 1280px;
}

@media (min-width: 768px) {
  .content-page-header .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.content-page-header .flex {
  display: flex;
}

.content-page-header .justify-between {
  justify-content: space-between;
}

.content-page-header .items-center {
  align-items: center;
}

/* Logo */
.content-page-logo {
  text-decoration: none;
}

.content-page-logo h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.content-page-logo h1 .logo-highlight {
  color: rgb(37 99 235);
}

.content-page-logo p {
  color: rgb(75 85 99);
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.2;
}

/* Navigation */
.content-page-nav {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .content-page-nav {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .content-page-nav {
    gap: 1.5rem;
    font-size: 1rem;
  }
}

.content-page-nav a {
  color: rgb(75 85 99);
  transition: color 0.2s;
}

.content-page-nav a:hover {
  color: rgb(37 99 235);
}

.content-page-nav a.active {
  color: rgb(37 99 235);
  font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: rgb(75 85 99);
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu-button:hover {
  background-color: rgb(229 231 235);
}

.mobile-menu-button:focus {
  outline: 2px solid rgb(37 99 235);
  outline-offset: 2px;
}

/* Mobile Menu */
.mobile-menu {
  border-top: 1px solid rgb(229 231 235);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(55 65 81);
}

.mobile-menu a:hover {
  color: rgb(17 24 39);
  background-color: rgb(243 244 246);
}

.mobile-menu a.active {
  color: rgb(37 99 235);
  background-color: rgb(239 246 255);
}

/* Main Content Container */
.content-page-main {
  flex-grow: 1;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}

@media (min-width: 768px) {
  .content-page-main {
    padding: 2rem;
  }
}

.content-page-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border: 1px solid rgb(229 231 235);
  max-width: 56rem; /* 896px - STANDARD WIDTH FOR ALL CONTENT PAGES */
  margin-left: auto;
  margin-right: auto;
}

/* Page Title */
.content-page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: rgb(37 99 235);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgb(229 231 235);
  padding-bottom: 1rem;
}

/* Content Typography */
.content-page-body {
  color: rgb(55 65 81);
  font-size: 1.125rem;
  line-height: 1.75;
}

.content-page-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(31 41 55);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(31 41 55);
  margin-bottom: 0.5rem;
}

.content-page-body p {
  margin-bottom: 1rem;
}

.content-page-body a {
  color: rgb(37 99 235);
  text-decoration: underline;
}

.content-page-body a:hover {
  color: rgb(29 78 216);
}

/* Footer Component */
.content-page-footer {
  background-color: rgb(249 250 251);
  border-top: 1px solid rgb(229 231 235);
  margin-top: auto;
}

.content-page-footer .container {
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  text-align: center;
  color: rgb(107 114 128);
}

@media (min-width: 768px) {
  .content-page-footer .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.content-page-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.content-page-footer .footer-links a {
  color: rgb(107 114 128);
  transition: color 0.2s;
}

.content-page-footer .footer-links a:hover {
  color: rgb(37 99 235);
  text-decoration: underline;
}

.content-page-footer .disclaimer {
  font-size: 0.75rem;
  color: rgb(107 114 128);
  max-width: 48rem;
  margin: 0 auto 0.5rem;
}

.content-page-footer .copyright {
  font-size: 0.875rem;
}

/* Utility Classes for Content Pages */
.section-spacing {
  margin-bottom: 2rem;
}

.article-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgb(229 231 235);
}

.article-section:last-child {
  border-bottom: none;
}

.section-divider {
  border-top: 1px solid rgb(229 231 235);
  padding-top: 2rem;
}

.info-box {
  background-color: rgb(239 246 255);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid rgb(37 99 235);
}

.info-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(31 41 55);
}

/* Article & Use Case Styling */
.article-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.article-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: rgb(31 41 55);
  margin-bottom: 0.5rem;
}

.article-subtitle {
  color: rgb(75 85 99);
  margin-top: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0;
}

.article-meta {
  font-size: 0.875rem;
  color: rgb(107 114 128);
  margin-bottom: 1.5rem;
}

.article-content {
  color: rgb(55 65 81);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-top: 1.5rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
  list-style-position: inside;
  margin-left: 1rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(31 41 55);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.example-box {
  background-color: rgb(249 250 251);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid rgb(37 99 235);
}

.example-title {
  font-weight: 600;
  color: rgb(31 41 55);
  margin-bottom: 0.5rem;
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.resource-card {
  display: block;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s;
  border: 1px solid rgb(224 231 255);
}

.resource-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.resource-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(79 70 229);
  margin-bottom: 0.5rem;
}

.resource-card-desc {
  color: rgb(75 85 99);
  margin-bottom: 0.75rem;
}

.resource-card-link {
  font-size: 0.875rem;
  color: rgb(99 102 241);
  font-weight: 600;
}