/* ==========================================
   STUDENT PROFILE CARD - Article Sidebar
   ========================================== */

.student-profile-card {
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(201, 36, 43, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.student-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.student-profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color, #c9242b);
  box-shadow: 0 6px 20px rgba(201, 36, 43, 0.25);
}

.student-profile-name {
  text-align: center;
}

.student-profile-name h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color, #2d2d2d);
  margin: 0 0 4px 0;
}

.student-full-name {
  font-size: 0.9rem;
  color: var(--text-light, #666);
  margin: 0;
}

.student-profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.student-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.student-detail-item i {
  width: 20px;
  color: var(--primary-color, #c9242b);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.student-detail-item > div {
  display: flex;
  flex-direction: column;
}

.student-detail-item .detail-label {
  display: none;
}

.student-detail-item .detail-value {
  font-size: 0.9rem;
  color: var(--text-color, #2d2d2d);
  font-weight: 500;
  line-height: 1.4;
}

.student-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--primary-color, #c9242b) 0%,
    #e63946 100%
  );
  color: white;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(201, 36, 43, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.student-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 36, 43, 0.35);
}

.student-badge:active {
  transform: translateY(0);
}

.student-badge.liked {
  background: linear-gradient(135deg, #ff6b81 0%, #ff4757 100%);
}

.student-badge i {
  color: #fff;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.student-badge:hover i {
  animation: heartbeat 0.5s ease-in-out;
}

.student-badge.liked i {
  animation: none;
}

.student-badge .like-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  min-width: 20px;
}

.student-badge .like-count:empty {
  display: none;
}

.student-badge.like-pop {
  animation: likePop 0.3s ease;
}

@keyframes likePop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .student-profile-card {
    padding: 20px;
  }

  .student-profile-image {
    width: 100px;
    height: 100px;
  }

  .student-profile-name h3 {
    font-size: 1.2rem;
  }
}
