/* profile.css */

.profile-main {
  flex: 1;
  padding: 2rem 1rem;
  text-align: center;
  background-color: var(--bg-body, #f5f7fa);
  color: var(--text-color, #333);
  min-height: calc(100vh - 200px); /* Ensure footer stays at bottom */
  transition: all 0.3s ease;
}

.profile-main h2 {
  color: var(--main-title-color, #0d47a1);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.profile-main h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--main-title-color, #0d47a1);
}

.profile-card {
  background-color: var(--card-bg, #ffffff);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid var(--card-border, #e1e5eb);
}

[data-theme="dark"] .profile-card {
  --card-bg: #1e1e1e;
  --card-border: #333;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.profile-card p {
  margin: 1.2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color, #e1e5eb);
}

.profile-card p:last-child {
  border-bottom: none;
}

.profile-card strong {
  color: var(--main-title-color, #0d47a1);
  font-weight: 600;
  min-width: 140px;
  display: inline-block;
}

#linkedin {
  color: var(--link-color, #0a66c2);
  text-decoration: none;
  transition: color 0.2s;
}

#linkedin:hover {
  color: var(--link-hover, #004182);
  text-decoration: underline;
}

#editBtn {
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background-color: var(--main-title-color, #0d47a1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

#editBtn:hover {
  background-color: var(--button-hover, #004d40);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-main {
    padding: 1.5rem 0.5rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .profile-card p {
    font-size: 1rem;
    margin: 1rem 0;
  }

  .profile-main h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 1rem;
  }

  .profile-card p {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .profile-card strong {
    min-width: auto;
  }

  #editBtn {
    max-width: 100%;
    padding: 0.7rem;
  }
}
