@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #07050f;
  --bg-gradient: radial-gradient(circle at 50% 50%, #110d29 0%, #07050f 100%);
  --accent-green: #00ff88;
  --accent-green-glow: rgba(0, 255, 136, 0.4);
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.4);
  --accent-blue: #00b4d8;
  
  --text-primary: #ffffff;
  --text-secondary: #c7c4e2;
  --text-muted: #8e8aab;
  
  --glass-bg: rgba(16, 12, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 255, 136, 0.35);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1rem;
}

/* Cosmic Canvas */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Background Aurora Glows */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.45;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 25s infinite alternate ease-in-out;
}

.aurora-green {
  background: radial-gradient(circle, var(--accent-green) 0%, rgba(0, 255, 136, 0) 70%);
  width: 500px;
  height: 500px;
  top: -100px;
  right: -50px;
}

.aurora-purple {
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(157, 78, 221, 0) 70%);
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: -100px;
  animation-duration: 35s;
  animation-delay: -5s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(80px, 50px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-50px, -30px) scale(0.9) rotate(360deg);
  }
}

/* Container */
.main-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Moon Emblem / Logo */
.moon-emblem {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.2));
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.moon-emblem:hover {
  transform: rotate(30deg) scale(1.1);
  filter: drop-shadow(0 0 25px var(--accent-green-glow));
}

.moon-emblem svg {
  width: 100%;
  height: 100%;
}

/* Profile Section */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.profile-avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 1.5rem;
}

/* Glowing Rotating Ring */
.profile-avatar-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple), var(--accent-blue));
  z-index: 1;
  animation: rotateRing 8s linear infinite;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.profile-avatar-ring::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  background: var(--bg-dark);
  z-index: 2;
}

.profile-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-dark);
  z-index: 3;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatAvatar {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Text Header */
.profile-name {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 70%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

/* Credentials Container */
.credentials-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.credential-item {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.credential-item::before {
  font-size: 0.9rem;
  line-height: 1;
}

.credential-item.author::before {
  content: '📚';
}

.credential-item.marketer::before {
  content: '🚀';
}

/* Custom style for the unhinged mastermind! */
.credential-item.mastermind {
  background: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.25);
  color: #dfcdff;
}

.credential-item.mastermind::before {
  content: '🔮';
}

.credential-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.credential-item.mastermind:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
  background: rgba(157, 78, 221, 0.15);
}

/* Glass Links List */
.links-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.05rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Highlight effect on link hover */
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.6s ease;
}

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

.link-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.link-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.link-text {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  opacity: 0.4;
  fill: currentColor;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Hover effects */
.link-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 24px rgba(0, 255, 136, 0.08), 
              inset 0 0 12px rgba(0, 255, 136, 0.05);
  color: var(--text-primary);
}

.link-card:hover .link-icon {
  color: var(--accent-green);
  transform: scale(1.15);
}

.link-card:hover .arrow-icon {
  opacity: 1;
  color: var(--accent-green);
  transform: translateX(4px);
}

/* BookTok Featured Card */
.link-card.booktok-featured {
  background: linear-gradient(135deg, rgba(16, 12, 38, 0.7), rgba(0, 255, 136, 0.05));
  border: 1px solid rgba(0, 255, 136, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 255, 136, 0.05);
}

.link-card.booktok-featured .link-icon {
  color: var(--accent-green);
}

.link-card.booktok-featured .link-text {
  font-weight: 600;
  background: linear-gradient(90deg, #ffffff, #cbfde4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.link-card.booktok-featured:hover {
  border-color: var(--accent-green);
  box-shadow: 0 12px 30px rgba(0, 255, 136, 0.18), 
              inset 0 0 15px rgba(0, 255, 136, 0.1);
}

/* Cosmic Footer */
.footer-text {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  font-weight: 500;
}

/* Coming Soon Page Styles */
.coming-soon-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  width: 100%;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.coming-soon-badge {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.coming-soon-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.coming-soon-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
}

/* Books Grid Mockup */
.books-mockup-grid {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  perspective: 600px;
}

.book-mockup-item {
  width: 80px;
  height: 120px;
  background: linear-gradient(135deg, #1b173a, #0d0a20);
  border-radius: 4px 8px 8px 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 5px solid var(--accent-green);
  box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
  transform: rotateY(-20deg);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-mockup-item:nth-child(2) {
  border-left-color: var(--accent-purple);
  transform: rotateY(-15deg) translateY(-8px);
}

.book-mockup-item:nth-child(3) {
  border-left-color: var(--accent-blue);
  transform: rotateY(-10deg);
}

.book-mockup-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 20%, rgba(0,0,0,0.2) 100%);
}

.book-mockup-item svg {
  width: 24px;
  height: 24px;
  opacity: 0.3;
  color: var(--text-secondary);
}

.coming-soon-card:hover .book-mockup-item {
  transform: rotateY(0deg) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.coming-soon-card:hover .book-mockup-item:nth-child(2) {
  transform: rotateY(0deg) translateY(-12px) scale(1.05);
}

/* Back Button */
.btn-cosmic-back {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-top: 1rem;
}

.btn-cosmic-back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-cosmic-back:hover {
  color: var(--text-primary);
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  background: rgba(0, 255, 136, 0.02);
  transform: translateY(-2px);
}

.btn-cosmic-back:hover svg {
  transform: translateX(-4px);
}

/* Custom Scrollbar for space travelers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #1a1738;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 0.75rem;
  }
  
  .profile-name {
    font-size: 1.85rem;
  }
  
  .credential-item {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
  }
  
  .link-card {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .coming-soon-card {
    padding: 2rem 1.25rem;
  }
  
  .coming-soon-title {
    font-size: 2rem;
  }
  
  .books-mockup-grid {
    gap: 0.75rem;
  }
  
  .book-mockup-item {
    width: 70px;
    height: 105px;
  }
}
