/* AI Animal Communication Article Styles */
.animal-ai-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.animal-ai-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pet-communication-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.animal-container, .human-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.pet-avatar {
  position: relative;
  width: 120px;
  height: 120px;
}

.pet-avatar.dog {
  background: #8B4513;
  border-radius: 50% 50% 40% 40%;
  position: relative;
}

.pet-ears {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  background: #8B4513;
  border-radius: 50%;
}

.pet-face {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 60px;
}

.pet-eyes {
  position: absolute;
  top: 15px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.pet-eyes::before,
.pet-eyes::after {
  content: '';
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
}

.pet-nose {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 15px;
  background: black;
  border-radius: 50%;
}

.human-avatar {
  width: 100px;
  height: 100px;
  background: #FFD700;
  border-radius: 50%;
  position: relative;
}

.human-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 40px;
}

.human-eyes {
  position: absolute;
  top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.human-eyes::before,
.human-eyes::after {
  content: '';
  width: 8px;
  height: 8px;
  background: black;
  border-radius: 50%;
}

.human-mouth {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 5px;
  background: black;
  border-radius: 10px;
}

.speech-bubble {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: float 3s ease-in-out infinite;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.human-bubble {
  top: -40px;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.ai-bridge {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-processor {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 50%;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: pulse 2s infinite;
}

.ai-processor i {
  font-size: 24px;
  margin-bottom: 5px;
  display: block;
}

.ai-processor span {
  font-size: 10px;
  font-weight: 500;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.article-category {
  display: inline-block;
  background: linear-gradient(90deg, #667eea, #764ba2);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  font-size: 14px;
  opacity: 0.9;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.quick-nav {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-nav h3 {
  margin-top: 0;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.nav-card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  color: #2d3436;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: #667eea;
}

.nav-card i {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.nav-card span {
  font-weight: 600;
  font-size: 14px;
}

.content-section {
  margin: 60px 0;
}

.content-section h2 {
  color: #2d3436;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-section h2 i {
  color: #667eea;
}

.current-apps-showcase {
  margin: 30px 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.app-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.app-card:hover {
  transform: translateY(-5px);
}

.app-icon {
  width: 60px;
  height: 60px;
  background: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #667eea;
  font-size: 24px;
}

.app-accuracy {
  background: #e8f4f8;
  color: #667eea;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  display: inline-block;
}

.research-projects {
  margin: 40px 0;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.project-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-header h4 {
  margin: 0;
  color: #2d3436;
}

.project-status {
  background: #667eea;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.project-animal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #636e72;
  font-size: 14px;
}

.key-insight {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  border-left: 4px solid #667eea;
}

.key-insight h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: #2d3436;
}

.translation-examples {
  margin: 30px 0;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.example-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
}

.animal-sound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.animal-sound i {
  font-size: 24px;
  color: #667eea;
}

.translation-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.emotion-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.emotion-indicator.stress {
  background: #e74c3c;
}

.emotion-indicator.social {
  background: #3498db;
}

.emotion-indicator.alert {
  background: #f39c12;
}

.emotional-analysis {
  margin: 40px 0;
}

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.emotion-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.emotion-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.emotion-icon.happy {
  background: #e8f6f3;
  color: #2ecc71;
}

.emotion-icon.stress {
  background: #fdedec;
  color: #e74c3c;
}

.emotion-icon.alert {
  background: #fef9e7;
  color: #f39c12;
}

.emotion-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.emotion-card li {
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
}

.emotion-card li:last-child {
  border-bottom: none;
}

.tech-limitation {
  background: #fff8e1;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  border-left: 4px solid #ffc107;
}

.tech-limitation h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: #2d3436;
}

.scenario-demo {
  margin: 40px 0;
}

.scenario-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.scenario-step {
  display: flex;
  gap: 20px;
}

.step-time {
  flex: 0 0 100px;
  background: #667eea;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  height: fit-content;
}

.step-content {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pet-message, .human-action {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-avatar.pet {
  background: #8B4513;
  color: white;
}

.message-avatar.human {
  background: #667eea;
  color: white;
}

.message-content {
  flex: 1;
}

.message-time {
  font-size: 12px;
  color: #636e72;
  margin-top: 5px;
  display: block;
}

.ai-suggestion {
  background: #e8f4f8;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667eea;
  font-size: 14px;
}

.translate-button {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.translate-button:hover {
  background: #5a6fd8;
}

.pet-response {
  margin-top: 15px;
}

.response-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2ecc71;
  font-size: 14px;
}

.future-insight {
  margin: 40px 0;
}

.communication-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.flow-step {
  background: white;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.flow-step::after {
  content: '→';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-size: 20px;
  font-weight: bold;
}

.flow-step:last-child::after {
  display: none;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 600;
}

.breakthrough-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.breakthrough-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.breakthrough-icon {
  width: 60px;
  height: 60px;
  background: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #667eea;
  font-size: 24px;
}

.data-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.data-tag {
  background: #e8f4f8;
  color: #667eea;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.data-requirements, .ethical-principles {
  margin-top: 20px;
}

.requirement, .principle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.requirement i {
  color: #667eea;
  margin-top: 2px;
}

.principle h4 {
  margin: 0 0 5px 0;
  color: #2d3436;
}

.principle p {
  margin: 0;
  color: #636e72;
  font-size: 14px;
}

.development-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.timeline-phase {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.timeline-phase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.timeline-phase:nth-child(1)::before {
  background: linear-gradient(90deg, #e74c3c, #e67e22);
}

.timeline-phase:nth-child(2)::before {
  background: linear-gradient(90deg, #3498db, #2ecc71);
}

.timeline-phase:nth-child(3)::before {
  background: linear-gradient(90deg, #9b59b6, #667eea);
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.phase-header h3 {
  margin: 0;
  color: #2d3436;
}

.phase-tag {
  background: #f8f9fa;
  color: #636e72;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.phase-developments {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.development-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.development-item i {
  color: #667eea;
  margin-top: 2px;
  flex-shrink: 0;
}

.impact-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.impact-sector {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sector-icon {
  width: 60px;
  height: 60px;
  background: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #667eea;
  font-size: 24px;
}

.sector-benefits {
  margin-top: 20px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.benefit i {
  color: #667eea;
}

.final-insight {
  margin: 40px 0;
}

.insight-quote {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

.insight-quote i:first-child {
  font-size: 32px;
  color: #667eea;
  margin-bottom: 16px;
  display: block;
}

.insight-quote p {
  font-size: 18px;
  font-style: italic;
  color: #2d3436;
  margin-bottom: 16px;
}

.quote-author {
  color: #667eea;
  font-weight: 600;
}

.future-vision {
  margin: 40px 0;
}

.vision-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.vision-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.vision-icon {
  width: 60px;
  height: 60px;
  background: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #667eea;
  font-size: 24px;
}

.cta-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #dee2e6;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.tags-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tags-label {
  font-weight: 600;
  color: #2d3436;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  font-weight: 600;
  color: #2d3436;
}

.social-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-share:hover {
  transform: scale(1.1);
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25d366; }

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  
  .pet-communication-visual {
    margin-top: 30px;
  }
  
  .scenario-step {
    flex-direction: column;
  }
  
  .step-time {
    align-self: flex-start;
  }
  
  .communication-flow {
    grid-template-columns: 1fr;
  }
  
  .flow-step::after {
    display: none;
  }
  
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .share-buttons {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app-grid {
    grid-template-columns: 1fr;
  }
  
  .project-cards {
    grid-template-columns: 1fr;
  }
  
  .example-grid {
    grid-template-columns: 1fr;
  }
  
  .breakthrough-areas {
    grid-template-columns: 1fr;
  }
  
  .development-timeline {
    grid-template-columns: 1fr;
  }
  
  .impact-areas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .emotion-grid {
    grid-template-columns: 1fr;
  }
  
  .vision-points {
    grid-template-columns: 1fr;
  }
  
  .pet-communication-visual {
    flex-direction: column;
    gap: 20px;
  }
  
  .ai-bridge {
    transform: rotate(90deg);
  }
}