/* ==========================================================================
   BITTY BOX HYBRID NEUMORPHIC & GLASSMORPHIC DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #14161a;
  --bg-surface: #1e2229;
  --bg-surface-raised: #23272f;
  --bg-surface-sunken: #111317;
  
  --text-main: #f0f2f5;
  --text-muted: #9aa2b1;
  --text-dim: #656d7d;

  --accent-gold-start: rgb(255, 212, 59);
  --accent-gold-end: rgb(255, 102, 0);
  --accent-gold: #ffd43b;
  --accent-orange: #ff6600;
  
  --neu-dark-shadow: #0e1013;
  --neu-light-shadow: #383e4b;
  
  --glass-bg: rgba(35, 39, 47, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-title: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 212, 59, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 102, 0, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(35, 39, 47, 0.3) 0%, transparent 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   USER-SPECIFIED REFERENCE STYLES: NEUMORPHIC INPUT CONTAINER
   ========================================================================== */

.input-container {
  display: flex;
  border-radius: 1rem;
  background: linear-gradient(135deg, #23272F 0%, #14161a 100%);
  box-shadow: 10px 10px 20px #0e1013, -10px -10px 40px #383e4b;
  padding: 0.3rem;
  gap: 0.3rem;
  width: 100%;
  max-width: 680px;
}

.input-container input,
.input-container textarea {
  border-radius: 0.8rem 0 0 0.8rem;
  background: #23272F;
  box-shadow: inset 5px 5px 10px #0e1013, inset -5px -5px 10px #383e4b, 0px 0px 100px rgba(255, 212, 59, 0), 0px 0px 100px rgba(255, 102, 0, 0);
  width: 100%;
  flex-basis: 75%;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  color: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.input-container input:focus,
.input-container textarea:focus {
  border: 1px solid #FFD43B;
  outline: none;
  box-shadow: inset 0px 0px 10px rgba(255, 102, 0, 0.5), inset 0px 0px 10px rgba(255, 212, 59, 0.5), 0px 0px 100px rgba(255, 212, 59, 0.5), 0px 0px 100px rgba(255, 102, 0, 0.5);
}

.input-container button {
  flex-basis: 25%;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgb(255, 212, 59) 0%, rgb(255, 102, 0) 100%);
  box-shadow: 0px 0px 1px rgba(255, 212, 59, 0.5), 0px 0px 1px rgba(255, 102, 0, 0.5);
  font-weight: 900;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: #23272F;
  border: none;
  width: 100%;
  border-radius: 0 1rem 1rem 0;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.input-container button:hover {
  background: linear-gradient(135deg, rgb(255, 212, 59) 50%, rgb(255, 102, 0) 100%);
  box-shadow: 0px 0px 100px rgba(255, 212, 59, 0.5), 0px 0px 100px rgba(255, 102, 0, 0.5);
}

@media (max-width: 580px) {
  .input-container {
    flex-direction: column;
  }

  .input-container input,
  .input-container textarea {
    border-radius: 0.8rem;
    flex-basis: auto;
  }

  .input-container button {
    padding: 1rem;
    border-radius: 0.8rem;
    flex-basis: auto;
  }
}

/* ==========================================================================
   USER-SPECIFIED REFERENCE STYLES: 3D GLASS PERSPECTIVE CAPSULE BUTTON
   ========================================================================== */

.button-container {
  perspective: 1000px;
  display: inline-block;
}

.button-container a,
.button-container button {
  text-decoration: none;
  display: inline-block;
  background: transparent;
  border: none;
}

.button {
  width: 220px;
  height: 60px;
  border-radius: 30px; /* Creates the capsule shape */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  ); /* Transparent glass gradient */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    /* Top highlight */ inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    /* Bottom shadow */ 0 4px 8px rgba(0, 0, 0, 0.2),
    /* Drop shadow */ 0 0 20px rgba(255, 255, 255, 0.1); /* Subtle glow */
  transform: rotateX(15deg) translateZ(0); /* Initial 3D tilt */
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Springy transition */
  position: relative;
  cursor: pointer;
  animation: pulse 2s infinite ease-in-out; /* Pulsing glow animation */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50px;
  width: 50px;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1),
    transparent
  ); /* Shine gradient */
  transform: skewX(-25deg); /* Tilted shine */
  animation: shine 3s infinite linear; /* Continuous shine movement */
  pointer-events: none;
  z-index: 1;
}

.button::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 10px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 70%
  ); /* Soft shadow */
  z-index: -1;
}

.button span {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 18px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.05rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Depth for text */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 60px; /* Center vertically */
  text-align: center;
}

.button:hover {
  transform: rotateX(0deg) translateZ(15px) scale(1.05); /* Lift and scale */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.3),
    /* Stronger shadow */ 0 0 40px rgba(255, 255, 255, 0.25); /* Brighter glow */
}

.button:active {
  transform: rotateX(0deg) translateZ(-5px) scale(0.95); /* Push down */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.2),
    /* Reduced shadow */ 0 0 10px rgba(255, 255, 255, 0.1); /* Dimmed glow */
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 2px rgba(255, 255, 255, 0.4),
      inset 0 -1px 2px rgba(0, 0, 0, 0.2),
      0 4px 8px rgba(0, 0, 0, 0.2),
      0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      inset 0 1px 2px rgba(255, 255, 255, 0.4),
      inset 0 -1px 2px rgba(0, 0, 0, 0.2),
      0 4px 8px rgba(0, 0, 0, 0.2),
      0 0 30px rgba(255, 255, 255, 0.2); /* Peak glow */
  }
}

@keyframes shine {
  0% {
    left: -50px; /* Start off-screen */
  }
  100% {
    left: 270px; /* Move past button width */
  }
}

/* ==========================================================================
   NEUMORPHIC & GLASSMORPHIC COMPONENTS
   ========================================================================== */

/* Glass Navigation Bar */
.neu-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(20, 22, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02rem;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd43b 0%, #ff6600 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 212, 59, 0.4);
}

.brand-badge svg {
  width: 18px;
  height: 18px;
  fill: #14161a;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.nav-link-cta {
  background: linear-gradient(135deg, #23272F 0%, #14161a 100%);
  box-shadow: 3px 3px 8px #0e1013, -3px -3px 8px #383e4b;
  color: var(--accent-gold);
  border: 1px solid rgba(255, 212, 59, 0.2);
}

.nav-link-cta:hover {
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 212, 59, 0.3);
}

/* Neumorphic Cards */
.neu-card {
  background: linear-gradient(135deg, #23272F 0%, #14161a 100%);
  box-shadow: 10px 10px 25px #0e1013, -10px -10px 30px #313742;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.neu-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 30px #0e1013, -12px -12px 35px #3a414f, 0 0 20px rgba(255, 212, 59, 0.05);
}

.neu-card-sunken {
  background: #191c22;
  box-shadow: inset 6px 6px 14px #0e1013, inset -6px -6px 14px #2c323c;
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Glass Card */
.glass-card {
  background: rgba(35, 39, 47, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  padding: 2rem;
}

/* Badges & Chips */
.neu-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  background: #1b1e24;
  box-shadow: inset 2px 2px 5px #0e1013, inset -2px -2px 5px #2a2f38;
  color: var(--accent-gold);
}

.format-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 212, 59, 0.12);
  color: #ffd43b;
  border: 1px solid rgba(255, 212, 59, 0.3);
}

/* Standard Buttons */
.neu-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #23272F 0%, #14161a 100%);
  box-shadow: 5px 5px 10px #0e1013, -5px -5px 12px #383e4b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.neu-btn:hover {
  box-shadow: 3px 3px 6px #0e1013, -3px -3px 8px #454c5c, 0 0 15px rgba(255, 212, 59, 0.2);
  color: var(--accent-gold);
}

.neu-btn:active {
  box-shadow: inset 4px 4px 8px #0e1013, inset -4px -4px 8px #383e4b;
  transform: translateY(1px);
}

.neu-btn-primary {
  background: linear-gradient(135deg, rgb(255, 212, 59) 0%, rgb(255, 102, 0) 100%);
  color: #14161a;
  border: none;
  font-weight: 800;
}

.neu-btn-primary:hover {
  background: linear-gradient(135deg, rgb(255, 212, 59) 50%, rgb(255, 102, 0) 100%);
  box-shadow: 0 0 25px rgba(255, 212, 59, 0.5);
  color: #000;
}

.neu-btn-danger {
  background: linear-gradient(135deg, #441a1a 0%, #200d0d 100%);
  border: 1px solid rgba(255, 70, 70, 0.2);
  color: #ff6b6b;
}

.neu-btn-danger:hover {
  border-color: #ff6b6b;
  box-shadow: 0 0 20px rgba(255, 70, 70, 0.3);
}

/* Modal Popup */
.neu-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.neu-modal {
  background: linear-gradient(135deg, #23272F 0%, #14161a 100%);
  box-shadow: 15px 15px 35px #0a0b0e, -15px -15px 35px #383e4b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 540px;
  position: relative;
}

/* Toast Message */
.neu-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #23272F 0%, #14161a 100%);
  box-shadow: 8px 8px 20px #0e1013, -8px -8px 20px #383e4b, 0 0 20px rgba(255, 212, 59, 0.3);
  border: 1px solid rgba(255, 212, 59, 0.4);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: 1rem;
  z-index: 2000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideUpToast 0.3s ease;
}

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