/* BOLO - Personality Page Styling */

.personality-profile {
  padding: 80px 0;
}

.personality-header {
  background: var(--gradient-primary);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.personality-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-dots.svg');
  opacity: 0.1;
  pointer-events: none;
}

.personality-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.personality-image {
  flex: 0 0 250px;
}

.personality-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.personality-info {
  flex: 1;
}

.personality-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.personality-title {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.personality-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.personality-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.personality-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.personality-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.personality-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.personality-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.personality-social-link:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Biography section */
.personality-biography {
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.biography-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

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

.biography-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Timeline section */
.timeline {
  position: relative;
  margin: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-end;
}

.timeline-item-content {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  width: calc(50% - 40px);
  padding: 1.5rem;
  position: relative;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.timeline-item-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.timeline-item-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  border: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-item-content::before {
  left: -10px;
  border-left: none;
  border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-item-content::before {
  right: -10px;
  border-right: none;
  border-top: none;
}

.timeline-item:nth-child(even) .timeline-item-content {
  margin-left: 40px;
}

.timeline-item:nth-child(odd) .timeline-item-content {
  margin-right: 40px;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-date {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.timeline-description {
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* Related articles */
.related-articles {
  margin-top: 5rem;
}

.related-articles-title {
  text-align: center;
  margin-bottom: 3rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  .personality-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .personality-image {
    flex: 0 0 auto;
  }
  
  .personality-stats {
    justify-content: center;
  }
  
  .personality-social {
    justify-content: center;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .section-title {
    text-align: center;
  }
  
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    justify-content: flex-start !important;
    flex-direction: column;
    margin-left: 30px;
  }
  
  .timeline-item-content {
    width: 100%;
    margin: 0 0 0 30px !important;
  }
  
  .timeline-item-content::before {
    left: -10px !important;
    border-left: none !important;
    border-bottom: none !important;
    right: auto !important;
    border-right: auto !important;
    border-top: auto !important;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  
  .personality-header {
    padding: 2rem;
  }
  
  .personality-image img {
    width: 200px;
    height: 200px;
  }
  
  .personality-name {
    font-size: 2rem;
  }
}