@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
  }

  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    background-color: hsl(var(--background));
    min-height: 100vh;
  }
}

@layer utilities {
  .animate-blink {
    animation: blink 0.8s step-start infinite;
  }
}

.cursor {
  border-right: 2px solid black;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

:root {
  --background: 214 27% 14%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --sai-yellow: 47 83% 62%;
  --background-primary: 214 27% 14%;
}
.hero {
  background-image: url(/assets/logos/sai-43720b1a3aac25c145c035be053b36f76a9e175119509d1569155434653f388c.webp);
  background-size: cover;
  background-position: center center;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.slack_hero_video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.buttons {
  margin-top: 1rem;
}

.section {
  padding: 3rem 0;
}

.icon-text {
  display: flex;
  align-items: center;
}

.icon-text .icon {
  margin-right: 1rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-image {
  flex-basis: 70%;
  overflow: hidden;
}

.card-content {
  flex-basis: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content .media {
  margin-bottom: 0.5rem;
}

.card-content .media-content {
  margin-left: 0.5rem;
}

@media screen and (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .icon-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    margin-bottom: 1.5;
  }
  .card-image {
    flex-basis: 50%;
  }
  
  .card-content {
    flex-basis: 50%;
  }
}
/*
 * 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.
 *



 */

/* Animated Background Questions Styles */
.questions-container {
  position: relative;
  width: 300vw;
  height: 300vh;
  transform: rotate(-15deg);
}

.question-row {
  display: flex;
  white-space: nowrap;
  margin-bottom: 100px;
  animation: slideLeft 80s linear infinite;
}

.question-row:nth-child(even) {
  animation: slideRight 85s linear infinite;
}

.question-row:nth-child(3n) {
  animation-delay: -30s;
}

.question-row:nth-child(4n) {
  animation-delay: -15s;
}

.question {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px 28px;
  margin: 0 25px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
  min-width: 220px;
  max-width: 350px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  flex-shrink: 0;
}

.question:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.question.urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.question.meeting {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.question.code {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
}

.question.info {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
}

@keyframes slideLeft {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-200vw);
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-200vw);
  }
  100% {
    transform: translateX(100vw);
  }
}

/* PDF.js text layer styles */
.textLayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: auto;
  overflow: hidden;
}
.textLayer ::selection {
  background: rgba(180, 213, 255, 0.5);
}
.textLayer .endOfContent { display: none; }
/* Absolutely position each text span over the canvas */
.textLayer span {
  position: absolute;
  white-space: pre;
  transform-origin: 0 0;
  line-height: 1;
  /* Hide overlay text but keep it selectable */
  color: transparent;
}

/* Ensure the viewer container doesn't shift text layer */
.pdf-viewer-container {
  position: relative;
  overflow: hidden;
}

/* PDF.js regex preview */
.pdf-regex-hit {
  outline: 1px solid rgba(59,130,246,0.7);
  background: rgba(59,130,246,0.1);
}
