/* ===== AO Projects Design System ===== */

/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;line-height:1.6;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
ul{list-style:none}

/* ===== Color Themes — Clean Dark System ===== */

/* Basis: Einheitliches neutrales Dunkel, Unterscheidung nur ueber Akzentfarbe */
:root, .theme-hub {
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --text: #f0f0f0;
  --muted: #888888;
  --accent: #c62828;
  --accent-glow: rgba(198, 40, 40, 0.15);
  --gold: #c8a44e;
  --border: #252525;
  --nav-bg: rgba(12, 12, 12, 0.92);
}

/* John — Gold als Akzent */
.theme-john {
  --accent: #c8a44e;
  --accent-glow: rgba(200, 164, 78, 0.12);
}

/* Paperclip — Gold als Akzent (wie John) */
.theme-paperclip {
  --accent: #c8a44e;
  --accent-glow: rgba(200, 164, 78, 0.12);
}

/* About — Gold als Akzent (wie John) */
.theme-about {
  --accent: #c8a44e;
  --accent-glow: rgba(200, 164, 78, 0.12);
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ===== Layout ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; text-align: center; }
.container--left { text-align: left; }
section { padding: 60px 0; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 40px; height: 40px; border-radius: 8px; }
.nav-logo span { font-weight: 700; font-size: 1rem; color: var(--text); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; margin: 4px 0; transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(12, 12, 12, 0.96); backdrop-filter: blur(16px);
  z-index: 99; padding: 40px 24px;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a { font-size: 1.2rem; color: var(--text); }
.mobile-menu a:hover { color: var(--accent); }

/* ===== Hero (Landing Page) ===== */
.hero {
  min-height: 40vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden; padding-top: 220px; padding-bottom: 180px;
}
.hero-bg {
  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: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-logo {
  width: 120px; height: 120px; margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 0 70px var(--accent-glow);
}
.hero h1 { margin-bottom: 12px; }
.hero .tagline {
  font-size: 1.1rem; color: var(--muted); margin-bottom: 8px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.hero .tagline-sub {
  font-size: 0.85rem; color: var(--gold); font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px; text-transform: uppercase; opacity: 0.7;
}

/* ===== Project Cards (Hub) ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
  cursor: pointer; display: flex; flex-direction: column;
  transform-style: preserve-3d; perspective: 800px;
}
.project-card:hover {
  transform: translateY(-8px) rotateX(2deg) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(200, 164, 78, 0.12), 0 8px 20px rgba(0,0,0,0.4);
}
.project-card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.project-card-placeholder {
  width: 100%; height: 200px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.project-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-card-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.project-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.project-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.project-card-arrow {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  margin-top: 16px; transition: gap 0.2s ease;
}
.project-card:hover .project-card-arrow { gap: 12px; }

/* Card accent — no top stripe */
.project-card--john { }
.project-card--paperclip { }
.project-card--about { }

/* ===== Footer ===== */
.footer {
  padding: 40px 0; border-top: 1px solid var(--border); text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a {
  color: var(--muted); font-size: 0.9rem; transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--muted); opacity: 0.6; }

/* ===== Subpage Hero ===== */
.subpage-hero {
  padding-top: 120px; padding-bottom: 40px; text-align: center;
}
.subpage-hero .avatar-wrap {
  width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 24px;
  padding: 3px;
  background: conic-gradient(var(--gold), transparent, var(--gold));
  box-shadow: 0 0 40px var(--accent-glow);
}
.subpage-hero .avatar-wrap img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.subpage-hero h1 { margin-bottom: 12px; }
.subpage-hero .subtitle { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== Content Sections ===== */
.content-section { padding: 48px 0; }
.content-section + .content-section { border-top: 1px solid var(--border); }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-text { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 720px; margin: 0 auto; text-align: left; }
.section-text p + p { margin-top: 16px; }

/* ===== Setup Grid ===== */
.setup-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin: 32px auto; max-width: 800px;
}
.setup-grid--row {
  grid-template-columns: repeat(6, 1fr);
}
.setup-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 16px; text-align: center;
  transition: border-color 0.3s, transform 0.2s;
}
.setup-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.setup-item-icon { font-size: 1.5rem; margin-bottom: 8px; }
.setup-item-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.setup-item-desc { font-size: 0.75rem; color: var(--muted); }

/* ===== Tags ===== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; justify-content: center; }
.tag {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem;
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
}

/* ===== Detail Cards ===== */
.detail-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-bottom: 24px;
  transition: border-color 0.3s; text-align: left;
  max-width: 100%; margin-left: auto; margin-right: auto;
}
.detail-card:hover { border-color: var(--gold); }
.theme-paperclip .detail-card { border-color: var(--gold); }
.theme-paperclip .detail-card:hover { border-color: var(--gold); }
.detail-card h3 { margin-bottom: 12px; color: var(--text); }
.detail-card p { color: var(--muted); line-height: 1.7; }
.detail-card .badge {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: 0.7rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.detail-card .link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  margin-top: 12px; transition: gap 0.2s;
}
.detail-card .link:hover { gap: 10px; }

/* ===== Lessons Learned ===== */
.lessons-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: 720px; margin: 0 auto;
}
.lesson-item {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 12px; padding: 28px 28px 24px;
  text-align: left; position: relative;
}
.lesson-item .lesson-number {
  font-size: 0.7rem; font-weight: 700; color: var(--gold);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 1px;
  margin-bottom: 10px; display: block;
}
.lesson-item h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--text); }
.lesson-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ===== Code Block / Prompt ===== */
.prompt-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin: 24px auto;
  max-width: 720px; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  color: var(--muted); line-height: 1.7; white-space: pre-wrap;
  overflow-x: auto;
}

/* ===== About Photo ===== */
.about-photo-wrap {
  width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 24px;
  overflow: hidden; border: 3px solid var(--border);
  box-shadow: 0 0 40px var(--accent-glow);
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Placeholder for Midjourney ===== */
.mj-placeholder {
  background: var(--surface-2); border: 2px dashed var(--border);
  border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  min-height: 200px; max-width: 800px; margin: 24px auto;
}
.mj-placeholder .mj-label {
  font-size: 0.7rem; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.mj-placeholder .mj-prompt {
  font-size: 0.7rem; color: var(--muted); opacity: 0.6;
  font-family: 'JetBrains Mono', monospace; text-align: center;
  line-height: 1.5; max-width: 500px;
}
.mj-placeholder .mj-size {
  font-size: 0.65rem; color: var(--muted); opacity: 0.4; margin-top: 8px;
}

/* ===== GitHub Link ===== */
.github-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 0.95rem;
  transition: gap 0.2s;
}
.github-link:hover { gap: 12px; }

/* ===== OpenClaw Ecosystem (John Page) ===== */
.ecosystem {
  max-width: 800px; margin: 0 auto;
}
.eco-center {
  text-align: center; padding: 24px; margin-bottom: 32px;
  background: var(--surface); border: 2px solid var(--gold);
  border-radius: 16px; box-shadow: 0 0 30px rgba(200, 164, 78, 0.1);
}
.eco-center-icon { font-size: 2.5rem; margin-bottom: 8px; }
.eco-center-label { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.eco-center-sub { font-size: 0.78rem; color: var(--gold); font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; margin-top: 4px; }

.eco-ring {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.eco-node {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px; text-align: left;
  transition: border-color 0.3s, transform 0.2s;
}
.eco-node:hover { transform: translateY(-3px); }
.eco-node--skills:hover { border-color: var(--gold); }
.eco-node--user:hover { border-color: #5c9eff; }
.eco-node--memory:hover { border-color: #66bb6a; }

.eco-node-icon { font-size: 1.5rem; margin-bottom: 10px; }
.eco-node h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.eco-node p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.eco-examples {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.eco-examples span {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; font-size: 0.7rem;
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-grid--row { grid-template-columns: repeat(2, 1fr); }
  section { padding: 40px 0; }
  .hero-logo { width: 80px; height: 80px; }
  .hero { min-height: 40vh; }
  .subpage-hero { padding-top: 100px; }
  .eco-ring { grid-template-columns: 1fr; }
}
