@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');

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

@import "interview.css";

@layer base {
  :root {
    /* Color System */
    --bg-primary: #0E1116;
    --bg-secondary: #141923;
    --bg-tertiary: #1A2030;

    --text-primary: #E6E8EB;
    --text-secondary: #A6B0C3;
    --text-tertiary: #6F7A90;

    --accent-primary: #4DA3FF;
    --accent-warning: #FFB454;
    --accent-danger: #FF6B6B;
    --accent-success: #5ED9A4;

    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: 28px;
    --text-3xl: 36px;
    --text-4xl: 48px;
  }

  body {
    @apply bg-bg-primary text-text-primary font-sans antialiased;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    @apply font-serif font-medium;
  }

  /* Hide default details marker across browsers */
  summary {
    list-style: none;
  }

  summary::-webkit-details-marker {
    display: none;
  }

  summary::marker {
    display: none;
  }
}

@layer utilities {
  .animate-subtle-pulse {
    animation: subtle-pulse 2.5s ease-in-out infinite;
  }

  @keyframes subtle-pulse {
    0%, 100% {
      filter: brightness(1) drop-shadow(0 0 0px rgba(6, 182, 212, 0));
    }
    50% {
      filter: brightness(1.3) drop-shadow(0 0 10px rgba(6, 182, 212, 0.9));
    }
  }
}

@layer components {
  .landing-btn-primary {
    @apply inline-flex items-center justify-center rounded-md bg-accent-primary px-8 py-3 text-sm font-medium text-white shadow-lg shadow-accent-primary/20 transition-all hover:bg-blue-500 hover:shadow-accent-primary/40 focus:outline-none focus:ring-2 focus:ring-accent-primary focus:ring-offset-2 focus:ring-offset-bg-primary;
  }

  .landing-btn-secondary {
    @apply inline-flex items-center justify-center rounded-md border border-border-subtle bg-transparent px-6 py-3 text-sm font-medium text-text-secondary transition-colors hover:border-text-secondary hover:text-text-primary focus:outline-none;
  }

  .landing-card {
    @apply rounded-lg border border-border-subtle bg-bg-secondary p-6;
  }
}
/* Interview Modal Styles */
/* Uses TrueStandard design system colors and patterns */

/* Option button styling */
.interview-option {
  transition: all 0.15s ease-out;
}

.interview-option:hover {
  transform: translateX(2px);
}

.interview-option:active {
  transform: translateX(0);
}

/* Option badge (numbered) */
.interview-option-badge {
  font-variant-numeric: tabular-nums;
}

/* Slide animations for question transitions */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.2s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.2s ease-out;
}

/* Modal enter animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

[data-interview-target="modal"]:not(.hidden) {
  animation: modalFadeIn 0.2s ease-out;
}

[data-interview-target="modal"]:not(.hidden) > div:last-child {
  animation: modalSlideUp 0.25s ease-out;
}

/* Progress bar animation */
[data-interview-target="modal"] .bg-cyan-500 {
  transition: width 0.3s ease-out;
}

/* Mobile full-screen mode */
@media (max-width: 640px) {
  [data-interview-target="modal"] > div:last-child {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  [data-interview-target="questionContainer"] {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Keyboard hint styling */
.interview-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.375rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.25rem;
}

/* Focus states for accessibility */
.interview-option:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

[data-interview-target="customInput"]:focus-visible {
  outline: none;
  ring: 2px solid #06b6d4;
}
/* Landing Page Animations - Clinical Precision Aesthetic */
/* Philosophy: Functional animations that explain sequence and draw attention to critical information */

/* Fade-in on scroll */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Consensus bar fill animation */
@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--target-width);
  }
}

/* Pulse for disagreement warnings */
@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

/* Stagger reveal for cards */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

/* Consensus bar animation */
.animate-fill-bar {
  animation: fillBar 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) 0.5s forwards;
  width: 0;
}

/* Warning pulse */
.animate-pulse-warning {
  animation: pulse-warning 2s ease-in-out infinite;
}

/* Intersection Observer utility classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover states for interactive elements */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
  }
}
/*
 * 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.
 *


 */
