/* ==========================================================================
   KREATIVLABS — LINK HUB
   Design System: Clean, Minimal, Light Mode Only
   Refined Bootstrap Icons & Authentic Brand Visuals
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f8fafb;
  --bg-card: #ffffff;
  --bg-card-hover: #fafcfd;

  --text-primary: #2f4e60;       /* KreativLabs Signature Slate */
  --text-secondary: #5a7384;
  --text-muted: #8ca2af;

  --border-color: #e2e8f0;
  --border-hover: #6995ad;       /* KreativLabs Accent Blue */

  --primary-btn-bg: #2f4e60;
  --primary-btn-text: #ffffff;
  --primary-btn-hover: #223744;

  --shadow-sm: 0 1px 2px rgba(47, 78, 96, 0.04);
  --shadow-hover: 0 8px 18px -2px rgba(47, 78, 96, 0.08);
  --shadow-primary-hover: 0 8px 20px -3px rgba(47, 78, 96, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. BASE & RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.25rem 3.5rem 1.25rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   3. LAYOUT CONTAINER
   -------------------------------------------------------------------------- */
.hub-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   4. TOP BAR (Minimal Share)
   -------------------------------------------------------------------------- */
.top-bar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.share-btn i {
  font-size: 0.825rem;
}

.share-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.share-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. PROFILE HEADER
   -------------------------------------------------------------------------- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 0.25rem;
}

.avatar-box {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 6px);
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.25;
}

.verified-badge {
  color: #3b82f6;
  font-size: 1.15rem;
}

.brand-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 360px;
  margin-top: 0.4rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   6. LINK CARDS (Refined, Clean & Balanced)
   -------------------------------------------------------------------------- */
.links-section {
  width: 100%;
}

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

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 1.15rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}

.link-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.link-icon {
  font-size: 1.2rem;
  color: var(--text-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.link-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}

.link-arrow {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: all var(--transition);
}

/* Hover States */
.link-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.link-card:hover .link-title {
  color: var(--border-hover);
}

.link-card:hover .link-arrow {
  color: var(--border-hover);
  transform: translate(2px, -2px);
}

.link-card:active {
  transform: translateY(0);
}

/* Primary Highlight Link (WhatsApp) */
.link-card.is-primary {
  background-color: var(--primary-btn-bg);
  border-color: var(--primary-btn-bg);
  color: var(--primary-btn-text);
}

.link-card.is-primary .link-icon {
  color: #25d366; /* Authentic WhatsApp Emerald */
}

.link-card.is-primary .link-title {
  color: #ffffff;
}

.link-card.is-primary .link-arrow {
  color: rgba(255, 255, 255, 0.6);
}

.link-card.is-primary:hover {
  background-color: var(--primary-btn-hover);
  border-color: var(--primary-btn-hover);
  box-shadow: var(--shadow-primary-hover);
}

.link-card.is-primary:hover .link-title {
  color: #ffffff;
}

.link-card.is-primary:hover .link-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   7. SOCIAL MEDIA ROW
   -------------------------------------------------------------------------- */
.socials-section {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.socials-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.social-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.social-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.hub-footer {
  text-align: center;
  margin-top: 0.5rem;
}

.footer-line {
  width: 36px;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 auto 1rem auto;
  border-radius: var(--radius-full);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-copy strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   9. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-box {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--primary-btn-bg);
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 10px 25px -4px rgba(47, 78, 96, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}

.toast-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-box i {
  color: #00bb7f;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   10. MOBILE FINE-TUNING
   -------------------------------------------------------------------------- */
@media (max-width: 440px) {
  body {
    padding: 1.5rem 1rem 3rem 1rem;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-tagline {
    font-size: 0.825rem;
  }

  .link-card {
    padding: 0.85rem 1rem;
  }

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

  .social-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
}
