/* YalaBobo - Premium Global Profile System Stylesheet */

.profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  overflow-y: auto;
  height: 100%;
}

.profile-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(25px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.profile-cover {
  height: 250px;
  width: 100%;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.profile-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(10,15,30,0.85));
}

.profile-cover-upload {
  position: absolute;
  top: 15px;
  left: 15px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.profile-cover-upload:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px var(--primary);
  transform: translateY(-2px);
}

.profile-header-info {
  padding: 0 30px 30px 30px;
  margin-top: -70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
}

.profile-avatar-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #0d1526;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(0,0,0,0.4));
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-avatar-container:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.2);
}

.profile-avatar-container svg {
  width: 100%;
  height: 100%;
}

.profile-avatar-upload {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  padding: 6px 0;
  text-align: center;
  font-size: 11px;
  font-family: var(--font-tajawal);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
}

.profile-avatar-container:hover .profile-avatar-upload {
  opacity: 1;
}

/* Online Glow Status Ring */
.profile-status-ring {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 3px solid #0d1526;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
  z-index: 10;
  animation: pulseGlow 2.5s infinite;
}

.profile-status-ring.offline {
  background: #747d8c;
  box-shadow: none;
  animation: none;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.profile-name-section {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-display-name {
  font-family: var(--font-tajawal);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.verified-badge {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 2px 8px rgba(37,211,102,0.4));
}

.profile-username {
  font-family: var(--font-ibm);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.profile-status-text {
  font-family: var(--font-tajawal);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  background: rgba(37, 211, 102, 0.08);
  padding: 6px 18px;
  border-radius: 50px;
  margin-top: 12px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  width: 100%;
  max-width: 450px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.stat-value {
  font-weight: 800;
  font-size: 22px;
  font-family: var(--font-ibm);
  color: #fff;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-tajawal);
  font-weight: 600;
}

.profile-bio {
  font-family: var(--font-tajawal);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  max-width: 550px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 10px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  width: 100%;
  max-width: 380px;
  justify-content: center;
}

.profile-actions button {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  font-family: var(--font-tajawal);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.profile-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* Tab Navigation System */
.profile-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 5px;
}

.profile-tab-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-family: var(--font-tajawal);
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.profile-tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.profile-tab-btn.active {
  color: var(--primary);
}

.profile-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -2px 10px var(--primary);
}

/* Tab contents cards */
.tab-content-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: tabFadeIn 0.4s ease forwards;
}

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

/* Info Tab Details Grid */
.profile-meta-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  width: 100%;
}

.meta-detail-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.meta-detail-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.18);
}

.meta-detail-card svg {
  color: var(--primary);
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.3));
}

.meta-detail-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-detail-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-tajawal);
  font-weight: 600;
}

.meta-detail-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-tajawal);
}

/* 3D Avatar Tab Showcase */
.avatar-showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 20px;
}

.showcase-display {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 45px rgba(0,0,0,0.4);
  background: radial-gradient(circle at center, rgba(37, 211, 102, 0.05) 0%, transparent 70%);
}

.showcase-display svg {
  width: 100%;
  height: 100%;
}

.showcase-desc {
  font-family: var(--font-tajawal);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

/* Stories tab layout */
.stories-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
}

.profile-story-thumb {
  aspect-ratio: 9/16;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-story-thumb:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  border-color: var(--primary);
}

.profile-story-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

.profile-story-text-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-family: var(--font-tajawal);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  word-break: break-word;
}

.profile-story-time {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 5;
  font-family: var(--font-tajawal);
  font-weight: 600;
  text-align: right;
}

/* Global Follow list modal content */
.follower-list-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.follower-list-user-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.follower-list-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.follower-list-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.follower-list-avatar svg {
  width: 100%;
  height: 100%;
}

.follower-list-names {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.follower-list-displayname {
  font-family: var(--font-tajawal);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.follower-list-username {
  font-family: var(--font-ibm);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .profile-container {
    padding: 16px 12px;
  }
  .profile-cover {
    height: 180px;
  }
  .profile-header-info {
    padding: 0 15px 25px 15px;
    margin-top: -60px;
  }
  .profile-avatar-container {
    width: 120px;
    height: 120px;
  }
  .profile-display-name {
    font-size: 22px;
  }
  .profile-stats {
    gap: 10px;
    max-width: 100%;
  }
  .profile-actions {
    max-width: 100%;
    padding: 0 10px;
  }
  .profile-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .profile-meta-details {
    grid-template-columns: 1fr;
  }
}
