/* 
 * Insights Section Styles - Bixing Technology
 * Modern, sleek AI-themed insights cards
 */

.insights-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--insights-bg);
  background-image: 
    linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, transparent 50%),
    linear-gradient(45deg, rgba(0, 194, 255, 0.02) 0%, transparent 50%);
  overflow: hidden;
}

.insights-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230066FF' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 20px 20px;
  opacity: 0.4;
  z-index: 0;
}

.insights-section .container {
  position: relative;
  z-index: 1;
}

.insight-card {
  position: relative;
  border-radius: var(--radius-md);
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
}

.insight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.insight-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.insight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.insight-card:hover .insight-img img {
  transform: scale(1.1);
}

.insight-date, .insight-category {
  position: absolute;
  top: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  z-index: 2;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  height: auto;
  box-sizing: content-box;
}

.insight-date {
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
}

.insight-category {
  right: 10px;
  background: var(--gradient-blue);
  color: var(--white);
}

.insight-content {
  padding: 25px;
}

.insight-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--white);
  transition: color var(--transition-normal);
}

.insight-card:hover .insight-content h3 {
  color: var(--primary-color);
}

.insight-content p {
  color: var(--text-medium);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: transform var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-light);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* AI-themed overlay */
.insight-ai-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 102, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.insight-card:hover .insight-ai-overlay {
  opacity: 0.2;
}

/* AI-themed elements */
.insight-ai-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm56-76c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.3;
  z-index: 0;
}

/* Insights Hero Section */
.insights-hero-section {
  position: relative;
  padding: 100px 0 80px; /* Increased top padding to account for fixed header */
  background: var(--dark-bg);
  color: var(--white);
  overflow: hidden;
}

.insights-hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.insights-hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .insights-hero-section {
    padding: 80px 0 60px;
  }
}

@media (max-width: 768px) {
  .insights-hero-section {
    padding: 70px 0 50px;
  }
}

/* Reading time indicator */
.insight-reading-time {
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.insight-reading-time i {
  margin-right: 5px;
  color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 992px) {
  .insights-section {
    padding: 80px 0;
  }
  
  .insight-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .insights-section {
    padding: 60px 0;
  }
  
  .insight-img {
    height: 180px;
  }
}

.tag-compact {
  padding: 1px 5px;
  font-size: 9px;
  line-height: 1;
  border-radius: 8px;
  height: auto;
  display: inline-block;
  box-sizing: content-box;
}
