/*
Theme Name: RF-Labs
Theme URI: https://rf-labs.eu
Description: Technical catalog theme for rf-labs.eu — RF test equipment presentation, links out to eBay listings. Dark, instrument-display styling (phosphor-green readout on a graticule grid).
Version: 0.2
Author: RF-Labs.eu
Text Domain: rflabs
*/

:root {
  --color-bg:         #0a0f0d;
  --color-surface:    #101713;
  --color-border:     #223129;
  --color-text:       #dff5e6;
  --color-text-muted: #7d9b8c;
  --color-accent:     #39ff8c;
  --color-accent-dim: #1f8f52;
  --color-amber:      #ffb347;
  --color-sold:       #ff5c5c;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container-max:    1100px;
  --grid-line:        rgba(57, 255, 140, 0.055);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a { color: var(--color-accent); }
a:hover { color: var(--color-amber); }

.nav {
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--color-text);
}
.nav-logo span { color: var(--color-accent-dim); }
.nav-links { display: flex; align-items: center; }
.nav-links .nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.nav-links a:hover { color: var(--color-accent); }

.layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.layout section[id] { scroll-margin-top: 5rem; }

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}
.hero-slide:nth-child(1) { animation: hero-fade-1 15s infinite; }
.hero-slide:nth-child(2) { animation: hero-fade-2 15s infinite; }
.hero-slide:nth-child(3) { animation: hero-fade-3 15s infinite; }
@keyframes hero-fade-1 {
  0%, 26.67% { opacity: 1; }
  33.33%, 93.33% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes hero-fade-2 {
  0%, 26.67% { opacity: 0; }
  33.33%, 60% { opacity: 1; }
  66.67%, 100% { opacity: 0; }
}
@keyframes hero-fade-3 {
  0%, 60% { opacity: 0; }
  66.67%, 93.33% { opacity: 1; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,13,.55) 0%, rgba(10,15,13,.88) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.hero-content h1 {
  font-size: 2.1rem;
  max-width: 32ch;
  margin: 0 0 1rem;
  color: var(--color-text);
}
.hero-content p {
  max-width: 48ch;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1.25rem;
}
.feature-card h3 {
  margin: 0 0 .5rem;
  font-size: .95rem;
  color: var(--color-accent);
}
.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.equipment-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1rem;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: .9rem;
  text-decoration: none;
}
.equipment-card:hover { border-color: var(--color-accent-dim); color: var(--color-accent); }

.guides-list {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .5rem 1.5rem;
}
.guides-list a { text-decoration: none; }
.guides-list a:hover { text-decoration: underline; }

.layout section h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-accent-dim);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: .5rem;
}

.equipment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.25rem;
}
.equipment-title { margin: 0 0 .35rem; font-size: 1.6rem; color: var(--color-text); }
.equipment-meta {
  color: var(--color-accent-dim);
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .03em;
}

.article-body { max-width: 72ch; }
.article-body h1 {
  font-size: 1.6rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.25rem;
  margin: 0 0 1.5rem;
}
.article-body h2 { color: var(--color-text); margin-top: 2rem; }
.article-body h3 { color: var(--color-accent-dim); margin-top: 1.5rem; }
.article-body p { margin: 1rem 0; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { margin: .4rem 0; }
.article-body a { text-decoration: underline; }

.equipment-badge-sold {
  display: inline-block;
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid var(--color-sold);
  color: var(--color-sold);
  padding: .2rem .6rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 0 6px rgba(255, 92, 92, 0.5);
}

.equipment-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.equipment-specs th, .equipment-specs td {
  text-align: left;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--color-border);
  font-size: .92rem;
}
.equipment-specs tr:last-child th, .equipment-specs tr:last-child td { border-bottom: none; }
.equipment-specs th {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  width: 30%;
}

.equipment-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #06130b;
  text-decoration: none;
  padding: .8rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  margin-top: 1.25rem;
  box-shadow: 0 0 16px rgba(57, 255, 140, 0.35);
  transition: box-shadow .15s ease, transform .15s ease;
}
.equipment-cta:hover {
  box-shadow: 0 0 24px rgba(57, 255, 140, 0.55);
  transform: translateY(-1px);
}
.equipment-cta[aria-disabled="true"] {
  background: transparent;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
  box-shadow: none;
  pointer-events: none;
}

footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding: 1.5rem;
  color: var(--color-text-muted);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .02em;
}
