/* ==========================================================================
   ASTRALLINK - COMPACT LIQUID GLASS DIGITAL ID & LINKTREE
   ========================================================================== */

:root {
  /* Colors */
  --bg-deep: #05070c;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.48);

  /* Glass Row Styling (Glass on Rows Only) */
  --glass-row-bg: rgba(18, 20, 26, 0.62);
  --glass-row-hover: rgba(30, 34, 45, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.32);
  --glass-blur: blur(20px) saturate(190%);
  --glass-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65), 
                  0 0 1px 1px rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout Sizing (Compact for 1-Screen Mobile Fit) */
  --app-max-width: 440px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 14px 16px;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   GRADIENT WALLPAPER BACKGROUND
   ========================================================================== */
.wallpaper-bg {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to bottom, rgba(5, 7, 12, 0.45) 0%, rgba(5, 7, 12, 0.78) 100%),
    url('assets/gradient_bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   MAIN COMPACT CONTAINER
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: var(--app-max-width);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
}

/* ==========================================================================
   TOP ACTION GLASS BAR
   ========================================================================== */
.top-nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  background: rgba(18, 20, 26, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.glass-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER (TRANSPARENT, NO BIG CARD BACKGROUND)
   ========================================================================== */
.main-content {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ==========================================================================
   COMPACT PROFILE SECTION
   ========================================================================== */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

.avatar-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glass-rim {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.profile-avatar-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  background: #101014;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.avatar-wrapper:hover .profile-avatar-img {
  transform: scale(1.04);
  border-color: #ffffff;
}

.avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #08080c;
  color: #08080c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  z-index: 3;
}

.identity-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.profile-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.profile-handle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   COMPACT QUICK SOCIAL BAR (FULL-BLEED ROUND LOGOS)
   ========================================================================== */
.quick-social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--glass-row-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

.social-bubble {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-smooth);
}

.social-bubble .colorful-logo,
.social-bubble .round-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.22s ease;
}

.social-bubble:hover,
.social-bubble:active {
  transform: translateY(-2px) scale(1.12);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.social-bubble:hover .colorful-logo,
.social-bubble:hover .round-logo-img,
.social-bubble:active .colorful-logo,
.social-bubble:active .round-logo-img {
  transform: scale(1.06);
}

/* ==========================================================================
   FEATURED LINKS (GLASS ROWS ONLY)
   ========================================================================== */
.links-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* INDIVIDUAL GLASS LINK ROW */
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--glass-row-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

/* Diagonal liquid gloss sweep on individual row hover */
.link-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  transform: skewX(-20deg);
  transition: transform 0.45s ease;
  pointer-events: none;
}

/* HOVER EFFECT ON INDIVIDUAL ROW ONLY */
.link-row:hover {
  background: var(--glass-row-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 255, 255, 0.05);
}

.link-row:hover::before {
  transform: translateX(360%) skewX(-20deg);
}

/* Highlighted Portfolio Row */
.link-row.highlight-row {
  background: rgba(28, 32, 44, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
}

.link-row.highlight-row:hover {
  background: rgba(38, 44, 60, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* FULL-BLEED ROUND ICON BOX (NO EMPTY BORDERS, 100% CIRCULAR) */
.link-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.link-icon-box .colorful-logo,
.link-icon-box .round-logo-img,
.portfolio-avatar-icon {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

/* Alignments to ensure full-bleed circular clarity */
.link-icon-box img.logo-whatsapp,
.social-bubble img.logo-whatsapp {
  transform: scale(1.15);
  object-position: center 36%;
}

.link-row:hover .link-icon-box {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.link-row:hover .link-icon-box .colorful-logo,
.link-row:hover .link-icon-box .round-logo-img,
.link-row:hover .portfolio-avatar-icon {
  transform: scale(1.05);
}

.link-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-title-group {
  display: flex;
  align-items: center;
}

.link-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.link-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.link-row:hover .link-subtitle {
  color: var(--text-secondary);
}

.link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.link-row:hover .link-arrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

/* ==========================================================================
   COMPACT FOOTER
   ========================================================================== */
.card-footer {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.sparkle-icon {
  font-size: 0.65rem;
  color: #ffffff;
  opacity: 0.7;
}

/* ==========================================================================
   SHARE MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-glass-dialog {
  background: rgba(18, 20, 26, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-hover);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-glass-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.copy-url-group {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.copy-url-group input {
  flex: 1;
  background: #090a0e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  font-family: var(--font-body);
}

.liquid-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  color: #000000;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.liquid-btn-primary:hover {
  background: #e2e8f0;
}

.modal-social-shares {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-channel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.share-channel-btn:hover {
  transform: translateY(-2px) scale(1.08);
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.glass-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.glass-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #22c55e;
}

/* ==========================================================================
   MOBILE RESPONSIVE TWEAKS (PREVENT OVERFLOW ON ANY DEVICE)
   ========================================================================== */
@media (max-width: 400px) {
  .quick-social-bar {
    gap: 5px;
    padding: 5px 6px;
  }
  .social-bubble {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 350px) {
  .quick-social-bar {
    gap: 4px;
    padding: 4px 5px;
  }
  .social-bubble {
    width: 25px;
    height: 25px;
  }
}
