/* profile.css */
@import url('shared.css');

.profile-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; padding: 28px 32px 64px; align-items: start; }
.profile-main { min-width: 0; }
.profile-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 16px; }

/* Cover Profile Header */
.profile-cover-card {
  background: linear-gradient(135deg, var(--cl-green-dark), #0f172a);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.profile-cover-banner {
  height: 220px;
  position: relative;
}
.profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(24, 226, 153, 0.15) 0%, transparent 50%);
}
.profile-header-content {
  padding: 12px 24px 20px;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: none;
}
.profile-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  margin-top: -96px; /* Overlap cover banner further up */
  z-index: 5;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px; /* Inner rounded square */
}
.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.profile-header-info {
  flex: 1;
  padding-top: 0;
  min-width: 0;
}
.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.profile-headline {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
  font-weight: 500;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Profile sections */
.profile-section { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.section-h2 { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.profile-bio { font-size: 14px; color: var(--gray-700); line-height: 1.7; }

/* Physical grid */
.physical-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.physical-item { background: var(--gray-50); border-radius: 8px; padding: 10px 12px; }
.phys-label { font-size: 11px; color: var(--gray-400); font-weight: 500; display: block; margin-bottom: 4px; }
.phys-value { font-size: 14px; font-weight: 600; color: var(--black); }

/* Skills */
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { padding: 5px 12px; border-radius: 9999px; background: var(--cl-green-light); color: var(--cl-green-dark); font-size: 13px; font-weight: 500; border: 1px solid #9FE1CB; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.gallery-item { background: var(--gray-50); border: 1px solid var(--border); border-radius: 8px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, background .2s; }
.gallery-item:hover { border-color: var(--cl-green); background: var(--cl-green-light); }
.video-item { border-style: dashed; }
.gallery-more { font-size: 14px; font-weight: 600; color: var(--gray-500); gap: 2px; }

/* Projects */
.project-list { display: flex; flex-direction: column; gap: 1px; }
.project-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.project-item:last-child { border-bottom: none; }
.project-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gray-50); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--gray-500); flex-shrink: 0; }
.project-info { flex: 1; }
.project-name { font-size: 14px; font-weight: 600; color: var(--black); }
.project-meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.project-year { font-size: 13px; color: var(--gray-400); flex-shrink: 0; }

/* Sidebar cards */
.contact-box { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); }
.contact-box-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 16px; }
.contact-lock-body { text-align: center; padding: 16px 0; }
.lock-icon-wrap { width: 48px; height: 48px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--gray-400); }
.lock-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

.meta-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); }
.meta-card-title { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 14px; }
.meta-list { display: flex; flex-direction: column; gap: 10px; }
.meta-item { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.meta-label { color: var(--gray-500); }
.meta-value { font-weight: 500; color: var(--black); }

.award-list { display: flex; flex-direction: column; gap: 10px; }
.award-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--black); line-height: 1.4; }

/* Lightbox Premium Slider */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay[hidden] {
  display: none !important;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: all 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.lightbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
}
.lightbox-main-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60vh;
  gap: 20px;
}
.lightbox-image-container {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: opacity 0.2s ease-in-out;
}
.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lightbox-nav-btn:hover {
  background: var(--cl-green);
  color: var(--cl-green-dark);
  border-color: var(--cl-green);
  transform: scale(1.05);
}
.lightbox-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
  border-color: transparent;
}
/* Thumbnails Slider */
.lightbox-thumbs-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.lightbox-thumbs-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.lightbox-thumbs-track {
  display: flex;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-thumb-item {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lightbox-thumb-item:hover {
  opacity: 0.8;
}
.lightbox-thumb-item.active {
  opacity: 1;
  border-color: var(--cl-green);
  transform: scale(1.05);
}
.lightbox-thumb-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.lightbox-thumb-btn:hover:not(:disabled) {
  color: var(--white);
}
.lightbox-thumb-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

@media(max-width:768px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .physical-grid { grid-template-columns: 1fr 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4,1fr); }
  .lightbox-main-area { height: 50vh; }
  .lightbox-nav-btn { width: 40px; height: 40px; }
  .profile-cover-banner { height: 140px; }
  .profile-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 36px; /* Added padding to accommodate the centered avatar */
    padding-bottom: 16px;
    gap: 16px;
  }
  .profile-avatar-wrap {
    margin-top: -96px;
  }
  .profile-header-info {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .profile-badges {
    justify-content: center;
  }
}

/* Restricted Blur Container & Overlay Card */
.restricted-blur-container {
  position: relative;
}
.restricted-blur-container.is-blurred > *:not(.blur-overlay-card) {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
  opacity: 0.45;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.blur-overlay-card {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 460px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  z-index: 20;
}
.blur-overlay-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cl-green-light);
  color: var(--cl-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 10px rgba(29, 158, 117, 0.1);
}
.blur-overlay-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.blur-overlay-card p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
}
.blur-overlay-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
