/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #111111;
  --bg-secondary: #1a1a1a;
  --bg-card: #222222;
  --accent: #ff6b00;
  --accent-hover: #ff8c33;
  --accent-dark: #e05e00;
  --text-primary: #ffffff;
  --text-light: #ffffff;
  --text-muted: #999999;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 50px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-family: 'Outfit', sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 107, 0, 0.04) 0%, transparent 60%);
}

/* ===== CONTAINER ===== */
.biolink-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* ===== DECORATIVE ELEMENTS ===== */
.biolink-container::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 107, 0, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== LOGO SECTION ===== */
.logo-section {
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.8s ease forwards;
  padding-top: 8px;
}

.logo-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-glow);
  transition: var(--transition-normal);
  position: relative;
}

.logo-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: var(--transition-normal);
}

.logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.logo-wrapper:hover::after {
  opacity: 1;
}

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

/* ===== COMPANY NAME ===== */
.company-name {
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.8s ease 0.1s both;
}

.company-name h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.company-tagline {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.company-tagline p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 100%;
  text-align: center;
  margin: 16px 0 12px;
  position: relative;
  z-index: 1;
}

.section-divider span {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px;
  position: relative;
}

.section-divider span::before,
.section-divider span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.4));
}

.section-divider span::before {
  right: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.4));
}

.section-divider span::after {
  left: 100%;
  background: linear-gradient(270deg, transparent, rgba(255, 107, 0, 0.4));
}

/* ===== LINKS LIST ===== */
.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  list-style: none;
}

/* ===== LINK BUTTON ===== */
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #111111;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition-slow);
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

/* Icon inside button */
.link-btn .btn-icon {
  margin-right: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

/* ===== SPECIAL BUTTONS (Website, Trabalhe Conosco, Avaliação) ===== */
.link-btn.special {
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.9), rgba(26, 26, 26, 0.9));
  color: var(--accent);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  backdrop-filter: blur(8px);
}

.link-btn.special:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #111111;
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 107, 0, 0.2);
}

/* ===== WhatsApp special style ===== */
.link-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
}

.link-btn.whatsapp:hover {
  background: linear-gradient(135deg, #128c7e, #25d366);
  box-shadow: var(--shadow-md), 0 0 20px rgba(37, 211, 102, 0.3);
}

/* ===== SOCIAL ICONS ===== */
.social-section {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--accent);
  -webkit-tap-highlight-color: transparent;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.35);
  background: var(--accent);
  color: #111111;
}

.social-icon:active {
  transform: translateY(0) scale(0.95);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-left: 4px;
}

.scroll-top:hover {
  background: var(--accent);
  color: #111111;
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 107, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.7s both;
  width: 100%;
}

.footer p {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  opacity: 0.5;
  text-transform: uppercase;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered link animations */
.links-list li:nth-child(1) { animation: slideInLeft 0.5s ease 0.2s both; }
.links-list li:nth-child(2) { animation: slideInLeft 0.5s ease 0.25s both; }
.links-list li:nth-child(3) { animation: slideInLeft 0.5s ease 0.3s both; }
.links-list li:nth-child(4) { animation: slideInLeft 0.5s ease 0.35s both; }
.links-list li:nth-child(5) { animation: slideInLeft 0.5s ease 0.4s both; }
.links-list li:nth-child(6) { animation: slideInLeft 0.5s ease 0.45s both; }
.links-list li:nth-child(7) { animation: slideInLeft 0.5s ease 0.5s both; }
.links-list li:nth-child(8) { animation: slideInLeft 0.5s ease 0.55s both; }
.links-list li:nth-child(9) { animation: slideInLeft 0.5s ease 0.6s both; }
.links-list li:nth-child(10) { animation: slideInLeft 0.5s ease 0.65s both; }
.links-list li:nth-child(11) { animation: slideInLeft 0.5s ease 0.7s both; }
.links-list li:nth-child(12) { animation: slideInLeft 0.5s ease 0.75s both; }
.links-list li:nth-child(13) { animation: slideInLeft 0.5s ease 0.8s both; }
.links-list li:nth-child(14) { animation: slideInLeft 0.5s ease 0.85s both; }
.links-list li:nth-child(15) { animation: slideInLeft 0.5s ease 0.9s both; }
.links-list li:nth-child(16) { animation: slideInLeft 0.5s ease 0.95s both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .biolink-container {
    padding: 40px 16px 32px;
  }

  .logo-wrapper {
    width: 150px;
    height: 150px;
  }

  .company-name h1 {
    font-size: 1.35rem;
  }

  .link-btn {
    padding: 14px 20px;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .store-action-btn {
    padding: 10px 8px;
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 20px;
  }

  .biolink-container {
    min-height: auto;
    padding: 48px 32px 48px;
    border-radius: 20px;
    margin: 20px auto;
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.15);
    box-shadow: var(--shadow-lg);
  }
}

/* ===== PARTICLE / AMBIENT EFFECT ===== */
.ambient-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.ambient-glow:nth-child(1) {
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.ambient-glow:nth-child(2) {
  bottom: -100px;
  left: -100px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

/* ===== STORE CARD EXPAND ===== */
.store-card {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.store-card .store-btn {
  position: relative;
  width: 100%;
  justify-content: flex-start;
  padding-left: 24px;
  padding-right: 48px;
}

.store-name {
  flex: 1;
  text-align: center;
}

.store-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  opacity: 0.6;
}

.store-card.expanded .store-chevron {
  transform: translateY(-50%) rotate(180deg);
  opacity: 1;
}

.store-card.expanded .store-btn {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.store-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card.expanded .store-expand {
  max-height: 250px;
}

.store-expand-inner {
  padding: 0 16px 16px;
  background: linear-gradient(180deg, var(--accent-dark), #c45400);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.store-address {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 8px 0 12px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.store-actions {
  display: flex;
  gap: 8px;
}

.store-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.store-action-btn.map-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
}

.store-action-btn.map-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.store-action-btn.phone-btn {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.store-action-btn.phone-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.store-action-btn.review-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111111;
}

.store-action-btn.review-btn:hover {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ===== ADMIN LINK (hidden corner) ===== */
.admin-link {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  opacity: 0.15;
  transition: all var(--transition-normal);
  z-index: 100;
}

.admin-link:hover {
  opacity: 1;
  background: var(--accent);
  transform: rotate(90deg) scale(1.1);
}

/* ===== RIPPLE ANIMATION ===== */
@keyframes ripple-effect {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
