/* TurboGrind shared styles — dark theme matching landing page design tokens */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --text-primary: #f5f5f5;
  --text-secondary: #888;
  --text-muted: #555;
  --orange-glow: #ff6b00;
  --border: #222;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Page header */
.page-header {
  padding: 140px 0 60px;
}

.page-header .section-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Category filter pills */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  font-weight: 600;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  margin-bottom: 80px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid #1a1a1a;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 255, 136, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.product-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.product-link:hover {
  color: var(--accent);
}

/* Blog list */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid #1a1a1a;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.blog-card-category {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: 'Space Grotesk', monospace;
}

/* Blog post content */
.post-content {
  max-width: 720px;
  padding-bottom: 80px;
}

.post-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.post-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.post-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.post-content strong {
  color: var(--text-primary);
}

.post-content ul, .post-content ol {
  color: var(--text-secondary);
  margin: 16px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.post-back {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 40px;
  transition: opacity 0.2s;
}

.post-back:hover {
  opacity: 0.7;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Space Grotesk', monospace;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { gap: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .page-header { padding: 120px 0 40px; }
}
