/**
 * User Profile Page Styles
 * Matches the registration form theme
 */

.user-profile-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Profile Header Card */
.profile-header-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  border: 2px solid rgba(1, 51, 160, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0133a0 0%, #015dd1 100%);
}

.profile-avatar {
  flex-shrink: 0;
}

.default-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #0133a0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.profile-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-header-info {
  flex: 1;
}

.profile-name {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.profile-email {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 12px 0;
}

.profile-roles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #0133a0;
  color: #ffffff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
}

/* Profile Details Card */
.profile-details-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.08);
  border: 1px solid rgba(1, 51, 160, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.profile-details-card:hover {
  box-shadow: 0 4px 16px rgba(1, 51, 160, 0.12);
  border-color: rgba(1, 51, 160, 0.25);
  transform: translateY(-2px);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 !important;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(1, 51, 160, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #0133a0 0%, #015dd1 100%);
}

.card-title svg {
  color: #0133a0;
  flex-shrink: 0;
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
  border-radius: 8px;
  border: 1px solid rgba(1, 51, 160, 0.1);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: #ffffff;
  border-color: rgba(1, 51, 160, 0.25);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.08);
}

.detail-item--full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 13px;
  font-weight: 600;
  color: #0133a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  word-break: break-word;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.status-active {
  background-color: #d1fae5;
  color: #065f46;
}

.status-blocked {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.profile-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #0133a0;
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: #0133a0;
  border: 2px solid #0133a0;
}

.btn-secondary:hover {
  /* Hover effect removed */
}

.profile-avatar {
  width: 100px;
  height: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-header-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .profile-name {
    font-size: 24px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-details-card {
    padding: 24px;
  }

  .card-title {
    font-size: 18px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .user-profile-section {
    padding: 20px 12px;
  }

  .profile-header-card {
    padding: 20px;
  }

  .default-avatar {
    width: 80px;
    height: 80px;
  }

  .default-avatar svg {
    width: 60px;
    height: 60px;
  }

  .profile-avatar img {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-details-card {
    padding: 20px;
  }
}

/* Animation */
.profile-header-card,
.profile-details-card {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Styles */
@media print {
  .profile-actions,
  .header {
    display: none;
  }

  .profile-header-card,
  .profile-details-card {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

