/* Rouge Syntax Highlighting Theme - Dark Theme */

/* Code blocks */
.code-block {
  background-color: #2d3748;
  color: #f7fafc;
  padding: 1rem;
  margin: 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

/* Rouge token styles - Dark theme */
.highlight {
  background-color: #2d3748;
  color: #f7fafc;
}

/* Comments */
.code-block .c, .code-block .cm, .code-block .c1, .code-block .cs {
  color: #a0aec0;
  font-style: italic;
}

/* Strings */
.code-block .s, .code-block .sb, .code-block .sc, .code-block .sd, .code-block .s2, .code-block .se, .code-block .sh, .code-block .si, .code-block .sx, .code-block .s1 {
  color: #68d391;
}

/* Keywords */
.code-block .k, .code-block .kc, .code-block .kd, .code-block .kn, .code-block .kp, .code-block .kr, .code-block .kt {
  color: #90cdf4;
}

/* Identifiers/Names */
.code-block .nx, .code-block .n {
  color: #f7fafc;
}

/* String delimiters */
.code-block .dl {
  color: #68d391;
}

/* Functions and methods */
.code-block .nf, .code-block .fm {
  color: #fbb6ce;
}

/* Numbers */
.code-block .m, .code-block .mf, .code-block .mh, .code-block .mi, .code-block .il, .code-block .mo, .code-block .mb, .code-block .mx {
  color: #fbb6ce;
}

/* Booleans and null */
.code-block .kc {
  color: #fbb6ce;
}

/* Operators */
.code-block .o, .code-block .ow {
  color: #ed8936;
}

/* Punctuation */
.code-block .p {
  color: #e2e8f0;
}

/* Variables */
.code-block .nv, .code-block .vc, .code-block .vg, .code-block .vi {
  color: #f7fafc;
}

/* Class names */
.code-block .nc, .code-block .nn {
  color: #fbb6ce;
}

/* Attributes */
.code-block .na {
  color: #90cdf4;
}

/* HTML/XML tags */
.code-block .nt {
  color: #90cdf4;
}

/* JSON keys/names */
.code-block .nl {
  color: #f7fafc;
}

/* Whitespace */
.code-block .w {
  color: #f7fafc;
}

/* Ensure copy button gets correct text */
.code-block code {
  background: transparent;
  padding: 0;
  color: inherit;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Custom animations for StayAPI homepage */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Remove the old blob animation and add new ones */
@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradient-text {
  0%, 100% {
    background-size: 200% 200%;
    background-position: left center;
  }
  50% {
    background-size: 200% 200%;
    background-position: right center;
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(45deg);
  }
  50% {
    transform: translateY(-20px) rotate(45deg);
  }
}

@keyframes float-medium {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes float-fast {
  0%, 100% {
    transform: translateY(0px) rotate(12deg);
  }
  50% {
    transform: translateY(-10px) rotate(12deg);
  }
}

@keyframes grid-float {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(-5px) translateY(-5px);
  }
  75% {
    transform: translateX(5px) translateY(5px);
  }
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(0);
  }
  10% {
    transform: translateY(90vh) scale(1);
  }
  100% {
    transform: translateY(-100vh) scale(0);
  }
}

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

@keyframes shine {
  0% {
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.5s ease-out;
}

.animate-gradient {
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.animate-gradient-text {
  animation: gradient-text 3s ease infinite;
}

.animate-fade-in-down {
  animation: fade-in-down 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 4s ease-in-out infinite;
}

.animate-grid-float {
  animation: grid-float 20s ease-in-out infinite;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

.animate-float {
  animation: float 3s ease-in-out infinite, shine 2s ease-in-out infinite;
}

/* Grid background pattern */
.grid-background {
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Particles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(to bottom, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.5));
  border-radius: 50%;
  animation: particle-float linear infinite;
}

.particle-1 {
  left: 10%;
  animation-duration: 20s;
  animation-delay: 0s;
}

.particle-2 {
  left: 30%;
  animation-duration: 25s;
  animation-delay: 5s;
}

.particle-3 {
  left: 50%;
  animation-duration: 30s;
  animation-delay: 10s;
}

.particle-4 {
  left: 70%;
  animation-duration: 22s;
  animation-delay: 15s;
}

.particle-5 {
  left: 90%;
  animation-duration: 28s;
  animation-delay: 20s;
}

/* Blob animation */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Custom scrollbar */
.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-thumb-purple-500 {
  scrollbar-color: rgb(168 85 247) transparent;
}

.scrollbar-track-gray-800 {
  scrollbar-color: rgb(31 41 55) transparent;
}

/* Webkit scrollbar styles */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: rgb(31 41 55);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgb(168 85 247);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgb(147 51 234);
}

/* Form Styles */
/* Make Devise forms smaller on larger screens */
@media (min-width: 768px) {
  .devise-form-container {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

#delete-account-button {
  background-color: #dc2626 !important;
  border: none;
  transition: all 0.3s ease;
}

/* Remove focus outline from all inputs */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
}
