/* ==========================================
   STYLE.CSS - Resumix Simulados Hub
   Aesthetic: Design System Claymorphic 3D
   ========================================== */

/* Design Tokens - Pastel Claymorphic Light Mode */
:root {
  --bg-app: linear-gradient(135deg, #E6DCFF 0%, #F5EFEB 100%);
  --bg-panel: #FAF7F4;
  --bg-card: #FFFFFF;
  
  --text-primary: #2D2544;
  --text-secondary: #6A5F8A;
  --text-muted: #A096C0;
  
  /* Cores Temáticas Pastel Vibrante */
  --purple: #734CEC;
  --purple-light: #A285F5;
  --purple-soft: #F1EEFD;
  
  --pink: #FF4D79;
  --pink-light: #FF789E;
  --pink-soft: #FFF0F4;
  
  --yellow: #FFB020;
  --yellow-light: #FFCC66;
  --yellow-soft: #FFFBF0;
  
  --blue: #2D82FE;
  --blue-light: #6BB2FF;
  --blue-soft: #EBF3FE;
  
  --green: #0BC475;
  --green-light: #5BE5A9;
  --green-soft: #EBFBF3;
  
  /* Fontes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Sombras Claymorphic 3D (Outset & Inset) */
  --shadow-clay-panel: 14px 14px 28px rgba(106, 95, 138, 0.08), 
                       -14px -14px 28px #FFFFFF, 
                       inset 0px -6px 8px rgba(0, 0, 0, 0.02), 
                       inset 0px 6px 8px #FFFFFF;

  --shadow-clay-card: 8px 8px 16px rgba(106, 95, 138, 0.04), 
                      -8px -8px 16px #FFFFFF, 
                      inset 0px -3px 6px rgba(0, 0, 0, 0.015), 
                      inset 0px 3px 6px #FFFFFF;

  --shadow-clay-card-hover: 12px 12px 24px rgba(106, 95, 138, 0.08), 
                            -12px -12px 24px #FFFFFF, 
                            inset 0px -4px 8px rgba(0, 0, 0, 0.02), 
                            inset 0px 4px 8px #FFFFFF;
                            
  --shadow-clay-btn-purple: 0px 8px 16px rgba(115, 76, 236, 0.22), 
                            inset 0px -4px 8px rgba(0, 0, 0, 0.2), 
                            inset 0px 4px 8px rgba(255, 255, 255, 0.4);

  --shadow-clay-btn-purple-hover: 0px 10px 20px rgba(115, 76, 236, 0.3), 
                            inset 0px -4px 8px rgba(0, 0, 0, 0.25), 
                            inset 0px 4px 8px rgba(255, 255, 255, 0.45);
                            
  --shadow-clay-btn-pink: 0px 8px 16px rgba(255, 77, 121, 0.22), 
                          inset 0px -4px 8px rgba(0, 0, 0, 0.2), 
                          inset 0px 4px 8px rgba(255, 255, 255, 0.4);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(115, 76, 236, 0.15);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

/* Layout Container (Center Claymorphic Panel) */
.hub-container {
  width: 100%;
  max-width: 620px;
  background: var(--bg-panel);
  border-radius: 36px;
  padding: 32px 28px;
  box-shadow: var(--shadow-clay-panel);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 10;
}

/* Header & Profile Section */
.profile-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 28px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-clay-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Avatar with rotating colorful gradient border */
.avatar-container {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light), var(--blue-light));
  background-size: 300% 300%;
  animation: gradientRotate 6s linear infinite;
  box-shadow: 0 8px 16px rgba(115, 76, 236, 0.15);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  font-size: 2.2rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--purple);
}

/* Logo Resumix */
.resumix-logo {
  font-family: var(--font-title);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-x {
  color: var(--pink);
  font-size: 2.15rem;
  font-weight: 900;
  margin-left: 1px;
}

.profile-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 460px;
  font-weight: 600;
}

/* Links List */
.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Simulado Item Card */
.link-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: var(--shadow-clay-card);
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-clay-card-hover);
}

.link-card:active {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 4px rgba(106, 95, 138, 0.05),
              inset -2px -2px 4px #FFFFFF;
}

/* Icon Badge */
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: inset 0px -2px 4px rgba(0,0,0,0.1), 0px 4px 8px rgba(0,0,0,0.05);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.link-card:hover .icon-badge {
  transform: scale(1.1) rotate(3deg);
}

/* Icon Specific Gradients matching the design system */
.icon-math {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  color: #fff;
}
.icon-saquarema {
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  color: #fff;
}
.icon-prof {
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow));
  color: #fff;
}
.icon-it {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: #fff;
}
.icon-ibam {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff;
}

/* Card Content */
.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--purple-soft);
  border: 1px solid rgba(115, 76, 236, 0.1);
  color: var(--purple);
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Arrow indicator icon */
.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

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

/* Premium CTA Banner Card */
.premium-cta-banner {
  width: 100%;
  background: var(--pink-soft);
  border-radius: 26px;
  padding: 22px 20px;
  box-shadow: inset 0px -4px 8px rgba(0, 0, 0, 0.03), 
              inset 0px 4px 8px #ffffff, 
              0px 8px 16px rgba(255, 77, 121, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.premium-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 77, 121, 0.25);
  display: inline-block;
}

.premium-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pink);
}

.premium-desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 440px;
  font-weight: 600;
}

.premium-button {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-clay-btn-purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: 4px;
}

.premium-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-clay-btn-purple-hover);
}

.premium-button:active {
  transform: translateY(1px);
}

/* Social & Contact Row */
.social-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.social-button {
  flex: 1;
  background: var(--bg-card);
  border: none;
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-clay-card);
  cursor: pointer;
}

.social-button:hover {
  color: var(--purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-clay-card-hover);
}

.social-button.whatsapp:hover {
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.15), 
              inset 0px -2px 4px rgba(0,0,0,0.02),
              inset 0px 2px 4px white;
  color: #25d366;
}

/* Footer style */
.hub-footer {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

/* Animations Keyframes */
@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.30s; }
.delay-7 { animation-delay: 0.35s; }

/* Responsive adjustments */
@media (max-width: 520px) {
  body {
    padding: 20px 10px;
  }
  
  .hub-container {
    padding: 20px 14px;
    border-radius: 28px;
    gap: 18px;
  }
  
  .profile-card {
    padding: 20px 14px;
  }

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

  .icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.25rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-desc {
    font-size: 0.8rem;
  }
  
  .social-row {
    flex-direction: column;
    gap: 8px;
  }
}
