/* Linktree Specialized Components - Journey Map Edition */

/* 3D Chrome Y2K Stars */
.chrome-star {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  animation: floatStar 4.5s ease-in-out infinite alternate;
}

.star-top-right {
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  animation-delay: 0.3s;
}

.star-bottom-left {
  bottom: -16px;
  left: -16px;
  width: 28px;
  height: 28px;
  animation-delay: 1.1s;
}

@keyframes floatStar {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-7px) rotate(12deg) scale(1.06); }
}

/* Interactive Tabs Section */
.tabs-container {
  margin: 1.5rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.tab-trigger {
  flex: 1;
  padding: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  color: var(--links-text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.tab-trigger.active {
  background: rgba(15, 23, 42, 0.05);
  color: var(--links-primary);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.tab-content {
  display: none;
  text-align: left;
  animation: fadeIn 0.35s ease-out;
}

.tab-content.active {
  display: block;
}

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

.tab-bio-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--links-text-secondary);
  margin: 0 0 12px;
}

/* Photo Gallery Grid */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gallery-photo {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--links-border);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-photo:hover img {
  transform: scale(1.08);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  padding: 8px 6px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  z-index: 3;
}

/* Section Header Titles */
.section-title-links {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--links-text-tertiary);
  text-align: left;
  margin: 1.8rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

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

/* Featured Product Card (Taley Brand) */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.taley-brand-card {
  background: linear-gradient(135deg, hsl(160 50% 6%) 0%, hsl(220 20% 6%) 100%);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.taley-brand-card:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 10px 25px rgba(52, 211, 153, 0.22), 0 0 12px rgba(16, 185, 129, 0.1);
}

.taley-brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(52, 211, 153, 0.08), transparent 75%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.taley-brand-card:hover::before { opacity: 1; }

.taley-brand-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 3;
}

.taley-brand-card:hover::after {
  animation: buttonShimmer 1.4s ease-in-out infinite;
}

.taley-brand-card .prod-icon {
  font-size: 1.6rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.taley-brand-card:hover .prod-icon {
  transform: scale(1.18) rotate(-6deg);
  animation: magicPulseGreen 1.5s ease-in-out infinite alternate;
}

@keyframes magicPulseGreen {
  0% { text-shadow: 0 0 5px rgba(52, 211, 153, 0.4); }
  100% { text-shadow: 0 0 15px rgba(16, 185, 129, 0.7); }
}

.taley-brand-card .prod-arrow {
  font-size: 0.8rem;
  color: rgba(52, 211, 153, 0.5);
  transition: transform 0.15s ease, color 0.15s ease;
}

.taley-brand-card:hover .prod-arrow {
  transform: translate(2px, -2px);
  color: #34d399;
}

.taley-brand-card .prod-body strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 60%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.taley-brand-card .prod-body span {
  display: block;
  font-size: 0.76rem;
  color: hsl(145 15% 75%);
  line-height: 1.45;
}

/* Social Media CTA Buttons */
.socials-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-link-btn {
  display: flex;
  align-items: center;
  padding: 1.02rem 1.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--links-text);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.social-link-btn:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--links-border-hover);
}

.social-link-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 3;
}

.social-link-btn:hover::after {
  animation: buttonShimmer 1.4s ease-in-out infinite;
}

@keyframes buttonShimmer {
  0% { left: -150%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.social-link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 110px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 75%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.social-link-btn:hover::before { opacity: 1; }

.btn-glow-linkedin:hover {
  background: rgba(10, 102, 194, 0.05);
  border-color: rgba(10, 102, 194, 0.3);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.08);
}

.btn-glow-instagram:hover {
  background: rgba(225, 48, 108, 0.05);
  border-color: rgba(225, 48, 108, 0.3);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.08);
}

.btn-glow-website:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.08);
}

.social-link-btn svg {
  width: 28px;
  height: 28px;
  margin-right: 14px;
  fill: currentColor;
}

.btn-arrow {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--links-text-tertiary);
  transition: transform 0.15s ease, color 0.15s ease;
}

.social-link-btn:hover .btn-arrow {
  transform: translateX(3px);
  color: var(--links-primary);
}

/* Share Button */
.footer-actions {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--links-border);
}

.share-profile-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #cbd5e1 80%, #94a3b8 100%);
  color: hsl(220 30% 12%);
  font-weight: 800;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.share-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.5);
}

/* QR Code Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.modal.active { opacity: 1; pointer-events: all; }

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, 0.45);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  padding: 2.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--links-card-shadow-hover);
  transform: scale(0.85) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--links-text-tertiary);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
}

.modal-close:hover {
  background: var(--links-primary-subtle);
  color: var(--links-text);
}

.qr-frame {
  width: 220px;
  height: 220px;
  margin: 1.2rem auto;
  padding: 12px;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--links-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(15, 23, 42, 0.05);
}

.qr-frame::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--links-text-tertiary) 20%, var(--links-text-tertiary) 80%, transparent 100%);
  box-shadow: 0 0 8px var(--links-text-tertiary);
  animation: qrScan 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes qrScan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.modal h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
.modal p { font-size: 0.88rem; color: var(--links-text-secondary); margin: 0 0 1rem; line-height: 1.4; }

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 40px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--links-card-shadow-hover);
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.35);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--links-text);
  white-space: nowrap;
}

.toast.active { opacity: 1; transform: translate(-50%, 0); }
.toast-icon { color: var(--links-success); font-size: 1.1rem; }

/* Staggered Entrance Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-item {
  opacity: 0;
  animation: slideUpFade 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.18s; }
.reveal-delay-3 { animation-delay: 0.26s; }
.reveal-delay-4 { animation-delay: 0.34s; }
.reveal-delay-5 { animation-delay: 0.42s; }
.reveal-delay-6 { animation-delay: 0.5s; }
.reveal-delay-7 { animation-delay: 0.58s; }
