/* =======================================================
   BEBEPUPA - NATIONAL TIER D2C DESIGN
   Pure CSS, utilizing real brand assets & colors
   ======================================================= */

/* --- Variables --- */
:root {
  /* Brand Tokens extracted from bebepupa.com.br */
  --bg-primary: #fdf3c8;
  --bg-secondary: #e2e0db;
  --text-primary: #574c42;
  --text-secondary: #816d5b;
  --accent: #7f9f62;
  --accent-light: #cbe4b4;
  --white: #ffffff;
  
  /* Typography */
  --font-heading: 'Braah One', cursive;
  --font-body: 'Poppins', sans-serif;
  
  /* Structure */
  --container-width: 600px;
  --radius-lg: 50px; /* Pill shapes for cuteness */
  --radius-md: 24px;
  --radius-sm: 16px;
  
  /* Elevations (Subtle, Premium Shadows) */
  --shadow-sm: 0 4px 12px rgba(87, 76, 66, 0.05);
  --shadow-md: 0 12px 32px rgba(87, 76, 66, 0.08);
  --shadow-hover: 0 16px 40px rgba(127, 159, 98, 0.15);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar for PC */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  min-height: 100vh;
  /* Modern viewport height for mobile browsers (Safari/Chrome URL bar fix) */
  min-height: 100dvh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-primary); /* Fallback */
}

/* iOS safe fixed background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  background-image: -webkit-linear-gradient(rgba(253, 243, 200, 0.82), rgba(253, 243, 200, 0.95)), url('https://acdn-us.mitiendanube.com/stores/005/417/792/products/pupa-nov-25-36962-edit-efaecb2c7d1a04268417742915024020-1024-1024.webp');
  background-image: linear-gradient(rgba(253, 243, 200, 0.82), rgba(253, 243, 200, 0.95)), url('https://acdn-us.mitiendanube.com/stores/005/417/792/products/pupa-nov-25-36962-edit-efaecb2c7d1a04268417742915024020-1024-1024.webp');
  background-size: cover;
  background-position: center 20%;
  pointer-events: none;
}

/* Base fade-in animation for the entire page */
@-webkit-keyframes fadeIn {
  from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cute continuous animations (More Pronounced & Magical) */
@-webkit-keyframes breathe {
  0%, 100% { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); -webkit-box-shadow: 0 0 0 4px var(--accent-light), 0 0 15px rgba(127,159,98,0.2); box-shadow: 0 0 0 4px var(--accent-light), 0 0 15px rgba(127,159,98,0.2); }
  25% { -webkit-transform: scale(1.02) rotate(-2deg); transform: scale(1.02) rotate(-2deg); }
  50% { -webkit-transform: scale(1.05) rotate(0deg); transform: scale(1.05) rotate(0deg); -webkit-box-shadow: 0 0 0 8px rgba(127,159,98,0.4), 0 0 25px rgba(127,159,98,0.4); box-shadow: 0 0 0 8px rgba(127,159,98,0.4), 0 0 25px rgba(127,159,98,0.4); }
  75% { -webkit-transform: scale(1.02) rotate(2deg); transform: scale(1.02) rotate(2deg); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 4px var(--accent-light), 0 0 15px rgba(127,159,98,0.2); }
  25% { transform: scale(1.02) rotate(-2deg); }
  50% { transform: scale(1.05) rotate(0deg); box-shadow: 0 0 0 8px rgba(127,159,98,0.4), 0 0 25px rgba(127,159,98,0.4); }
  75% { transform: scale(1.02) rotate(2deg); }
}

@-webkit-keyframes floatText {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); text-shadow: 0 2px 4px rgba(87,76,66,0.1); }
  50% { -webkit-transform: translateY(-8px); transform: translateY(-8px); text-shadow: 0 12px 20px rgba(87,76,66,0.25); color: var(--accent); }
}
@keyframes floatText {
  0%, 100% { transform: translateY(0); text-shadow: 0 2px 4px rgba(87,76,66,0.1); }
  50% { transform: translateY(-8px); text-shadow: 0 12px 20px rgba(87,76,66,0.25); color: var(--accent); } /* Flashes green slightly when floating */
}

.page-container {
  width: 100%;
  max-width: var(--container-width);
  padding: 48px 24px 64px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 40px;
  -webkit-animation: fadeIn 0.8s var(--ease-out) forwards;
  animation: fadeIn 0.8s var(--ease-out) forwards;
}

/* --- Header / Profile --- */
.profile-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
}

.avatar-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
  margin-bottom: 24px;
  /* Beautiful soft glow instead of harsh borders */
  -webkit-box-shadow: 0 0 0 4px var(--accent-light), var(--shadow-md);
  box-shadow: 0 0 0 4px var(--accent-light), var(--shadow-md);
  overflow: hidden;
  position: relative;
  /* Breathing animation */
  -webkit-animation: breathe 6s ease-in-out infinite;
  animation: breathe 6s ease-in-out infinite;
}

.avatar-img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 400; /* Braah One looks best at 400 */
  text-shadow: 0 4px 12px rgba(253, 243, 200, 0.9); /* Soft cream halo */
  /* Gentle float animation */
  -webkit-animation: floatText 6s ease-in-out infinite;
  animation: floatText 6s ease-in-out infinite;
}

.brand-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 80%;
}

/* --- Social Navigation --- */
.social-nav {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--text-primary);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* --- Links Section --- */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Base Link Item */
.link-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-primary); /* Soft cream instead of strong green */
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 1;
}

.link-item > * {
  position: relative;
  z-index: 2;
}

.link-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.link-item:hover::before {
  opacity: 1;
}

/* Featured Link */
.link-item.featured {
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: flex-start;
}

.featured-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.link-item.featured:hover .featured-img {
  transform: scale(1.05);
}

.link-item.featured .link-content {
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-item.featured h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
}

.link-item.featured p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.link-item.featured .link-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}

.link-item.featured:hover .link-arrow {
  transform: translateX(4px);
}

/* Standard Links with Icons */
.link-item.standard-link {
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 24px 14px 14px;
}

.link-item.standard-link .link-icon {
  width: 52px;
  height: 52px;
  background: rgba(127,159,98,0.1); /* Super soft pastel green tint */
  color: var(--accent); /* Soft green icon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
}

.link-item.standard-link .link-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.link-item.standard-link .title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: -2px;
}

.link-item.standard-link .subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 400;
  color: var(--text-secondary);
}

.link-item.standard-link .link-arrow {
  color: var(--accent);
  transition: transform 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.link-item.standard-link:hover .link-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

.link-item.standard-link:hover .link-icon {
  background: var(--white);
  color: var(--text-primary);
  transform: scale(1.05) rotate(5deg);
}

/* Highlight Link (Consulta) */
.link-item.highlight {
  background: var(--accent-light); /* Soft pastel green */
  color: var(--text-primary);
  justify-content: flex-start;
  gap: 16px;
  border: 2px solid transparent;
}

.link-item.highlight::before {
  background: var(--white); /* Hover to clean white */
}

.link-item.highlight .link-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
}

.link-item.highlight .link-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.link-item.highlight .title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: -2px;
}

.link-item.highlight .subtitle {
  font-size: 0.88rem;
  opacity: 0.85;
  font-weight: 500;
  color: var(--text-primary);
}

.link-item.highlight .link-arrow {
  color: var(--accent);
  transition: transform 0.4s var(--ease-out);
}

.link-item.highlight:hover .link-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

.link-item.highlight:hover .link-icon {
  transform: scale(1.08) rotate(-10deg); /* Playful bounce */
  background: var(--bg-primary);
}


/* --- Footer --- */
.footer-section {
  text-align: center;
  margin-top: 24px;
}

.footer-section p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .page-container {
    padding: 24px 16px 48px;
    gap: 32px;
  }
  
  .avatar-container {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
  }
  
  .brand-title {
    font-size: 1.6rem;
  }

  .brand-subtitle {
    font-size: 0.9rem;
    max-width: 95%;
  }
  
  .featured-image-wrapper {
    height: 140px;
  }

  .link-item.featured h2 {
    font-size: 1.35rem;
  }

  .link-item.standard-link {
    padding: 16px;
    gap: 12px;
  }

  .link-item.standard-link .link-icon {
    width: 40px;
    height: 40px;
  }

  .link-item.standard-link .title {
    font-size: 1rem;
  }

  .link-item.standard-link .subtitle {
    font-size: 0.8rem;
  }

  .link-item.highlight {
    padding: 16px;
    gap: 12px;
  }

  .link-item.highlight .link-icon {
    width: 46px;
    height: 46px;
  }

  .link-item.highlight .title {
    font-size: 1.1rem;
  }

  .link-item.highlight .subtitle {
    font-size: 0.82rem;
  }
}

@media (max-width: 350px) {
  /* Ultra small devices (iPhone SE) */
  .link-item.standard-link .title, .link-item.highlight .title {
    font-size: 0.95rem;
  }
  .link-item.standard-link .subtitle, .link-item.highlight .subtitle {
    font-size: 0.75rem;
  }
}

/* PC / Desktop Perfection */
@media (min-width: 1024px) {
  .page-container {
    max-width: 680px; /* Slightly wider for PC */
    padding-top: 64px;
  }
  
  .avatar-container {
    width: 140px;
    height: 140px;
    margin-bottom: 32px;
  }

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

  .link-item {
    padding: 24px 32px;
  }

  .link-item.featured .featured-image-wrapper {
    height: 220px;
  }
  
  .link-item.highlight .link-icon {
    width: 56px;
    height: 56px;
  }
}
