/* ==========================================================================
   CSS STYLING SYSTEM - FIGMA CONCEPT LINK HUB
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
  --color-bg: #1A191F;
  --color-card: #2B2B35;
  --color-card-hover: #34333D;
  --color-text-primary: #E8E3F0;
  --color-text-secondary: #ADA9B5;
  --color-divider: rgba(232, 227, 240, 0.08);
  
  --font-title: 'Google Sans Flex', sans-serif;
  --font-body: 'Google Sans Flex', sans-serif;
  
  --radius-card: 24px;
  --radius-pill: 100px;
  --radius-avatar: 50%;
  
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  line-height: 1.4;
  overflow-x: hidden;
}

/* --- Container --- */
.hub-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Spacing between the three main blocks */
}

/* --- Profile Card (Top Block) --- */
.profile-card {
  background-color: var(--color-card);
  padding: 24px;
  border-radius: 38.88px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.profile-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar);
  overflow: hidden;
  background-color: #333;
}

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

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.profile-bio {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* --- Social Links Card (Middle Block) --- */
.links-card {
  display: flex;
  flex-direction: column;
  gap: 4px; /* 4px spacing between cards */
}

/* --- Individual Link Rows --- */
.link-row {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  background-color: var(--color-card);
  border-radius: 4.05px; /* Base border radius for inner corners */
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden; /* Clips the ripple effect */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* First card (YouTube) - top corners are 38.88px, bottom corners are 4.05px */
.link-row:first-child {
  border-radius: 38.88px 38.88px 4.05px 4.05px;
}

/* Last card (Discord) - top corners are 4.05px, bottom corners are 38.88px */
.link-row:last-child {
  border-radius: 4.05px 4.05px 38.88px 38.88px;
}

/* Hover State */
.link-row:hover {
  background-color: var(--color-card-hover);
}

/* Circular Icon Badge */
.link-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: #ffffff;
  transition: var(--transition-smooth);
}

/* Make sure SVGs inside match dimensions and color */
.link-icon-wrapper svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Link Text details */
.link-details {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.link-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.link-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* --- Footer Card (Bottom Block) --- */
.footer-card {
  background-color: var(--color-card);
  padding: 16px 24px;
  border-radius: var(--radius-pill); /* Pill shaped card */
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* --- Ink Ripple Effect --- */
.ripple-target {
  position: relative;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
  body {
    padding: 24px 16px;
  }
  
  .profile-card {
    padding: 20px;
    gap: 16px;
  }
  
  .profile-avatar {
    width: 48px;
    height: 48px;
  }
  
  .profile-name {
    font-size: 1.15rem;
  }
  
  .profile-bio {
    font-size: 0.85rem;
  }
  
  .link-row {
    padding: 16px 20px;
  }
  
  .link-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .link-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }
  
  .link-details {
    margin-left: 16px;
  }
  
  .link-title {
    font-size: 1.05rem;
  }
  
  .link-subtitle {
    font-size: 0.8rem;
  }
}
