/*
Theme Name: AI Clone
Theme URI: https://example.com
Author: Dirk Jan Buter
Description: A dark cyberpunk personal website theme built for an AI Clone. The AI canvas shortcode takes the full-screen hero. Swap out CLONE_NAME for the actual persona name.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ai-clone
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --c-bg:          #050810;
  --c-bg-2:        #0a0f1e;
  --c-bg-card:     #0d1528;
  --c-border:      #1a2545;
  --c-cyan:        #00e5ff;
  --c-cyan-dim:    #00b8cc;
  --c-magenta:     #d400ff;
  --c-text:        #c8d8f0;
  --c-text-dim:    #5a7298;
  --c-white:       #ffffff;
  --c-danger:      #ff2d55;

  /* Typography */
  --f-display: 'Orbitron', 'Share Tech Mono', monospace;
  --f-body:    'Inter', 'Segoe UI', sans-serif;
  --f-mono:    'Share Tech Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Signature glow */
  --glow-cyan:    0 0 20px rgba(0, 229, 255, 0.4), 0 0 60px rgba(0, 229, 255, 0.1);
  --glow-magenta: 0 0 20px rgba(212, 0, 255, 0.4), 0 0 60px rgba(212, 0, 255, 0.1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-white); }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--c-white);
}
h1 { font-size: clamp(2.2rem, 6vw, 5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
h4 { font-size: 1rem; letter-spacing: 0.1em; }

p { margin-bottom: 1.25rem; max-width: 68ch; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

/* ============================================================
   SCANLINE OVERLAY — signature element
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient( 
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.015) 2px,
    rgba(0, 229, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: var(--space-md);
  background: linear-gradient(to bottom, rgba(5,8,16,0.95), rgba(5,8,16,0));
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}

.site-logo {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--c-white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: var(--glow-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

/* NAV */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.main-nav a {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--c-cyan); text-shadow: var(--glow-cyan); }

.nav-cta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-bg) !important;
  background: var(--c-cyan);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--c-white) !important;
  box-shadow: var(--glow-cyan);
  color: var(--c-bg) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-cyan);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 2px;
}

/* ============================================================
   HERO — AI CANVAS (full-screen)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-label {
  position: absolute;
  top: 80px;
  right: var(--space-md);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--c-text-dim);
  text-transform: uppercase;
}
.hero-label .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-danger);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

/* The shortcode wrapper — takes full remaining height */
.ai-canvas-wrap {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind the canvas */
.ai-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 229, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(212, 0, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.ai-canvas-wrap > * {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--c-text-dim);
  text-transform: uppercase;
  animation: fade-up 3s ease-in-out infinite;
}
.scroll-hint svg { opacity: 0.4; }

@keyframes fade-up {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.8; transform: translateX(-50%) translateY(-6px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-text h2 {
  margin-bottom: var(--space-sm);
}
.about-text p {
  color: var(--c-text);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.stat-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: var(--space-md);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover { border-color: rgba(0,229,255,0.3); }
.stat-card:hover::before { opacity: 1; }

.stat-value {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-cyan);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: var(--glow-cyan);
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

/* ============================================================
   CAPABILITIES SECTION
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.cap-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: var(--space-md);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.25);
}

.cap-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
  color: var(--c-cyan);
}

.cap-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}
.cap-card p {
  font-size: 0.9rem;
  color: var(--c-text-dim);
  margin-bottom: 0;
  max-width: none;
}

/* Accent bar */
.cap-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--c-cyan), var(--c-magenta));
  transition: width 0.4s ease;
}
.cap-card:hover::after { width: 100%; }

/* ============================================================
   TALK SECTION (secondary shortcode slot)
   ============================================================ */
.talk-section {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  text-align: center;
}
.talk-section h2 { margin-bottom: var(--space-sm); }
.talk-section .sub {
  color: var(--c-text-dim);
  margin-bottom: var(--space-lg);
  margin-inline: auto;
}
.talk-placeholder {
  background: var(--c-bg-card);
  border: 1px dashed var(--c-border);
  border-radius: 4px;
  padding: var(--space-lg);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
}

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.post-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.25);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-bg-2), var(--c-border));
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body { padding: var(--space-sm) var(--space-md); }
.post-card-date {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.post-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.post-card p {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin-bottom: var(--space-sm);
  max-width: none;
}
.post-card a.read-more {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--c-border);
}
.section-head a {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  transition: color 0.2s;
}
.section-head a:hover { color: var(--c-cyan); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: var(--space-lg);
  background: var(--c-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand {
  font-family: var(--f-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--c-text-dim);
}

.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
}
.footer-links a {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.footer-links a:hover { color: var(--c-cyan); }

/* Terminal line at very bottom */
.footer-terminal {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--c-border);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--c-text-dim);
  letter-spacing: 0.08em;
  text-align: center;
}
.footer-terminal .blink {
  animation: blink 1.1s step-end infinite;
  color: var(--c-cyan);
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--c-cyan);
  color: var(--c-bg);
}
.btn-primary:hover {
  background: var(--c-white);
  color: var(--c-bg);
  box-shadow: var(--glow-cyan);
}
.btn-outline {
  background: transparent;
  color: var(--c-cyan);
  border: 1px solid var(--c-cyan);
}
.btn-outline:hover {
  background: rgba(0,229,255,0.08);
  box-shadow: var(--glow-cyan);
  color: var(--c-white);
}

/* ============================================================
   WIDGET AREAS
   ============================================================ */
.widget-area { padding: var(--space-md); }
.widget { margin-bottom: var(--space-md); }
.widget-title {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.entry-content {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--space-xl);
  padding-inline: var(--space-md);
}
.entry-header {
  margin-bottom: var(--space-lg);
}
.entry-content p { color: var(--c-text); }
.entry-content h2, .entry-content h3 { margin-block: var(--space-md) var(--space-sm); }
.entry-content ul, .entry-content ol {
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}
.entry-content blockquote {
  border-left: 3px solid var(--c-cyan);
  padding-left: var(--space-md);
  color: var(--c-text-dim);
  font-style: italic;
  margin-block: var(--space-md);
}
.entry-content code {
  font-family: var(--f-mono);
  background: var(--c-bg-card);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  font-size: 0.88em;
  color: var(--c-cyan);
}
.entry-content pre {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: var(--space-md);
  overflow-x: auto;
  margin-block: var(--space-md);
}
.entry-content pre code { background: none; padding: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: fixed; inset: 64px 0 0; background: var(--c-bg); padding: var(--space-lg); z-index: 99; }
  .main-nav.open ul { flex-direction: column; gap: var(--space-md); }
  .nav-toggle { display: block; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
