/* =========================
   COLOR SYSTEM
   ========================= */

:root {
  --black: #000000ff;
  --midnight-violet: #291528ff;
  --charcoal-brown: #3a3e3bff;
  --ghost-white: #f0eff4ff;
  --dusty-mauve: #9e829cff;

  --deep-blue: var(--midnight-violet);
  --vibrant-orange: var(--dusty-mauve);
  --text-light: var(--ghost-white);

  --bg-light: linear-gradient(
    135deg,
    #000000ff 0%,
    #291528ff 30%,
    #3a3e3bff 60%,
    #9e829cff 85%,
    #f0eff4ff 100%
  );

  --glass-bg: rgba(58, 62, 59, 0.15);
  --glass-border: rgba(240, 239, 244, 0.22);
}

/* =========================
   DARK MODE
   ========================= */

body.dark {
  --bg-light: linear-gradient(
    135deg,
    #050507 0%,
    #0d0f16 25%,
    #141824 55%,
    #1c1f2b 78%,
    #26212d 100%
  );

  --glass-bg: rgba(8, 10, 14, 0.42);
  --glass-border: rgba(240, 239, 244, 0.14);
  --text-light: #f8f7fb;
}

/* =========================
   BASE
   ========================= */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--text-light);
  transition: background 0.7s ease;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 5.4rem 1rem 1rem;
  box-sizing: border-box;
}

/* =========================
   TOP BAR
   ========================= */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0;
  box-sizing: border-box;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  margin: 0;
}

.credential-header {
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

/* =========================
   PROFILE CARD
   ========================= */

.profile-card {
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 2.2rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.95);
}

/* =========================
   PROFILE IMAGE
   ========================= */

.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  border: 4px solid rgba(240, 239, 244, 0.45);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
}

/* =========================
   PROFILE INFO
   ========================= */

.profile-info h2 {
  margin: 0;
  font-size: 1.5rem;
}

.sub-name {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.profile-info h4 {
  margin: 0.6rem 0 1rem;
  color: var(--dusty-mauve);
  font-weight: 500;
}

.bio {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* =========================
   SOCIAL LINKS
   ========================= */

.social-links {
  margin: 1.6rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  font-size: 1.7rem;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.75));
}

/* =========================
   TOOLTIP
   ========================= */

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 160%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(0, 0, 0, 0.95);
  color: var(--ghost-white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.25s ease;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   BUTTON
   ========================= */

.follow-btn {
  margin-top: 1rem;
  background: linear-gradient(
    135deg,
    #291528ff,
    #3a3e3bff,
    #9e829cff
  );
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  color: var(--ghost-white);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.follow-btn:hover {
  transform: scale(1.06);
}

.following {
  background: linear-gradient(
    135deg,
    #9e829cff,
    #291528ff,
    #000000ff
  );
}

/* =========================
   THEME TOGGLE
   ========================= */

.theme-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  min-width: 44px;
  min-height: 34px;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-light);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .top-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    z-index: 120 !important;
    pointer-events: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .credential-header {
    position: absolute !important;
    top: 14px !important;
    left: calc(50% + 6px) !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    width: 252px !important;
    min-width: 252px !important;
    max-width: 252px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.5rem !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    text-align: center !important;
    z-index: 121 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  .container {
    padding: 4.9rem 1rem 1rem !important;
    align-items: flex-start !important;
  }

  #themeToggle,
  .theme-btn {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    z-index: 122 !important;
    pointer-events: auto !important;
    width: auto !important;
    min-width: 44px !important;
    max-width: none !important;
    height: auto !important;
    min-height: 34px !important;
    max-height: none !important;
    padding: 0.4rem 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.profile-info h4{
  font-weight: 700 !important;
}
