/**
 * Rest Assured-branded Reveal.js theme
 * Semantic colors: css/themes.css
 */

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

:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

.reveal-viewport {
  background: var(--pw-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--pw-gradient-a), transparent),
    radial-gradient(circle at 100% 100%, var(--pw-gradient-b), transparent 40%);
}

.reveal {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 400;
  color: var(--pw-text);
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--pw-text);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.reveal h1 {
  font-size: 2.4em;
  background: linear-gradient(135deg, var(--pw-h1-gradient-start) 0%, var(--pw-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal h2 {
  font-size: 1.6em;
  color: var(--pw-green);
  margin-bottom: 0.6em;
}

.reveal h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.35em;
  background: linear-gradient(90deg, var(--pw-green), transparent);
  border-radius: 2px;
}

.reveal h3 {
  font-size: 1.1em;
  color: var(--pw-muted);
  font-weight: 500;
}

.reveal p,
.reveal li {
  line-height: 1.55;
  color: var(--pw-text);
}

.reveal strong {
  color: var(--pw-green);
  font-weight: 600;
}

.reveal a {
  color: var(--pw-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.reveal a:hover {
  border-bottom-color: var(--pw-green);
}

.reveal ul,
.reveal ol {
  text-align: left;
}

.reveal li {
  margin-bottom: 0.45em;
}

.reveal li::marker {
  color: var(--pw-green);
}

.reveal code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--pw-surface-2);
  color: var(--pw-green);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--pw-border);
}

.reveal pre {
  width: 100%;
  margin: 0.8em 0;
  box-shadow: 0 8px 32px var(--pw-shadow);
  border-radius: 10px;
  border: 1px solid var(--pw-border);
}

.reveal pre code.hljs {
  background: var(--pw-code-bg);
  color: var(--pw-code-text);
}

.reveal pre code {
  display: block;
  padding: 1em 1.2em;
  background: var(--pw-code-bg);
  color: var(--pw-code-text);
  border: none;
  font-size: 0.55em;
  line-height: 1.6;
  max-height: 420px;
  overflow: auto;
}

.reveal .hljs-keyword,
.reveal .hljs-built_in {
  color: #ff7b72;
}

.reveal .hljs-string {
  color: var(--pw-green);
}

.reveal .hljs-function,
.reveal .hljs-title {
  color: #d2a8ff;
}

.reveal .hljs-comment {
  color: #6e7681;
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--pw-green-dark), var(--pw-green));
}

.reveal .controls button {
  color: var(--pw-green);
}

.reveal .slide-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pw-muted);
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 4px;
  padding: 4px 8px;
}

.reveal .footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pw-green-dark), var(--pw-green), transparent);
  z-index: 20;
  pointer-events: none;
}

.slide-title {
  text-align: center;
}

.slide-title .logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.slide-title .logo-wrap img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 24px var(--pw-green-glow));
}

.slide-title .wordmark {
  font-size: 3.2em;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--pw-h1-gradient-start) 30%, var(--pw-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-title .subtitle {
  font-size: 0.95em;
  color: var(--pw-muted);
  margin-top: 0.5em;
}

.slide-title .badge,
.reveal .badge {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.35em 1em;
  font-family: var(--font-mono);
  font-size: 0.45em;
  color: var(--pw-green);
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 999px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.72em;
}

.feature-card {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: var(--pw-green);
  box-shadow: 0 0 20px var(--pw-green-glow);
}

.feature-card .icon {
  font-size: 1.4em;
  margin-bottom: 0.3em;
}

.feature-card h4 {
  color: var(--pw-green);
  font-size: 1em;
  margin: 0 0 0.4em;
}

.feature-card p {
  color: var(--pw-muted);
  font-size: 0.9em;
  margin: 0;
  line-height: 1.4;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.78em;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  border-left: 3px solid var(--pw-green);
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--pw-bg);
  background: var(--pw-green);
  border-radius: 50%;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  font-size: 0.75em;
}

.terminal {
  background: var(--pw-code-bg);
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.55em;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6em 1em;
  background: var(--pw-surface);
  border-bottom: 1px solid var(--pw-border);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-body {
  padding: 1em 1.2em;
  color: var(--pw-code-text);
  line-height: 1.7;
}

.terminal-body .prompt {
  color: var(--pw-green);
}

.terminal-body .comment {
  color: #6e7681;
}

.compare-table {
  width: 100%;
  font-size: 0.65em;
  border-collapse: collapse;
  margin-top: 0.5em;
}

.compare-table th,
.compare-table td {
  padding: 0.6em 1em;
  border: 1px solid var(--pw-border);
  text-align: left;
}

.compare-table th {
  background: var(--pw-surface);
  color: var(--pw-green);
  font-weight: 600;
}

.compare-table td {
  background: var(--pw-surface-2);
}

.compare-table tr:hover td {
  background: var(--pw-table-hover);
}

.compare-table.compact {
  font-size: 0.52em;
}

.compare-table.compact td,
.compare-table.compact th {
  padding: 0.45em 0.7em;
}

.compare-table.compact .group-row td {
  background: var(--pw-surface);
  color: var(--pw-green);
  font-weight: 600;
  font-size: 1.05em;
}

.command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
  font-size: 0.55em;
}

.cmd-tag {
  font-family: var(--font-mono);
  padding: 0.25em 0.65em;
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 4px;
  color: var(--pw-green);
}

.pom-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  font-size: 0.62em;
  margin-top: 1rem;
}

.pom-box {
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
}

.pom-box h4 {
  color: var(--pw-green);
  margin: 0 0 0.5em;
  font-size: 0.95em;
}

.pom-box ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.9em;
  color: var(--pw-muted);
}

.pom-arrow {
  font-size: 2em;
  color: var(--pw-green);
}

.page-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  font-size: 0.58em;
  margin-top: 0.8rem;
}

.page-map-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5em 0.8em;
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  color: var(--pw-green);
}

.page-map-item span {
  color: var(--pw-muted);
  font-family: var(--font-sans);
  font-size: 0.85em;
}

.slide-cta {
  text-align: center;
}

.slide-cta .links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.7em;
}

.slide-cta .link-card {
  padding: 1rem 1.5rem;
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  min-width: 200px;
  transition: border-color 0.2s;
}

.slide-cta .link-card:hover {
  border-color: var(--pw-green);
}

.slide-cta .link-card strong {
  display: block;
  margin-bottom: 0.3em;
}

.slide-cta .link-card img {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.5rem;
}

.reveal .icon-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.reveal h3.icon-heading {
  justify-content: flex-start;
  font-size: 0.95em;
}

.reveal .feature-card .icon-heading {
  justify-content: flex-start;
  font-size: 0.95em;
  margin-bottom: 0.4em;
}

.reveal .tool-list {
  text-align: left;
}

.reveal .slides section .fragment.fade-up {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.reveal .slides section .fragment.fade-up.visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal .slides section[data-auto-animate] {
  transition: none;
}
