/*
Theme Name: MaakLab Cyber Bento (Educatie Editie)
Theme URI: https://maaklab.eu
Author: MaakLab
Author URI: https://maaklab.eu
Description: High-tech Cyber Bento Landing Page Theme voor MaakLab (.eu / .pro) met live interactieve widgets voor educatieve subdomeinen (IoT & Linux).
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: maaklab-bento
*/

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --card-bg: rgba(14, 20, 32, 0.78);
  --card-border: rgba(56, 189, 248, 0.15);
  --card-hover-border: rgba(56, 189, 248, 0.45);
  --cyan-glow: #00f2fe;
  --cyan-accent: #38bdf8;
  --emerald-glow: #10b981;
  --emerald-accent: #34d399;
  --amber-accent: #fbbf24;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.site-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-tag {
  color: var(--cyan-glow);
  font-family: var(--font-mono);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tld-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.25rem;
}

.tld-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tld-btn.active {
  background: var(--cyan-glow);
  color: #050b14;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  color: var(--emerald-accent);
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  flex: 1;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: 0 12px 30px -10px rgba(0, 242, 254, 0.15);
}

.card-iot {
  grid-column: span 7;
  border-color: rgba(0, 242, 254, 0.25);
}

.card-linux {
  grid-column: span 5;
  border-color: rgba(16, 185, 129, 0.25);
}

.card-extra {
  grid-column: span 6;
}

.card-stats, .card-hardware, .card-pipeline {
  grid-column: span 4;
}

.card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.card-title-group h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subdomain-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.subdomain-tag.linux-tag {
  color: var(--emerald-accent);
  background: rgba(16, 185, 129, 0.1);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.iot-telemetry-preview {
  background: rgba(5, 11, 20, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.sparkline-svg {
  width: 100%;
  height: 44px;
  overflow: visible;
}

.linux-terminal-preview {
  background: #05080f;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.term-dot.r { background: #ef4444; }
.term-dot.y { background: #f59e0b; }
.term-dot.g { background: #10b981; }

.terminal-body {
  color: #cbd5e1;
  line-height: 1.65;
}

.term-green { color: var(--emerald-accent); }
.term-cyan { color: var(--cyan-accent); }
.term-dim { color: var(--text-dim); }

.card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00f2fe, #0ea5e9);
  color: #050b14;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
  transition: all 0.2s ease;
}

.btn-launch:hover {
  transform: translateX(3px);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.5);
}

.btn-launch.emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.btn-launch.emerald:hover {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.5rem;
}

.metric-foot {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

@media (max-width: 992px) {
  .card-iot, .card-linux, .card-extra, .card-stats, .card-hardware, .card-pipeline {
    grid-column: span 12 !important;
  }
  .site-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}
