/* Seabook Custom Styles */

/* Base styles */
:root {
  /* Color scheme */
  --color-bg: #002150;
  --color-bg-alpha: #00215080;
  --color-bg-from: #012455;
  --color-bg-to: #012050;
  --color-text-main: #ffffff;
  --color-text-disabled: #9DC3F1;
  --color-text-alt: #A3C5ED;
  --color-btn-bg: #009d92;
  --color-active: #1398FF;
  --color-divider: #A3C5ED26;
  --color-highlighted: #1166C659;
  --color-accent: #ECFF30;
  --color-accent-alpha: #ECFF3080;

  /* Background animation colors */
  --color-bg1: rgb(7, 57, 121);
  --color-bg2: rgb(0, 33, 80);
  --color1: 35, 255, 130;
  --color2: 53, 228, 234;
  --color3: 35, 237, 255;
  --color4: 36, 255, 179;
  --color5: 228, 234, 53;
  --color-interactive: rgb(19, 152, 255);
  --circle-size: 80%;
  --blending: hard-light;
}

html {
  min-height: 100%;
}

body {
  color: var(--color-text-main);
  font-family: 'Rubik', 'Helvetica Neue', sans-serif;
  min-height: 100%;
  height: auto;
}

/* Gooey button effect */
  .c-button--gooey {
    position: relative;
    transition: all 700ms ease;
  }

  .c-button__blobs {
    height: 100%;
    filter: url(#goo);
    border-radius: 30px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    bottom: -3px;
    right: -1px;
    z-index: -1;
  }

  .c-button__blobs div {
    background-color: var(--color-accent);
    width: 34%;
    height: 100%;
    border-radius: 100%;
    position: absolute;
    transform: scale(1.4) translateY(125%) translateZ(0);
    transition: all 700ms ease;
  }

  .c-button__blobs div:nth-child(1) {
    left: -5%;
  }

  .c-button__blobs div:nth-child(2) {
    left: 30%;
    transition-delay: 60ms;
  }

  .c-button__blobs div:nth-child(3) {
    left: 66%;
    transition-delay: 25ms;
  }

  .c-button--gooey:hover {
    color: var(--color-bg);
  }

  .c-button--gooey:hover .c-button__blobs div {
  transform: scale(1.4) translateY(0) translateZ(0);
}

/* Background gradient */
.bg-seabook-gradient {
  background-color: var(--color-bg-from);
  background-image: url(/assets/website/images/promo/Background@2x.png),
    linear-gradient(to bottom, var(--color-bg-from) 0%, var(--color-bg-to) 100%);
  background-repeat: no-repeat, repeat;
  background-position: center bottom, center;
  background-size: contain, cover;
}

.bg-seabook-gradient-mobile {
  background-image: url(/assets/website/images/promo/Background.png),
    linear-gradient(to bottom, var(--color-bg-from) 0%, var(--color-bg-to) 100%);
  background-repeat: no-repeat, repeat;
  background-position: center bottom, center;
  background-size: contain, cover;
}

/* Animations */
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wobble {
  33% { transform: translateX(-50px); }
  66% { transform: translateX(50px); }
}

@keyframes up {
  0% { opacity: 0; }
  10%, 90% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateY(-1024px);
  }
}

@keyframes moveInCircle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
  0% { transform: translateX(-50%) translateY(-10%); }
  50% { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}

/* Bubble animations */
.bubbles-container {
  position: absolute;
  top: 0;
  left: 30%;
  width: 100%;
  max-width: 15rem;
  transform: translateX(-50%);
  opacity: 0.75;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.bubbles circle {
  stroke: white;
  fill: none;
}

.bubbles > g > g:nth-of-type(3n) circle {
  stroke: #87f5fb;
}

.bubbles > g > g:nth-of-type(4n) circle {
  stroke: #8be8cb;
}

.bubbles-large > g {
  transform: translateY(2048px);
  opacity: 0;
  will-change: transform, opacity;
}

.bubbles-large g:nth-of-type(1) {
  animation: up 6.5s infinite;
}

.bubbles-large g:nth-of-type(1) g {
  transform: translateX(350px);
}

.bubbles-large g:nth-of-type(1) circle {
  animation: wobble 3s infinite ease-in-out;
}

.bubbles-large g:nth-of-type(2) {
  animation: up 5.25s 250ms infinite;
}

.bubbles-large g:nth-of-type(2) g {
  transform: translateX(450px);
}

.bubbles-large g:nth-of-type(2) circle {
  animation: wobble 3s infinite ease-in-out;
}

.bubbles-large g:nth-of-type(3) {
  animation: up 6s 750ms infinite;
}

.bubbles-large g:nth-of-type(3) g {
  transform: translateX(700px);
}

.bubbles-large g:nth-of-type(3) circle {
  animation: wobble 3s infinite ease-in-out;
}

.bubbles-large g:nth-of-type(4) {
  animation: up 5.5s 1.5s infinite;
}

.bubbles-large g:nth-of-type(4) g {
  transform: translateX(500px);
}

.bubbles-large g:nth-of-type(4) circle {
  animation: wobble 3s infinite ease-in-out;
}

.bubbles-large g:nth-of-type(5) {
  animation: up 6.5s 4s infinite;
}

.bubbles-large g:nth-of-type(5) g {
  transform: translateX(675px);
}

.bubbles-large g:nth-of-type(5) circle {
  animation: wobble 3s infinite ease-in-out;
}

.bubbles-small > g {
  transform: translateY(2048px);
  opacity: 0;
  will-change: transform, opacity;
}

.bubbles-small g circle {
  transform: scale(0);
}

.bubbles-small g:nth-of-type(1) {
  animation: up 5.25s infinite;
}

.bubbles-small g:nth-of-type(1) g {
  transform: translateX(350px);
}

.bubbles-small g:nth-of-type(1) circle {
  animation: wobble 3s infinite ease-in-out;
}

.bubbles-small g:nth-of-type(2) {
  animation: up 5.75s infinite;
}

.bubbles-small g:nth-of-type(2) g {
  transform: translateX(750px);
}

.bubbles-small g:nth-of-type(2) circle {
  animation: wobble 3s infinite ease-in-out;
}

.bubbles-small g:nth-of-type(3) {
  animation: up 5.25s 250ms infinite;
}

.bubbles-small g:nth-of-type(3) g {
  transform: translateX(350px);
}

.bubbles-small g:nth-of-type(3) circle {
  animation: wobble 3s 250ms infinite ease-in-out;
}

.bubbles-small g:nth-of-type(4) {
  animation: up 5.75s 325ms infinite;
}

.bubbles-small g:nth-of-type(4) g {
  transform: translateX(180px);
}

.bubbles-small g:nth-of-type(4) circle {
  animation: wobble 3s 325ms infinite ease-in-out;
}

.bubbles-small g:nth-of-type(5) {
  animation: up 6s 125ms infinite;
}

.bubbles-small g:nth-of-type(5) g {
  transform: translateX(350px);
}

.bubbles-small g:nth-of-type(5) circle {
  animation: wobble 3s 250ms infinite ease-in-out;
}

.bubbles-small g:nth-of-type(6) {
  animation: up 5.13s 250ms infinite;
}

.bubbles-small g:nth-of-type(6) g {
  transform: translateX(650px);
}

.bubbles-small g:nth-of-type(6) circle {
  animation: wobble 3s 125ms infinite ease-in-out;
}

.bubbles-small g:nth-of-type(7) {
  animation: up 6.25s 350ms infinite;
}

.bubbles-small g:nth-of-type(7) g {
  transform: translateX(480px);
}

.bubbles-small g:nth-of-type(7) circle {
  animation: wobble 3s 325ms infinite ease-in-out;
}

.bubbles-small g:nth-of-type(8) {
  animation: up 7s 200ms infinite;
}

.bubbles-small g:nth-of-type(8) g {
  transform: translateX(330px);
}

.bubbles-small g:nth-of-type(8) circle {
  animation: wobble 3s 325ms infinite ease-in-out;
}

.bubbles-small g:nth-of-type(9) {
  animation: up 6.25s 233ms infinite;
}

.bubbles-small g:nth-of-type(9) g {
  transform: translateX(230px);
}

.bubbles-small g:nth-of-type(9) circle {
  animation: wobble 3s 275ms infinite ease-in-out;
}

.bubbles-small g:nth-of-type(10) {
  animation: up 6s 900ms infinite;
}

.bubbles-small g:nth-of-type(10) g {
  transform: translateX(730px);
}

.bubbles-small g:nth-of-type(10) circle {
  animation: wobble 2s 905ms infinite ease-in-out;
}

/* Gradient background animation */
.gradient-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  z-index: -2;
  top: 0;
  left: 0;
}

.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradient-bg .gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
}

.gradient-bg .g1 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}

.gradient-bg .g2 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
  opacity: 1;
}

.gradient-bg .g3 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
  opacity: 1;
}

.gradient-bg .g4 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}

.gradient-bg .g5 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
  opacity: 1;
}

.gradient-bg .interactive {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  opacity: 0.7;
}

/* Tiny slider navigation dots */
.tns-nav {
  border-top: 1px solid var(--color-divider);
  text-align: center;
  margin: 0 24px;
  padding: 10px 0;
}

.tns-nav > [aria-controls] {
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0 5px;
  border-radius: 50%;
  background: #ddd;
  border: 0;
}

.tns-nav > [aria-selected="true"] {
  background: var(--color-accent);
}

.tns-controls [disabled] {
  color: #999999;
  background: #B3B3B3;
  cursor: not-allowed !important;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Article and creature page styles */
.article-overlay {
  background-color: #002150dd !important;
}

.colors-block {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.color-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-bg-alpha);
}

/* ========================================
   V2 Landing Page Styles
   ======================================== */

/* Typography */
body {
  font-family: 'Outfit', sans-serif;
}

.font-display {
  font-family: 'Rubik', sans-serif;
}

/* Bioluminescent glow effects */
.glow-text {
  text-shadow: 0 0 20px rgba(0, 255, 212, 0.5), 0 0 40px rgba(0, 255, 212, 0.3);
}

.glow-box {
  box-shadow: 0 0 30px rgba(0, 255, 212, 0.2), inset 0 0 30px rgba(0, 255, 212, 0.05);
}

.glow-border {
  border: 1px solid rgba(0, 229, 204, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 212, 0.15);
}

/* Glass morphism */
.glass {
  background: rgba(0, 20, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Screenshot carousel */
.screenshot-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  z-index: 10;
}

.screenshot-card.prev,
.screenshot-card.next {
  transform: scale(0.85);
  opacity: 0.4;
  filter: blur(2px);
}

.screenshot-card.hidden-card {
  transform: scale(0.7);
  opacity: 0;
  pointer-events: none;
}

/* Feature indicator dots */
.feature-dot {
  transition: all 0.3s ease;
}

.feature-dot.active {
  background: #00FFD4;
  box-shadow: 0 0 10px rgba(0, 255, 212, 0.8);
  transform: scale(1.3);
}

/* Hero navigation dots */
.hero-dot {
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #00FFD4;
  box-shadow: 0 0 10px rgba(0, 255, 212, 0.8);
  transform: scale(1.3);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Reviews carousel */
.reviews-carousel-wrapper {
  cursor: grab;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
}

.reviews-track {
  will-change: transform;
}

.reviews-carousel-wrapper.is-dragging {
  cursor: grabbing;
}

.reviews-carousel-wrapper.is-dragging .review-card {
  pointer-events: none;
}

.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.review-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 212, 0.2);
}

/* ========================================
   404 Page Styles
   ======================================== */

/* Radial vignette for depth */
.bg-radial-vignette {
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 10, 20, 0.4) 70%, rgba(0, 10, 20, 0.7) 100%);
}

/* Slow pulse animation */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* ========================================
   Article Content Typography
   ======================================== */

.article-content {
  font-family: 'Lora', Georgia, serif;
  color: rgba(163, 197, 237, 0.9);
  line-height: 1.8;
}

/* Paragraphs */
.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 1024px) {
  .article-content p {
    font-size: 1.0625rem;
  }
}

/* Headings */
.article-content h2 {
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
}

.article-content h3 {
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h4,
.article-content h5,
.article-content h6 {
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .article-content h2 {
    font-size: 1.75rem;
  }

  .article-content h3 {
    font-size: 1.375rem;
  }
}

/* Images */
.article-content img {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Links */
.article-content a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #f0ff5a;
  text-decoration: underline;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* ========================================
   Creature Cards in Articles
   ======================================== */

.article-content .creatures-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.article-content .creatures-list .creature-card {
  flex: 0 0 auto;
  width: calc(50% - 0.375rem);
  text-align: center;
  transition: transform 0.3s ease;
}

.article-content .creatures-list .creature-card:hover {
  transform: translateY(-4px);
}

.article-content .creatures-list .creature-card a {
  display: block;
  text-decoration: none;
}

.article-content .creatures-list .creature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-content .creatures-list .creature-name {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-family: 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

/* Tablet: 3 cards per row */
@media (min-width: 480px) {
  .article-content .creatures-list .creature-card {
    width: calc(33.333% - 0.5rem);
  }
}

/* Desktop: 5 cards in a single row */
@media (min-width: 768px) {
  .article-content .creatures-list {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .article-content .creatures-list .creature-card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .article-content .creatures-list .creature-name {
    font-size: 0.75rem;
  }
}
