/* ai-voice-assistant.css - Custom styles for the AI Voice Assistant article */

/* Article Hero Section */
.article-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #6c757d;
}

.breadcrumb a {
  color: #0d6efd;
  text-decoration: none;
}

.breadcrumb span {
  color: #495057;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-category {
  display: inline-block;
  background-color: #0d6efd;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.article-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #212529;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background-color: #e9ecef;
  color: #495057;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* Article Content */
.article-content {
  padding: 2rem 0;
}

.content-wrapper {
  display: flex;
  gap: 3rem;
}

.main-content {
  flex: 2;
}

.sidebar {
  flex: 1;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Quick Navigation */
.quick-nav {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.quick-nav h3 {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  color: #495057;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  color: #0d6efd;
}

.nav-card i {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  color: #0d6efd;
}

.nav-card span {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Content Sections */
.content-section {
  margin-bottom: 3.5rem;
}

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #212529;
}

.content-section h2 i {
  color: #0d6efd;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.8rem;
  color: #0d6efd;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #212529;
}

.feature-card ul {
  padding-left: 1.2rem;
}

.feature-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #495057;
}

/* Process Steps */
.process-steps {
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
}

.step:not(:last-child):after {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: -20px;
  width: 2px;
  background-color: #e9ecef;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0d6efd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-content {
  padding-top: 0.7rem;
}

.step-content h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.step-content p {
  color: #495057;
  line-height: 1.6;
}

.process-visual {
  text-align: center;
  margin: 2rem 0;
}

.process-visual img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.advantage-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
}

.advantage-card i {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 1rem;
}

.advantage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #212529;
}

.advantage-card p {
  color: #495057;
  line-height: 1.5;
}

/* Stats Comparison */
.stats-comparison {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
}

.stats-comparison h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-chart {
  margin-bottom: 1.5rem;
}

.metric {
  margin-bottom: 1.2rem;
}

.metric-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.bar-container {
  height: 30px;
  background-color: #e9ecef;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.bar {
  height: 100%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  position: absolute;
  top: 0;
}

.ai-bar {
  background-color: #0d6efd;
  left: 0;
}

.human-bar {
  background-color: #6c757d;
  right: 0;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.legend-ai i {
  color: #0d6efd;
}

.legend-human i {
  color: #6c757d;
}

/* Use Cases Tabs */
.use-cases-tabs {
  margin-bottom: 2rem;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.8rem 1.5rem;
  background-color: #e9ecef;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: #dee2e6;
}

.tab-button.active {
  background-color: #0d6efd;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.use-case-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.use-case-text {
  flex: 1;
}

.use-case-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.use-case-text h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.use-case-text ul {
  padding-left: 1.2rem;
}

.use-case-text li {
  margin-bottom: 0.7rem;
  line-height: 1.5;
  color: #495057;
}

/* Integration Grid */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.integration-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.integration-card:hover {
  transform: translateY(-5px);
}

.integration-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.integration-icon i {
  font-size: 1.8rem;
  color: #0d6efd;
}

.integration-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #212529;
}

.integration-card ul {
  padding-left: 1.2rem;
}

.integration-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #495057;
}

/* FAQ Section */
.faq-container {
  margin-top: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid #e9ecef;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  color: #212529;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: 1.5rem;
  display: none;
}

.faq-answer p {
  color: #495057;
  line-height: 1.6;
}

/* Conclusion Section */
.conclusion-section {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.conclusion-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.conclusion-section p {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.cta-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cta-box h3 {
  margin-bottom: 1rem;
  color: #212529;
}

.cta-box p {
  margin-bottom: 1.5rem;
  color: #495057;
}

.btn-primary {
  display: inline-block;
  background-color: #0d6efd;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px);
}

.search-prompts {
  margin-top: 2rem;
}

.search-prompts h4 {
  margin-bottom: 1rem;
  text-align: center;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.prompt-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-family: monospace;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.article-footer {
  border-top: 1px solid #e9ecef;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.tags-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tags-label {
  font-weight: 500;
  color: #495057;
}

/* Sidebar Styles */
.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  color: #212529;
}

.author-bio {
  text-align: center;
}

.author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

.author-bio p {
  color: #495057;
  line-height: 1.6;
  font-size: 0.95rem;
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-article {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #212529;
  transition: all 0.3s ease;
}

.related-article:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

.related-article h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.read-time {
  font-size: 0.8rem;
  color: #6c757d;
}

.social-share {
  display: flex;
  gap: 0.7rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.linkedin { background-color: #0077b5; }
.whatsapp { background-color: #25d366; }
.link { background-color: #6c757d; }

.subscribe-form p {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.subscribe-form form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.subscribe-form input {
  padding: 0.8rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
}

.subscribe-form button {
  padding: 0.8rem;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background-color: #0b5ed7;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .feature-grid,
  .advantages-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .use-case-content {
    flex-direction: column;
  }
  
  .prompt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-hero h1 {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
  
  .comparison-chart .bar {
    font-size: 0.7rem;
    padding: 0 8px;
  }
  
  .legend {
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .article-hero h1 {
    font-size: 1.7rem;
  }
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .step {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-number {
    margin-bottom: 1rem;
  }
  
  .step:not(:last-child):after {
    left: 30px;
    top: 60px;
    bottom: -20px;
  }
  
  .conclusion-section,
  .cta-box,
  .sidebar-widget {
    padding: 1.2rem;
  }
}

/* Additional styles for article interactions */
.print-article-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #004e64;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin: 2rem 0;
  transition: background 0.3s ease;
}

.print-article-btn:hover {
  background: #003d4f;
}

.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.code-header {
  position: relative;
}

.code-header:hover .copy-code-btn {
  opacity: 1;
}

.table-of-contents {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin-top: 0;
  color: #2c3e50;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
  padding-left: 0;
}

.table-of-contents li.h3 {
  padding-left: 20px;
  font-size: 0.9em;
}

.table-of-contents a {
  color: #3498db;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10000;
}

.reading-progress-fill {
  height: 100%;
  background: #3498db;
  width: 0%;
  transition: width 0.2s ease;
}

.quick-nav-grid a.active {
  background: #3498db;
  color: white;
}

.quick-nav-grid a.active i {
  color: white;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .sidebar,
  .quick-nav,
  .print-article-btn,
  .reading-progress,
  .code-header,
  .table-of-contents,
  .cta-box,
  .search-prompts {
    display: none !important;
  }
  
  .article-content {
    width: 100%;
    max-width: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  h1, h2, h3, h4 {
    color: #000;
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    font-weight: normal;
  }
}