* {
  box-sizing: border-box;
  font-family: "Poppins", system-ui, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  background: radial-gradient(circle at top, #0f0c1d, #05030a);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: white;
  min-height: 100vh;
}


/* main container */

.chat-container {
  width: min(360px, 92vw);
  height: min(580px, 92vh);
  max-height: 92vh;
  background: rgba(15, 10, 30, 0.95);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 0, 100, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* header */

.chat-header {
  padding: 18px;
  background: linear-gradient(135deg, #ff4d8d, #a855f7);
  text-align: center;
}

.chat-header h2 {
  margin: 0;
  font-weight: 600;
}

.chat-header p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.9;
}

/* chat area */

.chat-box {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* messages */

.message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.95); }
  60%  { opacity: 1; transform: scale(1.03); }
  100% { transform: scale(1); }
}

.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #05030a;
  border-bottom-right-radius: 4px;
}

.bot {
  align-self: flex-start;
  background: linear-gradient(135deg, #ff5f9e, #c77dff);
  color: #05030a;
  border-bottom-left-radius: 4px;
}

/* input */

.input-area {
  display: flex;
  padding: 12px;
  gap: 10px;
  background: rgba(0,0,0,0.45);
}

input {
  flex: 1;
  border-radius: 12px;
  border: none;
  padding: 10px 12px;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: white;
}

input::placeholder {
  color: rgba(255,255,255,0.5);
}

button {
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  background: linear-gradient(135deg, #ff4d8d, #a855f7);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.5);
}

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


/* ---------- Landing Page ---------- */

.landing-container {
  text-align: center;
  padding: 40px 30px;
  width: 420px;
  background: rgba(15, 10, 30, 0.9);
  border-radius: 22px;
  box-shadow: 0 0 50px rgba(255, 77, 141, 0.25);
  border: 1px solid rgba(255,255,255,0.05);
  max-height: 92vh;
  overflow-y: hidden;
  position: relative
}

.landing-container.show-scroll {
  overflow-y: auto;     /* 👈 scrollbar only when needed */
}


.landing-container,
.chat-container {
  position: relative;
  z-index: 2;
}


.landing-container h1 {
  font-size: 42px;
  margin-bottom: 6px;
}

/* Gradient ONLY for text */
.logo-text {
  background: linear-gradient(135deg, #ff5f9e, #c77dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Emojis stay natural */
.logo-emoji {
  -webkit-text-fill-color: initial;
}


.landing-container h2 {
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 24px;
}

.love-note {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 30px;
}

.landing-container button {
  padding: 12px 26px;
  font-size: 15px;
}

/* ---------- Glowing title ---------- */

.glow-title {
  animation: 
  glow 1s ease-in-out infinite alternate,
  seesaw 2s ease-in-out infinite;

}

@keyframes glow {
  from { text-shadow: 0 0 8px rgba(255,77,141,0.4); }
  to   { text-shadow: 0 0 18px rgba(199,125,255,0.9); }
}

@keyframes seesaw {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-3deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}



/* ---------- Floating hearts ---------- */

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.hearts span {
  position: absolute;
  bottom: -10%;
  font-size: 20px;
  opacity: 0.4;
  animation: floatUp linear infinite;
  pointer-events: auto;   /* 👈 only hearts are clickable */
  animation-play-state: running;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hearts span {
  transition: transform 0.15s ease, filter 0.15s ease;
}



/* Different hearts, different vibes
.hearts span:nth-child(1) { left: 10%; animation-duration: 10s; font-size: 18px; }
.hearts span:nth-child(2) { left: 25%; animation-duration: 14s; font-size: 22px; }
.hearts span:nth-child(3) { left: 45%; animation-duration: 12s; font-size: 16px; }
.hearts span:nth-child(4) { left: 60%; animation-duration: 16s; font-size: 24px; }
.hearts span:nth-child(5) { left: 75%; animation-duration: 11s; font-size: 19px; }
.hearts span:nth-child(6) { left: 90%; animation-duration: 18s; font-size: 21px; } */

/* -------- LEFT SIDE (8) -------- */
.hearts span:nth-child(1) { left: 3%;  animation-duration: 14s; font-size: 16px; }
.hearts span:nth-child(2) { left: 6%;  animation-duration: 18s; font-size: 22px; }
.hearts span:nth-child(3) { left: 9%;  animation-duration: 12s; font-size: 18px; }
.hearts span:nth-child(4) { left: 12%; animation-duration: 20s; font-size: 24px; }
.hearts span:nth-child(5) { left: 15%; animation-duration: 15s; font-size: 19px; }
.hearts span:nth-child(6) { left: 18%; animation-duration: 22s; font-size: 17px; }
.hearts span:nth-child(7) { left: 21%; animation-duration: 16s; font-size: 23px; }
.hearts span:nth-child(8) { left: 24%; animation-duration: 19s; font-size: 15px; }

/* -------- CENTER ZONE (3) -------- */
.hearts span:nth-child(9)  { left: 34%; animation-duration: 21s; font-size: 14px; }
.hearts span:nth-child(10) { left: 50%; animation-duration: 17s; font-size: 16px; }
.hearts span:nth-child(11) { left: 66%; animation-duration: 23s; font-size: 14px; }

/* -------- RIGHT SIDE (8) -------- */
.hearts span:nth-child(12) { left: 76%; animation-duration: 15s; font-size: 22px; }
.hearts span:nth-child(13) { left: 79%; animation-duration: 20s; font-size: 18px; }
.hearts span:nth-child(14) { left: 82%; animation-duration: 13s; font-size: 24px; }
.hearts span:nth-child(15) { left: 85%; animation-duration: 22s; font-size: 17px; }
.hearts span:nth-child(16) { left: 88%; animation-duration: 16s; font-size: 21px; }
.hearts span:nth-child(17) { left: 91%; animation-duration: 19s; font-size: 15px; }
.hearts span:nth-child(18) { left: 94%; animation-duration: 24s; font-size: 23px; }
.hearts span:nth-child(19) { left: 97%; animation-duration: 18s; font-size: 19px; }


@keyframes floatUp {
  0% {
    transform: translateY(0) scale(var(--pulse, 0.8));
    opacity: 0;
  }
  10% { opacity: 0.4; }
  50% { opacity: 0.7; }
  100% {
    transform: translateY(-120vh) scale(var(--pulse, 1.3));
    opacity: 0;
  }
}

/* ---------- Typing indicator ---------- */

.typing-indicator {
  font-size: 12px;
  opacity: 0.7;
  padding: 6px 14px;
  font-style: italic;
}

.dots::after {
  content: "";
  animation: dots 1.4s infinite;
}

@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}


.app-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 20px;
}


.side-gif {
  position: fixed;
  bottom: 150px;
  width: 160px;
  max-width: 20vw;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  animation: floaty 3s ease-in-out infinite;
  z-index: 2;
  border-radius: 22px;

  filter: drop-shadow(0 0 18px rgba(255, 105, 180, 0.35))
          drop-shadow(0 0 35px rgba(199, 125, 255, 0.25));
}

.side-gif:hover {
  filter: drop-shadow(0 0 25px rgba(255, 105, 180, 0.6))
          drop-shadow(0 0 50px rgba(199, 125, 255, 0.4));
  transform: scale(1.05);
}


.left-gif {
  left: 100px;
  opacity: 0.7;
  --s: 1;
}

.right-gif {
  right: 90px;
  opacity: 0.99;
  --s: 1.3;   /* 🔥 MUCH bigger */
}


@keyframes floaty {
  0%   { transform: translateY(0px) scale(var(--s,1)); }
  50%  { transform: translateY(-8px) scale(var(--s,1)); }
  100% { transform: translateY(0px) scale(var(--s,1)); }
}

.totoro-link {
  display: block;          /* 👈 forces it onto a new line */
  margin-top: 14px;        /* 👈 space below Enter ArtyBot */
  text-align: center;

  font-family: "Comic Sans MS", "Baloo 2", "Poppins", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: #b6b9ff;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.9;
}


.totoro-link::after {
  content: " ✨";
}


.totoro-link:hover {
  color: #c7bfff;
  opacity: 1;
}

.totoro-box {
  width: 100%;
  margin-top: 18px;

  max-height: 0;
  overflow: hidden;

  background: rgba(15, 10, 30, 0.85);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 77, 141, 0.25);

  display: flex;
  justify-content: center;
  align-items: center;

  transition: max-height 0.6s ease, padding 0.4s ease;
  padding: 0;
}

.totoro-box.show {
  max-height: 420px;     /* 👈 expands DOWN, not sideways */
  padding: 16px;
}

.totoro-box img {
  max-width: 100%;
  max-height: 380px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.totoro-box.show img {
  opacity: 1;
  transform: translateY(0) scale(1);
}


#bigPaw {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 140px;
  z-index: 5;
  pointer-events: none;

  filter: drop-shadow(0 0 25px rgba(0,0,0,0.6))
          drop-shadow(0 0 40px rgba(120,0,120,0.5));

  animation: pawPop 1.6s ease forwards;   /* 👈 longer */
}


@keyframes pawPop {
  0%   { transform: scale(0.3); opacity: 0; }
  40%  { transform: scale(1.2); opacity: 1; }
  80%  { transform: scale(1); opacity: 1; }  /* 👈 stays */
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- Birthday Garland (fixed & centered over box) ---------- */

/* ---------- Birthday Garland (curved hanging style) ---------- */

.garland {
  position: fixed;
  top: 40px;
  display: flex;
  gap: 10px;
  z-index: 1;
  pointer-events: none;
}

.garland-left {
  left: 60px;
}

.garland-right {
  right: 20px;
}

.garland span {
  background: linear-gradient(135deg, #ff6fb1, #c77dff);
  color: white;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,105,180,0.5);
  position: relative;
  display: inline-block;
}

/* floating happens on the whole garland, NOT letters */
.garland {
  animation: garlandFloat 3s ease-in-out infinite;
}

/* 🎀 CURVE EFFECT */
.garland-left span:nth-child(1) { transform: translateY(0px) rotate(-12deg); }
.garland-left span:nth-child(2) { transform: translateY(12px) rotate(-6deg); }
.garland-left span:nth-child(3) { transform: translateY(22px) rotate(0deg); }   /* deepest point */
.garland-left span:nth-child(4) { transform: translateY(12px) rotate(6deg); }
.garland-left span:nth-child(5) { transform: translateY(0px) rotate(12deg); }


.garland-right span:nth-child(1) { transform: translateY(0px) rotate(-14deg); }
.garland-right span:nth-child(2) { transform: translateY(10px) rotate(-10deg); }
.garland-right span:nth-child(3) { transform: translateY(18px) rotate(-6deg); }
.garland-right span:nth-child(4) { transform: translateY(24px) rotate(-2deg); }  /* center dip */
.garland-right span:nth-child(5) { transform: translateY(24px) rotate(2deg); }
.garland-right span:nth-child(6) { transform: translateY(18px) rotate(6deg); }
.garland-right span:nth-child(7) { transform: translateY(10px) rotate(10deg); }
.garland-right span:nth-child(8) { transform: translateY(0px) rotate(14deg); }


/* subtle swing */
@keyframes garlandFloat {
  0% { top: 40px; }
  50% { top: 46px; }
  100% { top: 40px; }
}

@keyframes tileSway {
  0%   { transform: translateY(0px) rotate(var(--rot)); }
  25%  { transform: translateY(-3px) rotate(calc(var(--rot) - 2deg)); }
  50%  { transform: translateY(2px) rotate(calc(var(--rot) + 2deg)); }
  75%  { transform: translateY(-2px) rotate(calc(var(--rot) - 1deg)); }
  100% { transform: translateY(0px) rotate(var(--rot)); }
}
