/* ============================================
   exploit.bot Terminal Theme - Job Generator
   ============================================ */

/* CSS Custom Properties - Design System */
:root {
  /* Backgrounds - exploit.bot theme */
  --bg: #0d0d0d;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --bg-card: #111111;
  --panel: #1e1e1e;
  
  /* Borders */
  --border: #2a2a2a;
  --border-light: #333333;
  --border-hover: #444444;
  
  /* Text */
  --text: #cccccc;
  --text-bright: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  
  /* Functional */
  --danger: #f87171;
  --success: #28ca41;
  --warning: #ffbd2e;
  --error: #ef4444;
  --terminal-red: #ff5f57;
  --terminal-yellow: #ffbd2e;
  --terminal-green: #28ca41;
  
  /* Typography - MONOSPACE */
  --font-mono: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  
  /* Font sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 0.9375rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-2xl: 1.25rem;
  --font-size-3xl: 1.5rem;
  --font-size-4xl: 2rem;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.6);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: var(--line-height-normal);
  color: var(--text);
  background: linear-gradient(135deg, #0d0d0d 0%, #141414 50%, #0d0d0d 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grid Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Selection */
::selection {
  background: #444;
  color: #fff;
}

/* Container */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* Header - Terminal Style */
.header {
  background: rgba(13, 13, 13, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

/* Logo with Terminal Prefix */
.logo {
  font-size: var(--font-size-3xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin-bottom: var(--space-2);
}

.logo::before {
  content: "$ ";
  color: var(--text-dim);
}

.tagline {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Navigation - Terminal Style */
.header-nav {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-transform: lowercase;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-tertiary);
}

.nav-icon {
  font-size: 1em;
  opacity: 0.8;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--space-8) var(--space-4);
  max-width: 100%;
  position: relative;
  z-index: 1;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.section-header h2::before {
  content: "# ";
  color: var(--text-dim);
}

.section-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
}

/* Form Styles */
.job-form {
  max-width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-mono);
  line-height: var(--line-height-relaxed);
  resize: vertical;
  transition: all var(--transition-normal);
  background-color: var(--bg-secondary);
  color: var(--text);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-mono);
  background-color: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition-normal);
}

.form-select:focus {
  outline: none;
  border-color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-normal);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
  color: var(--text-dim);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--text-muted);
}

.char-count {
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  margin-top: var(--space-2);
}

/* Button Styles - Terminal Aesthetic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 400;
  font-family: var(--font-mono);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--border-light);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-primary:hover {
  background: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.btn-large {
  width: 100%;
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
  min-height: 52px;
}

.btn-icon-btn {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  min-width: 40px;
  min-height: 40px;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-icon-btn:hover {
  background-color: var(--border-light);
  border-color: var(--border-hover);
  color: var(--text);
}

/* Loading States */
.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading Section */
.loading-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.loading-container {
  max-width: 320px;
}

.loading-animation {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

.pulse-dot:nth-child(1) { animation-delay: 0s; }
.pulse-dot:nth-child(2) { animation-delay: 0.3s; }
.pulse-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  30% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.loading-title {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.loading-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

.loading-progress {
  width: 100%;
  height: 4px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  width: 100%;
  height: 100%;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--text-dim), var(--text-muted));
  border-radius: var(--radius-full);
  animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; transform: translateX(-100%); }
  50% { width: 70%; transform: translateX(0); }
  100% { width: 100%; transform: translateX(0); }
}

/* Results Section */
.results-section {
  animation: fadeInUp 0.5s ease-out;
}

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

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.results-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--text-bright);
}

.action-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.action-buttons .btn {
  flex: 1;
  min-width: 140px;
}

/* Materials - Card Style */
.materials-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.material-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.material-section:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.material-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--transition-normal);
}

.material-header:hover {
  background-color: var(--panel);
}

.material-header h3 {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.material-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.copy-btn {
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.copy-btn:hover {
  background-color: var(--border-light);
  color: var(--text);
}

.copy-btn.copied {
  background-color: var(--success);
  color: var(--bg);
  border-color: var(--success);
}

.toggle-icon {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  transition: transform var(--transition-normal);
}

.material-section.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.material-content {
  padding: var(--space-6);
  line-height: var(--line-height-relaxed);
  color: var(--text-muted);
  max-height: 500px;
  overflow-y: auto;
  transition: all var(--transition-normal);
}

.material-section.collapsed .material-content {
  max-height: 0;
  padding: 0 var(--space-6);
  overflow: hidden;
}

.material-content p {
  margin-bottom: var(--space-4);
}

.material-content p:last-child {
  margin-bottom: 0;
}

/* Loading Placeholder */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.shimmer-line {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-tertiary) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite;
}

.shimmer-line:nth-child(1) { width: 100%; }
.shimmer-line:nth-child(2) { width: 85%; }
.shimmer-line:nth-child(3) { width: 70%; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-card);
  color: var(--text);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
  font-size: var(--font-size-sm);
}

.toast.show {
  display: block;
}

.toast.hide {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
}

/* Footer */
.footer {
  background: var(--bg);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-size: var(--font-size-xs);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.footer-main {
  margin: 0;
  color: var(--text-dim);
}

.footer-brand {
  margin: 0;
  color: var(--text-dim);
  transition: color var(--transition-normal);
}

.footer-brand a,
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-brand a:hover,
.footer a:hover {
  color: var(--text);
}

/* ============================================
   How to Use Page Styles
   ============================================ */

.how-to-use-container {
  max-width: 800px;
  margin: 0 auto;
}

.guide-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.guide-section:hover {
  border-color: var(--border-light);
}

.guide-section h2 {
  color: var(--text-bright);
  font-size: var(--font-size-xl);
  font-weight: 500;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.guide-section h2::before {
  content: "# ";
  color: var(--text-dim);
}

.step-card {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--border-light);
  color: var(--text);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--text);
  font-size: var(--font-size-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.step-content p {
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.tip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.tip::before {
  content: "tip: ";
  color: var(--text-dim);
}

.feature-list {
  list-style: none;
  margin-top: var(--space-4);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "→";
  color: var(--text-dim);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.feature-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

.feature-card h3 {
  color: var(--text);
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-sm);
}

.best-practices {
  margin-top: var(--space-6);
}

.practice-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.practice-item:hover {
  border-color: var(--border-light);
}

.practice-item h4 {
  color: var(--text);
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.practice-item p {
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
}

.faq {
  margin-top: var(--space-6);
}

.faq-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-item h4 {
  color: var(--text);
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.faq-item p {
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
}

.cta-section {
  text-align: center;
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.cta-section p {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-6);
}

/* ============================================
   Terminal Window Component
   ============================================ */

.terminal-window {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28ca41; }

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  padding-right: 36px;
  color: var(--text-dim);
  font-size: 12px;
}

.terminal-body {
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.9;
  text-align: left;
}

.prompt { color: var(--text-muted); }
.command { color: var(--text); }
.output { color: var(--text-dim); padding-left: 18px; }
.output.success { color: var(--text-muted); }

.cursor-blink {
  color: var(--text-dim);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.typing-line {
  opacity: 0;
  animation: fadeInLine 0.5s forwards;
}

.line-1 { animation-delay: 0.3s; }
.line-2 { animation-delay: 0.9s; }
.line-3 { animation-delay: 1.5s; }
.line-4 { animation-delay: 2.1s; }

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

/* ============================================
   Utility Classes
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-bright { color: var(--text-bright); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .main-content {
    padding: var(--space-10) var(--space-6);
  }
  
  .logo {
    font-size: var(--font-size-4xl);
  }
  
  .job-form {
    max-width: 540px;
  }
  
  .loading-container {
    max-width: 400px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .main-content {
    padding: var(--space-12) var(--space-8);
  }

  .header-nav {
    gap: var(--space-6);
  }

  .nav-link {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
  }
  
  .job-form {
    max-width: 720px;
  }
  
  .form-textarea {
    padding: var(--space-5);
  }
  
  .results-header {
    flex-direction: row;
    align-items: center;
  }
  
  .action-buttons {
    justify-content: flex-end;
  }
  
  .action-buttons .btn {
    flex: none;
    min-width: 160px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .main-content {
    padding: var(--space-16) var(--space-12);
  }
  
  .job-form {
    max-width: 900px;
  }
  
  .materials-container {
    gap: var(--space-6);
  }
  
  .material-content {
    padding: var(--space-8);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .main-content {
    padding: var(--space-20) var(--space-16);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .header {
    padding: var(--space-4);
  }
  
  .logo {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-1);
  }
  
  .tagline {
    font-size: var(--font-size-xs);
  }
  
  .loading-section {
    min-height: 300px;
  }
  
  .material-content {
    max-height: 300px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .spinner {
    border-width: 1px;
  }
}

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