@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/* ==========================================================================
   HKRM.Labs LinkTree - Liquid Glassmorphism Design System (Refined)
   ========================================================================== */

:root {
  --font-primary: 'Sansation', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bg-image: url('https://i.pinimg.com/736x/8e/77/36/8e77368bff5c58b39fa3f2ed3c7a83fc.jpg');
  
  /* Liquid Frosted Glass (Realistic refraction, no harsh neon) */
  --liquid-glass-bg: rgba(255, 255, 255, 0.08);
  --liquid-glass-bg-hover: rgba(255, 255, 255, 0.14);
  --liquid-glass-bg-active: rgba(255, 255, 255, 0.18);
  
  --liquid-glass-border: rgba(255, 255, 255, 0.18);
  --liquid-glass-border-hover: rgba(255, 255, 255, 0.38);
  
  --liquid-glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
                         inset 0 1px 0 rgba(255, 255, 255, 0.28),
                         inset 0 -1px 0 rgba(255, 255, 255, 0.05);
                         
  --liquid-glass-shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.45),
                               inset 0 1px 0 rgba(255, 255, 255, 0.45),
                               inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  
  /* Text */
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.65);
  
  /* Radii */
  --radius-row: 18px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: var(--font-primary);
  color: var(--text-main);
  background-color: #0b0e1b;
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 56px;
  overflow-x: hidden;
}

/* ==========================================================================
   Background Layers (Aesthetic Pinterest Image + Subtle Lighting)
   ========================================================================== */

.background-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-image-layer {
  position: absolute;
  inset: -10px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.85) contrast(1.05);
}

.bg-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(13, 18, 43, 0.25) 0%, rgba(6, 9, 24, 0.85) 100%),
              linear-gradient(180deg, rgba(8, 12, 30, 0.15) 0%, rgba(5, 8, 20, 0.82) 100%);
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: 8%;
  left: 20%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(99, 102, 241, 0) 70%);
}

.orb-2 {
  width: 420px;
  height: 420px;
  bottom: 12%;
  right: 15%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
}

.orb-3 {
  width: 320px;
  height: 320px;
  top: 48%;
  left: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(168, 85, 247, 0) 70%);
}

/* ==========================================================================
   Main App Container
   ========================================================================== */

.app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ==========================================================================
   Profile Header (Single-Row Logo + Name)
   ========================================================================== */

.profile-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px 10px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Header Avatar (Circular Liquid Glass Badge) */
.avatar-container {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.4));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000000;
  display: block;
}

/* Brand Name Text */
.brand-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Liquid Glass Link Rows
   ========================================================================== */

.links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: var(--radius-row);
  background: var(--liquid-glass-bg);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--liquid-glass-border);
  box-shadow: var(--liquid-glass-shadow);
  text-decoration: none;
  color: var(--text-main);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  user-select: none;
}

/* Refined Specular Light Sheen */
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.link-card:hover::before {
  left: 160%;
}

.link-card:hover {
  background: var(--liquid-glass-bg-hover);
  border-color: var(--liquid-glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--liquid-glass-shadow-hover);
}

.link-card:active {
  background: var(--liquid-glass-bg-active);
  transform: translateY(0);
}

/* Link Card Content Layout */
.link-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

/* Circular Logo Icon Containers for All Rows */
.link-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease;
}

.link-icon-wrap svg {
  width: 22px;
  height: 22px;
  display: block;
}

.link-card:hover .link-icon-wrap {
  transform: scale(1.06);
}

/* Authentic circular brand backgrounds */
.link-icon-wrap.icon-website {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0;
}
.link-icon-wrap.icon-website svg {
  width: 100%;
  height: 100%;
}

.link-icon-wrap.icon-gmail {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  padding: 8px;
}
.link-icon-wrap.icon-gmail svg {
  width: 100%;
  height: 100%;
}

.link-icon-wrap.icon-linkedin {
  background: #0a66c2;
  border-color: rgba(255, 255, 255, 0.25);
}

.link-icon-wrap.icon-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: rgba(255, 255, 255, 0.25);
}

.link-icon-wrap.icon-threads {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.25);
  padding: 6px;
}
.link-icon-wrap.icon-threads img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.link-icon-wrap.icon-whatsapp {
  background: #25d366;
  border-color: rgba(255, 255, 255, 0.25);
}

.link-icon-wrap.icon-x {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.25);
}
.link-icon-wrap.icon-x svg {
  width: 18px;
  height: 18px;
}

.link-icon-wrap.icon-discord {
  background: #5865f2;
  border-color: rgba(255, 255, 255, 0.25);
}
.link-icon-wrap.icon-discord svg {
  width: 22px;
  height: 22px;
}

.link-icon-wrap.icon-github {
  background: #181c24;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Link Texts */
.link-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.link-title {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-subtitle {
  font-size: 0.80rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.link-card:hover .link-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Link Right Arrow */
.link-right {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition-smooth);
}

.link-arrow svg {
  width: 17px;
  height: 17px;
}

.link-card:hover .link-arrow {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer-section {
  position: relative;
  text-align: center;
  padding: 24px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer-copyright {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

.footer-company {
  font-size: 0.80rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 480px) {
  body {
    padding: 36px 12px 42px;
  }

  .avatar-container {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1.65rem;
  }

  .link-card {
    padding: 12px 16px;
    border-radius: 16px;
  }

  .link-icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .link-icon-wrap svg {
    width: 19px;
    height: 19px;
  }

  .link-title {
    font-size: 0.98rem;
  }
}
