/* Programmatic Combined Pages Styles */

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4A90E2, #357ABD);
  z-index: 1050;
  transition: width 0.3s ease;
}

/* Integration pages now use comparison classes for consistency */
/* Match exact comparison page styles */
.integration-page .comparison-hero-section {
  padding: 140px 0 40px;
  background: transparent;
  margin-top: 40px;
}

.integration-page .comparison-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.integration-page .comparison-hero-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

.integration-page .mb-6 {
  margin-bottom: 4rem;
}

/* Use Case pages now use comparison classes for consistency */
/* Match exact comparison page styles */
.use-case-page .comparison-hero-section {
  padding: 140px 0 40px;
  background: transparent;
  margin-top: 40px;
}

.use-case-page .comparison-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.use-case-page .comparison-hero-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

.use-case-page .mb-6 {
  margin-bottom: 4rem;
}

/* Location pages now use comparison classes for consistency */
/* Match exact comparison page styles */
.location-page .comparison-hero-section {
  padding: 140px 0 40px;
  background: transparent;
  margin-top: 40px;
}

.location-page .comparison-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.location-page .comparison-hero-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

.location-page .mb-6 {
  margin-bottom: 4rem;
}


.use-case-circle {
  background: linear-gradient(135deg, #1E5FFF 0%, #0047CC 100%);
}

.tool-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.tool-category {
  color: #6c757d;
  font-size: 0.875rem;
}

.integration-connection {
  padding: 20px;
}

.connection-icon {
  font-size: 48px;
  color: #0047CC;
  margin-bottom: 10px;
  opacity: 0.8;
}

.connection-label {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Content Section */
.integration-content-section {
  padding: 80px 0;
}

.mb-6 {
  margin-bottom: 3rem;
}

/* Table of Contents */
.table-of-contents {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #0047CC;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  position: sticky;
  top: 100px;
}

.toc-title {
  color: #002D8E;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

.toc-link {
  display: block;
  padding: 10px 15px;
  color: #5a6c7d;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 5px;
  cursor: pointer;
}

.toc-link:hover {
  background: rgba(0, 71, 204, 0.1);
  color: #0047CC;
  transform: translateX(5px);
}

.toc-link.active {
  background-color: rgba(0, 45, 142, 0.05);
  color: #002D8E !important;
  font-weight: 600;
}

/* Handle active state on list items too */
.toc-list li.active a {
  background-color: rgba(0, 45, 142, 0.05);
  color: #002D8E !important;
  font-weight: 600;
}

/* Location Hero Section - Matching LocationPageTemplate */
.location-hero-section {
  background: linear-gradient(135deg, #f8fbff 0%, #e6f2ff 100%);
  padding: 120px 0 80px;
  margin-top: 80px;
  min-height: 600px;
}

.location-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #002D8E;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.location-hero-subtitle {
  font-size: 1.25rem;
  color: #5a6c7d;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.location-btn-primary {
  background: linear-gradient(135deg, #0047CC 0%, #002D8E 100%);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 71, 204, 0.3);
}

.location-btn-primary:hover {
  background: linear-gradient(135deg, #002D8E 0%, #001a5c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 71, 204, 0.4);
}

.location-btn-outline {
  color: #0047CC;
  border: 2px solid #0047CC;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.location-btn-outline:hover {
  background: #0047CC;
  color: white;
  transform: translateY(-2px);
}

/* Location Stats Overview */
.location-stats-overview {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.location-stats-overview .stat-item {
  padding: 20px;
}

.location-stats-overview .stat-icon {
  font-size: 2.5rem;
  color: #0047CC;
}

.location-stats-overview .stat-item h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #002D8E;
  margin-bottom: 5px;
}

.location-stats-overview .stat-item p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

/* Location Content Section */
.location-content-section {
  padding: 80px 0;
}

/* Location + Use Case Page Styles */
.location-stats-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
  padding: 20px;
}

.stat-icon {
  font-size: 2.5rem;
  color: #4A90E2;
  margin-bottom: 10px;
}

.stat-item h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-item p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

/* Integration + Use Case Page Styles - Removed duplicate hero */

/* Table of Contents */
.toc-sidebar {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #4A90E2;
}

.toc-title {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 15px;
}

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

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

.toc-list a {
  color: #6c757d;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.toc-list a:hover,
.toc-list li.active a {
  background: #4A90E2;
  color: white;
  transform: translateX(5px);
}

/* Content Sections */
.content-section {
  scroll-margin-top: 100px;
}

.section-title {
  color: #2c3e50;
  font-weight: 700;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5a6c7d;
}

/* Benefits Grid */
.benefit-item {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2rem;
  color: #4A90E2;
  margin-right: 15px;
  flex-shrink: 0;
}

.benefit-content h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-content p {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

/* Key Features */
.key-features-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.key-features-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(45deg);
}

.key-features-card h3 {
  position: relative;
  z-index: 2;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  height: 100%;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

/* Setup Steps Tabs */
.react-tabs__tab-list {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 25px;
}

.react-tabs__tab {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 12px 20px;
  cursor: pointer;
  margin-right: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.react-tabs__tab:hover {
  background: #e9ecef;
}

.react-tabs__tab--selected {
  background: #4A90E2;
  color: white;
  border-color: #4A90E2;
}

.setup-step-content {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
}

.code-block {
  background: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-image {
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Features Table */
.features-table,
.benefits-table {
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  border: none;
}

.features-table th,
.benefits-table th {
  background: #4A90E2;
  color: white;
  border: none;
  padding: 15px;
  font-weight: 600;
}

.features-table td,
.benefits-table td {
  padding: 15px;
  border-color: #e9ecef;
  vertical-align: middle;
}

.features-table tr:nth-child(even),
.benefits-table tr:nth-child(even) {
  background: #f8f9fa;
}

/* Use Cases */
.use-case-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  border-color: #4A90E2;
  box-shadow: 0 5px 20px rgba(74, 144, 226, 0.15);
}

.use-case-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.use-case-icon {
  font-size: 1.5rem;
  color: #4A90E2;
  margin-right: 12px;
}

.use-case-header h5 {
  color: #2c3e50;
  margin: 0;
}

.use-case-example {
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 3px solid #4A90E2;
  margin-top: 10px;
  font-style: italic;
}

/* Statistics */
.stat-card,
.stat-box {
  background: white;
  padding: 25px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #4A90E2;
  transition: transform 0.3s ease;
}

.stat-card:hover,
.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number,
.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4A90E2;
  margin-bottom: 5px;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

.stat-icon {
  font-size: 2rem;
  color: #4A90E2;
  margin-bottom: 10px;
}

/* Integration Info Card */
.integration-info-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
}

.integration-info-card h6 {
  color: white;
  font-weight: 600;
}

.integration-info-card li {
  font-size: 0.9rem;
}

/* Workflow Examples */
.accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 8px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-button {
  background: #f8f9fa;
  border: none;
  padding: 15px 20px;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background: #4A90E2;
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

.workflow-result {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 10px 15px;
  color: #155724;
}

/* API Examples */
.api-example {
  border-left: 4px solid #4A90E2;
  padding-left: 20px;
}

.api-example h5 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* FAQ Section */
.faq-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
}

.faq-question {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 10px;
}

.faq-answer {
  color: #5a6c7d;
  line-height: 1.6;
  margin: 0;
}

/* CTA Sections */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-section h3 {
  position: relative;
  z-index: 2;
}

.cta-buttons {
  position: relative;
  z-index: 2;
}

.integration-cta {
  border: 2px solid #4A90E2;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.1));
}

/* Related Resources */
.resource-card,
.related-page-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
}

.resource-card:hover,
.related-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.resource-icon i {
  font-size: 1.8rem;
  color: white;
}

.resource-card h5,
.related-page-card h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 10px;
}

.resource-link,
.related-link {
  color: #4A90E2;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.resource-link:hover,
.related-link:hover {
  color: #357ABD;
}

.read-more {
  color: #4A90E2;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .toc-sidebar {
    position: static !important;
    margin-bottom: 30px;
  }

  .stat-item {
    padding: 15px;
    text-align: center;
  }

  .benefit-item,
  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .benefit-icon,
  .feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
    align-self: center;
  }

  .hero-cta .btn {
    display: block;
    margin: 10px 0;
  }

  .cta-buttons .btn {
    display: block;
    margin: 10px 0;
  }

  .stat-number,
  .stat-value {
    font-size: 2rem;
  }

  .integration-illustration {
    padding: 40px;
  }

  .integration-illustration i {
    font-size: 5rem;
  }
}

/* Dark mode removed — app does not support dark mode */