/* ==========================================================================
   Lucas Hasse (@hasse_editor) — Bio Links Hub
   Design System: Apple Ultra-Premium Aesthetic & Dual-Theme Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Apple Color System
   -------------------------------------------------------------------------- */
:root {
  /* Apple Light Mode (Default) */
  --bg-page:         #FFFFFF;
  --bg-subtle:       #F5F5F7;
  --bg-secondary:    #E8E8ED;
  
  --text-primary:    #1D1D1F;
  --text-secondary:  #515154;
  --text-muted:      #86868B;
  --text-dimmed:     #A1A1A6;

  /* Frosted Glass & Surfaces */
  --card-bg:          rgba(255, 255, 255, 0.75);
  --card-bg-hover:    rgba(255, 255, 255, 0.95);
  --card-border:      rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(0, 0, 0, 0.12);
  --card-shadow:      0 2px 8px rgba(0, 0, 0, 0.02), 0 10px 24px -4px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.04), 0 18px 36px -6px rgba(0, 0, 0, 0.08);

  /* Discord Featured (Apple Tinted Frosted Glass) */
  --discord-card-bg:   linear-gradient(145deg, rgba(88, 101, 242, 0.06) 0%, rgba(245, 245, 247, 0.9) 100%);
  --discord-border:    rgba(88, 101, 242, 0.22);
  --discord-border-hover: rgba(88, 101, 242, 0.45);
  --discord-glow:      rgba(88, 101, 242, 0.12);
  --discord-tag-bg:    rgba(88, 101, 242, 0.10);
  --discord-tag-color: #4752C4;
  --discord-cta-bg:    #5865F2;
  --discord-cta-hover: #4752C4;

  /* Portfolio Featured (Apple Monochrome Frosted Glass) */
  --portfolio-card-bg:   linear-gradient(145deg, rgba(34, 35, 40, 0.04) 0%, rgba(245, 245, 247, 0.92) 100%);
  --portfolio-border:    rgba(0, 0, 0, 0.09);
  --portfolio-border-hover: rgba(29, 29, 31, 0.35);
  --portfolio-glow:      rgba(0, 0, 0, 0.06);
  --portfolio-tag-bg:    rgba(0, 0, 0, 0.06);
  --portfolio-tag-color: #1D1D1F;
  --portfolio-cta-bg:    #1D1D1F;
  --portfolio-cta-hover: #000000;
  --portfolio-cta-color: #FFFFFF;

  /* Ambient Glows */
  --ambient-1: rgba(166, 170, 193, 0.20);
  --ambient-2: rgba(88, 101, 242, 0.06);

  /* Status Online */
  --status-online:     #34C759;
  --status-online-glow: rgba(52, 199, 89, 0.4);

  /* Brand Accents */
  --brand-discord:   #5865F2;
  --brand-youtube:   #FF0033;
  --brand-instagram: #E1306C;
  --brand-tiktok:    #0284c7;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Manrope', 'Helvetica Neue', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Manrope', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Apple Curve Physics */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  
  /* Radii */
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 9999px;
}

[data-theme="dark"] {
  /* Apple Dark Mode (OLED Deep Studio) */
  --bg-page:         #000000;
  --bg-subtle:       #121215;
  --bg-secondary:    #1C1C1E;

  --text-primary:    #F5F5F7;
  --text-secondary:  #A1A1A6;
  --text-muted:      #86868B;
  --text-dimmed:     #48484A;

  /* Frosted Glass & Surfaces */
  --card-bg:          rgba(28, 28, 32, 0.65);
  --card-bg-hover:    rgba(38, 38, 44, 0.85);
  --card-border:      rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.20);
  --card-shadow:      0 4px 20px rgba(0, 0, 0, 0.5), 0 12px 32px -8px rgba(0, 0, 0, 0.7);
  --card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.6), 0 20px 48px -10px rgba(0, 0, 0, 0.85);

  /* Discord Featured */
  --discord-card-bg:   linear-gradient(145deg, rgba(88, 101, 242, 0.16) 0%, rgba(20, 20, 26, 0.9) 75%);
  --discord-border:    rgba(88, 101, 242, 0.35);
  --discord-border-hover: rgba(88, 101, 242, 0.70);
  --discord-glow:      rgba(88, 101, 242, 0.28);
  --discord-tag-bg:    rgba(88, 101, 242, 0.20);
  --discord-tag-color: #C7D2FE;
  --discord-cta-bg:    #5865F2;
  --discord-cta-hover: #4752C4;

  /* Portfolio Featured */
  --portfolio-card-bg:   linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(20, 20, 26, 0.92) 75%);
  --portfolio-border:    rgba(255, 255, 255, 0.12);
  --portfolio-border-hover: rgba(255, 255, 255, 0.35);
  --portfolio-glow:      rgba(255, 255, 255, 0.08);
  --portfolio-tag-bg:    rgba(255, 255, 255, 0.10);
  --portfolio-tag-color: #F5F5F7;
  --portfolio-cta-bg:    #F5F5F7;
  --portfolio-cta-hover: #FFFFFF;
  --portfolio-cta-color: #000000;

  /* Ambient Glows */
  --ambient-1: rgba(99, 102, 241, 0.12);
  --ambient-2: rgba(88, 101, 242, 0.08);

  --brand-tiktok: #00f2fe;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active a,
  body.custom-cursor-active button {
    cursor: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--brand-discord);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. Apple-Grade Interactive Cursor (Desktop)
   -------------------------------------------------------------------------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-primary);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-apple), height 0.2s var(--ease-apple), background-color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.2px solid rgba(134, 134, 139, 0.45);
  background-color: rgba(134, 134, 139, 0.06);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-apple), height 0.3s var(--ease-apple), border-color 0.25s ease, background-color 0.25s ease, opacity 0.3s ease;
  opacity: 0;
}

/* Estado Magnético de Hover */
.cursor-ring.cursor-hover {
  width: 50px;
  height: 50px;
  border-color: var(--text-primary);
  background-color: rgba(134, 134, 139, 0.14);
}

.cursor-dot.cursor-hover {
  width: 8px;
  height: 8px;
  background-color: var(--brand-discord);
}

/* Estado de Clique */
.cursor-ring.cursor-click {
  transform: translate(-50%, -50%) scale(0.8);
  border-color: var(--brand-discord);
}

@media (hover: none) or (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. Ambient Subtle Glow
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 120vw);
  height: 400px;
  background: radial-gradient(circle, var(--ambient-1) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: pulseAmbient 12s ease-in-out infinite alternate;
}

.ambient-glow-secondary {
  position: fixed;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(550px, 100vw);
  height: 350px;
  background: radial-gradient(circle, var(--ambient-2) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

@keyframes pulseAmbient {
  0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  100% { transform: translateX(-48%) scale(1.1); opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   5. Page Layout Container
   -------------------------------------------------------------------------- */
.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   6. Top Bar (Apple Pill Status, Theme Toggle & Share)
   -------------------------------------------------------------------------- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-online);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--status-online);
  opacity: 0.5;
  animation: pingDot 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

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

.action-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px) saturate(180%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s var(--ease-apple), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.action-btn:hover {
  background-color: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn .icon,
.action-btn .theme-icon {
  width: 17px;
  height: 17px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* --------------------------------------------------------------------------
   7. Profile Header (Apple Refined Typography & Geometry)
   -------------------------------------------------------------------------- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 4px;
}

.avatar-wrapper {
  position: relative;
  width: 98px;
  height: 98px;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(134, 134, 139, 0.4) 0%, rgba(29, 29, 31, 0.8) 100%);
  opacity: 0.45;
  animation: rotateRing 12s linear infinite;
}

[data-theme="dark"] .avatar-ring {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(88, 101, 242, 0.6) 100%);
  opacity: 0.6;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 3px solid var(--bg-page);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motion-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-page);
  color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.motion-badge svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-discord);
}

.verified-icon svg {
  width: 100%;
  height: 100%;
}

.profile-handle {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.profile-bio {
  font-size: 0.90rem;
  color: var(--text-secondary);
  max-width: 410px;
  line-height: 1.45;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. Dual Spotlight Grid (Portfólio Oficial + Discord VIP)
   -------------------------------------------------------------------------- */
.featured-section {
  width: 100%;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

.card-featured {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--r-xl);
  backdrop-filter: blur(24px) saturate(180%);
  overflow: hidden;
  transition: transform 0.35s var(--ease-apple), border-color 0.3s ease, box-shadow 0.35s var(--ease-apple);
}

/* Variação Portfólio */
.card-featured--portfolio {
  background: var(--portfolio-card-bg);
  border: 1px solid var(--portfolio-border);
  box-shadow: var(--card-shadow), 0 0 16px -4px var(--portfolio-glow);
}

.card-featured--portfolio:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: var(--portfolio-border-hover);
  box-shadow: var(--card-shadow-hover), 0 0 26px -2px var(--portfolio-glow);
}

/* Variação Discord */
.card-featured--discord {
  background: var(--discord-card-bg);
  border: 1px solid var(--discord-border);
  box-shadow: var(--card-shadow), 0 0 20px -4px var(--discord-glow);
}

.card-featured--discord:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: var(--discord-border-hover);
  box-shadow: var(--card-shadow-hover), 0 0 30px -2px var(--discord-glow);
}

.card-featured:active {
  transform: scale(0.985);
}

.featured-inner {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-portfolio {
  background: var(--portfolio-tag-bg);
  border: 1px solid var(--portfolio-border);
  color: var(--portfolio-tag-color);
}

.tag-discord {
  background: var(--discord-tag-bg);
  border: 1px solid var(--discord-border);
  color: var(--discord-tag-color);
}

.featured-logo-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-portfolio-box {
  color: var(--text-primary);
}

.icon-portfolio-box svg {
  width: 20px;
  height: 20px;
}

.discord-logo-box {
  color: var(--brand-discord);
}

.discord-logo-box svg {
  width: 22px;
  height: 22px;
}

.featured-body {
  flex: 1;
}

.featured-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}

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

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

.perks-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.perk-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

[data-theme="dark"] .perk-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.perk-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.perk-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.featured-footer {
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
  margin-top: auto;
}

.featured-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 11px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-apple);
}

.featured-cta--portfolio {
  color: var(--portfolio-cta-color, #FFFFFF);
  background: var(--portfolio-cta-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-featured:hover .featured-cta--portfolio {
  background: var(--portfolio-cta-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.featured-cta--discord {
  color: #ffffff;
  background: var(--discord-cta-bg);
  box-shadow: 0 3px 10px rgba(88, 101, 242, 0.25);
}

.card-featured:hover .featured-cta--discord {
  background: var(--discord-cta-hover);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.45);
}

.cta-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease-apple);
}

.card-featured:hover .cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 540px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .featured-inner {
    padding: 18px 16px;
  }
}

/* --------------------------------------------------------------------------
   9. Social & Hub Links (Apple Glassmorphism Cards)
   -------------------------------------------------------------------------- */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.section-label span {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--ease-apple), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-2.5px) scale(1.006);
  background-color: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.link-card:active {
  transform: scale(0.985);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-apple);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

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

/* Icon Variations */
.icon-portfolio {
  color: var(--text-primary);
  background: rgba(134, 134, 139, 0.1);
}

.icon-youtube {
  color: var(--brand-youtube);
  background: rgba(255, 0, 51, 0.08);
}

.icon-instagram {
  color: var(--brand-instagram);
  background: rgba(225, 48, 108, 0.08);
}

.icon-tiktok {
  color: var(--brand-tiktok);
  background: rgba(0, 242, 254, 0.08);
}

.icon-x {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.icon-email {
  color: var(--status-online);
  background: rgba(52, 199, 89, 0.08);
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(134, 134, 139, 0.12);
  border: 1px solid rgba(134, 134, 139, 0.2);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

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

.card-arrow {
  color: var(--text-dimmed);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-apple), color 0.25s ease;
}

.card-arrow svg {
  width: 16px;
  height: 16px;
}

.link-card:hover .card-arrow {
  transform: translateX(3px);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   10. Footer (Apple Minimalist)
   -------------------------------------------------------------------------- */
.page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
}

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

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

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-dimmed);
}

/* --------------------------------------------------------------------------
   11. Toast Notification (Apple Frosted Capsule)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  visibility: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border-hover);
  backdrop-filter: blur(28px) saturate(200%);
  color: var(--text-primary);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 999;
  transition: transform 0.4s var(--ease-apple), opacity 0.3s ease, visibility 0.3s ease;
}

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

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.toast-icon {
  width: 16px;
  height: 16px;
  color: var(--status-online);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Staggered Entrance Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-header, .featured-section, .link-card, .section-label, .page-footer {
  animation: fadeInSlide 0.55s var(--ease-apple) both;
}

.profile-header { animation-delay: 0.04s; }
.featured-section { animation-delay: 0.10s; }
.links-list .section-label:nth-of-type(1) { animation-delay: 0.16s; }
.links-list .link-card:nth-of-type(1) { animation-delay: 0.20s; }
.links-list .link-card:nth-of-type(2) { animation-delay: 0.24s; }
.links-list .link-card:nth-of-type(3) { animation-delay: 0.28s; }
.links-list .link-card:nth-of-type(4) { animation-delay: 0.32s; }
.links-list .link-card:nth-of-type(5) { animation-delay: 0.36s; }
.links-list .section-label:nth-of-type(2) { animation-delay: 0.40s; }
.links-list .link-card:nth-of-type(6) { animation-delay: 0.44s; }
.page-footer { animation-delay: 0.48s; }

/* --------------------------------------------------------------------------
   13. Responsive & Accessibility
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .page-container {
    padding: 16px 14px 44px;
    gap: 18px;
  }

  .featured-inner {
    padding: 18px 15px;
  }

  .link-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
  }

  .card-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
