/* ============================================
   DAGM.DEV — PORTFOLIO v2
   Browser-in-browser, folder tabs, scrapbook about
   ============================================ */

:root {
  --transition: 0.4s;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --sidebar-w: 60px;
  --chrome-h: 92px;
}

/* --- LIGHT --- */
[data-theme="light"] {
  --bg: #f5f2eb;
  --bg-card: #ffffff;
  --bg-elevated: #ece9e1;
  --bg-tab: #e8e4dc;
  --bg-tab-active: #f5f2eb;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #6b6b6b;
  --accent: #1a1a1a;
  --border: #d4d0c8;
  --border-light: #e8e4dc;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.1);
  --code-bg: #f0ede6;
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;
  --selection-bg: #1a1a1a;
  --selection-text: #f5f2eb;
  --scrollbar-track: #e8e4dc;
  --scrollbar-thumb: #c4c0b8;
  --scrapbook-bg: #faf8f4;
  --scrapbook-border: #d4d0c8;
  --scrapbook-accent: #e8d5a3;
  --scrapbook-highlight: #fff3cd;
  --tab-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

/* --- DARK --- */
[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --bg-tab: #141414;
  --bg-tab-active: #0d0d0d;
  --text: #f0ede6;
  --text-secondary: #a0a0a0;
  --text-muted: #888888;
  --accent: #f0ede6;
  --border: #2a2a2a;
  --border-light: #1e1e1e;
  --shadow: 0 2px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.5);
  --code-bg: #161616;
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;
  --selection-bg: #f0ede6;
  --selection-text: #0d0d0d;
  --scrollbar-track: #111;
  --scrollbar-thumb: #333;
  --scrapbook-bg: #161616;
  --scrapbook-border: #2a2a2a;
  --scrapbook-accent: #2a2520;
  --scrapbook-highlight: #2a2520;
  --tab-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--selection-bg); color: var(--selection-text); }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-elevated);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition) ease, color var(--transition) ease;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 8px 16px; background: var(--text); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.8rem;
  border-radius: var(--radius-sm); z-index: 99999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; opacity: 1; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ============================================
   LOADER
   ============================================ */


/* ============================================
   LAYOUT
   ============================================ */

.site {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.main { grid-column: 2; }

/* ============================================
   LEFT SIDEBAR
   ============================================ */

.sidebar-left {
  position: fixed; left: 0; top: 0;
  width: var(--sidebar-w); height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 28px 0;
  z-index: 200; background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  transition: background var(--transition) ease;
}

.logo {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.1rem; color: var(--text); letter-spacing: -0.03em;
}

.social-links {
  display: flex; flex-direction: column; gap: 20px; list-style: none;
}
.social-links a {
  color: var(--text-muted); display: block; width: 18px; height: 18px;
  transition: color 0.2s, transform 0.2s;
}
.social-links a:hover { color: var(--text); transform: scale(1.15); opacity: 1; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================
   BROWSER CHROME (tab-in-tab)
   ============================================ */

.browser-chrome {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition) ease;
}

.browser-titlebar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.browser-dots {
  display: flex; gap: 6px;
}
.browser-dots .dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.browser-dots .dot:nth-child(1) { background: var(--dot-red); }
.browser-dots .dot:nth-child(2) { background: var(--dot-yellow); }
.browser-dots .dot:nth-child(3) { background: var(--dot-green); }

.browser-url {
  flex: 1;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); padding: 6px 14px;
  border-radius: 6px; border: 1px solid var(--border-light);
}
.browser-url-icon { color: var(--text-muted); display: flex; }
.browser-url-text {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary);
}

.theme-toggle-mini {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 8px; color: var(--text-muted); display: flex; align-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle-mini:hover { border-color: var(--text); color: var(--text); }

/* ============================================
   TAB BAR (folder tabs — img 4459 style)
   ============================================ */

.tab-bar {
  display: flex;
  padding: 0 8px;
  gap: 2px;
  align-items: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  padding: 10px 24px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-tab);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  transform: translateY(1px);
}

.tab:hover {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  opacity: 1;
}

.tab.active {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border);
  z-index: 2;
  transform: translateY(0px);
  box-shadow: var(--tab-shadow);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg);
}

/* ============================================
   BROWSER BODY (content area)
   ============================================ */

.browser-body {
  background: var(--bg);
  min-height: calc(100vh - var(--chrome-h));
  transition: background var(--transition) ease;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - var(--chrome-h));
  padding: 80px 60px;
  gap: 60px;
}

.hero-greeting {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.04em; margin-bottom: 20px;
  min-height: 1em;
}
.hero-role { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 20px; }
.typing-highlight {
  font-weight: 600; color: var(--text);
  border-bottom: 2px solid var(--text); padding-bottom: 1px;
}
.typing-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--text); margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-tagline {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 420px; margin-bottom: 24px;
}
.hero-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); margin-bottom: 32px;
}
.status-dot {
  width: 8px; height: 8px; background: var(--dot-green);
  border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-actions { display: flex; gap: 16px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600; border-radius: var(--radius-md);
  border: 1px solid transparent; transition: all 0.25s ease; text-decoration: none;
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); opacity: 1; }
.btn-sm { padding: 6px 14px; font-size: 0.75rem; }

/* Hero card */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  width: 100%; max-width: 380px; box-shadow: var(--shadow);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.hero-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-light);
}
.card-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; }
.card-titlebar .dot:nth-child(1) { background: var(--dot-red); }
.card-titlebar .dot:nth-child(2) { background: var(--dot-yellow); }
.card-titlebar .dot:nth-child(3) { background: var(--dot-green); }
.card-filename {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); margin-left: 8px;
}
.card-img {
  width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-body {
  padding: 20px; font-family: var(--font-mono);
  font-size: 0.78rem; line-height: 2;
}
.card-line { display: flex; gap: 12px; }
.line-number { color: var(--text-muted); user-select: none; min-width: 18px; }
.card-key { color: var(--text-muted); }
.card-status { color: var(--dot-green); }
.card-skills {
  padding-left: 30px; display: flex; flex-wrap: wrap;
  gap: 6px; margin-top: 4px;
}
.card-skill-tag {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 2px 10px; background: var(--bg-elevated);
  color: var(--text-secondary); border-radius: 999px;
  border: 1px solid var(--border-light);
}

/* ============================================
   ABOUT — SCRAPBOOK / CLIPBOARD STYLE
   ============================================ */

.about {
  padding: 80px 60px;
  border-top: 1px solid var(--border-light);
}

.about-scrapbook {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.scrapbook-card {
  background: var(--scrapbook-bg);
  border: 1px solid var(--scrapbook-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scrapbook-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Binder clip at top */
.scrapbook-main {
  padding-top: 48px;
}
.clip-top {
  position: absolute;
  top: -12px;
  left: 40px;
  z-index: 2;
}
.binder-clip {
  width: 32px;
  height: 24px;
  background: var(--text-muted);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.binder-clip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 4px;
  width: 24px;
  height: 12px;
  border: 2px solid var(--text-muted);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.scrapbook-greeting {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.scrapbook-name {
  color: var(--text);
}
.scrapbook-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--scrapbook-border);
}

.scrapbook-bio {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.scrapbook-bio p {
  margin-bottom: 14px;
}
.scrapbook-bio p:last-child {
  margin-bottom: 0;
}
.bio-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); padding: 8px 0; text-decoration: underline;
  text-underline-offset: 3px;
}
.bio-toggle:hover { color: var(--text); }

/* Sidebar cards */
.scrapbook-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scrapbook-card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--scrapbook-border);
}

/* Stats */
.stat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  min-width: 36px;
}

/* Tools */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* About social links */
.about-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.2s;
  text-decoration: none;
}
.about-social-link:hover { color: var(--text); opacity: 1; }
.about-social-link svg {
  width: 16px; height: 16px; fill: currentColor; flex-shrink: 0;
}

/* ============================================
   PROJECTS
   ============================================ */

.projects { padding: 80px 60px; border-top: 1px solid var(--border-light); }

.section-header {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 48px;
}
.section-title {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted);
}
.section-count {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
}

.projects-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

.project-row {
  display: grid; grid-template-columns: 40px 1fr auto auto;
  gap: 32px; align-items: center; padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s; text-decoration: none; color: inherit;
}
.project-row:first-child { border-top: 1px solid var(--border-light); }
.project-row:hover { background: var(--bg-card); }
.project-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.project-title {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700; letter-spacing: -0.02em; transition: color 0.2s;
}
.project-row:hover .project-title { opacity: 0.7; }
.project-status {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.project-arrow { color: var(--text-muted); transition: transform 0.25s, color 0.2s; }
.project-row:hover .project-arrow { transform: translate(4px, -4px); color: var(--text); }

/* ============================================
   SKILLS
   ============================================ */

.skills { padding: 80px 60px; border-top: 1px solid var(--border-light); }

.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
}
.skill-group h3 {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 16px; font-weight: 500;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 16px;
  background: var(--bg-card); color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-tag:hover { border-color: var(--text); color: var(--text); }
.skills-toggle, .tools-toggle {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 24px; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); cursor: pointer; margin-top: 24px;
  transition: border-color 0.2s, color 0.2s;
}
.skills-toggle { display: block; margin-left: auto; margin-right: auto; }
.skills-toggle:hover, .tools-toggle:hover { border-color: var(--text); color: var(--text); }

/* ============================================
   IDEAS — BRAINDUMP / BLOG
   ============================================ */

.ideas { padding: 80px 60px; min-height: calc(100vh - 92px); }
.ideas-empty {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-muted); text-align: center; padding: 60px 0;
}
.ideas-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.ideas-card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--border-light);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: background 0.2s;
}
.ideas-card:first-child { border-top: 1px solid var(--border-light); }
.ideas-card:hover { background: var(--bg-card); }
.ideas-card-content { min-width: 0; }
.ideas-card-date {
  font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 8px; display: block;
}
.ideas-card-title {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
  line-height: 1.3;
}
.ideas-card-excerpt {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ideas-card-cover {
  width: 120px; height: 120px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
}
.ideas-card-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Single Post */
.ideas-back {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-muted); padding: 0 0 24px 0;
  display: block; transition: color 0.2s;
}
.ideas-back:hover { color: var(--text); }
.ideas-article { max-width: 680px; margin: 0 auto; }
.ideas-article-date {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); display: block; margin-bottom: 12px;
}
.ideas-article-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 32px;
}
.ideas-article-cover { margin-bottom: 32px; }
.ideas-article-cover img {
  width: 100%; border-radius: var(--radius-lg); display: block;
}
.ideas-article-body {
  font-size: 1rem; line-height: 1.85; color: var(--text-secondary);
}
.ideas-article-body p { margin-bottom: 20px; }
.ideas-article-body h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin: 40px 0 16px; letter-spacing: -0.02em;
}
.ideas-article-body h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--text); margin: 32px 0 12px;
}
.ideas-article-body img {
  max-width: 100%; border-radius: var(--radius-sm);
  margin: 24px 0; display: block; box-shadow: var(--shadow);
}
.ideas-article-body blockquote {
  border-left: 3px solid var(--border); padding-left: 20px;
  margin: 24px 0; font-style: italic; color: var(--text-muted);
}
.ideas-article-body ul, .ideas-article-body ol {
  padding-left: 24px; margin-bottom: 20px;
}
.ideas-article-body li { margin-bottom: 6px; }

/* CMS Ideas Editor */
.ideas-admin-list { margin-bottom: 16px; }
.idea-admin-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
}
.idea-admin-row:first-child { border-top: 1px solid var(--border-light); }
.idea-admin-title { font-weight: 600; }
.idea-status-badge {
  font-family: var(--font-mono); font-size: 0.65rem;
  padding: 2px 10px; border-radius: 999px; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.idea-status-badge.published { background: rgba(40,200,64,0.15); color: var(--dot-green); }
.idea-status-badge.draft { background: var(--bg-elevated); color: var(--text-muted); }
.idea-admin-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.idea-toolbar {
  display: flex; align-items: center; gap: 2px;
  padding: 4px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.idea-toolbar button, .idea-toolbar-imgbtn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 4px; cursor: pointer;
  color: var(--text-secondary); font-size: 0.8rem; transition: background 0.15s;
}
.idea-toolbar button:hover, .idea-toolbar-imgbtn:hover {
  background: var(--bg-card); color: var(--text);
}
.idea-toolbar-divider {
  width: 1px; height: 20px; background: var(--border); margin: 0 4px;
}
.idea-body-editor {
  min-height: 350px; padding: 20px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.92rem; line-height: 1.8; color: var(--text); outline: none;
  overflow-y: auto;
}
.idea-body-editor:focus { border-color: var(--text-muted); }
.idea-body-editor:empty::before {
  content: 'Write your thoughts...'; color: var(--text-muted); pointer-events: none;
}
.idea-body-editor img {
  max-width: 100%; border-radius: var(--radius-sm); margin: 12px 0; display: block;
}
.idea-cover-upload { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.idea-cover-preview img {
  width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ideas-editor-actions { margin-top: 16px; }
.idea-upload-btn { cursor: pointer; }
.idea-upload-status {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 120px 60px; text-align: center; border-top: 1px solid var(--border-light);
}
.contact-heading {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 20px;
}
.contact-sub {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 500px; margin: 0 auto 32px;
}
.contact-links {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text);
  padding: 12px 24px; border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover { border-color: var(--text); background: var(--bg-card); opacity: 1; }
.contact-link svg { flex-shrink: 0; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 48px 60px; text-align: center; border-top: 1px solid var(--border-light);
}
.site-footer p {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.admin { min-height: 100vh; background: var(--bg); }
.admin-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 100;
}
.admin-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1rem; color: var(--text);
}
.admin-badge {
  font-family: var(--font-mono); font-size: 0.6rem; background: var(--bg-elevated);
  padding: 2px 8px; border-radius: 999px; color: var(--text-muted);
  margin-left: 8px; vertical-align: middle; border: 1px solid var(--border);
}
.admin-bar-actions { display: flex; align-items: center; gap: 12px; }
.admin-user { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.admin-content { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.admin-login { display: flex; justify-content: center; align-items: center; min-height: 60vh; }
.admin-login-card {
  text-align: center; padding: 48px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 400px;
}
.admin-login-card h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.admin-login-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }
.editor-section {
  margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-light);
}
.editor-section h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.field-group { display: grid; gap: 12px; }
.field-group label {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-top: 8px;
}
.field-group input, .field-group textarea {
  width: 100%; padding: 10px 14px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: 0.85rem; outline: none;
  transition: border-color 0.2s;
}
.field-group input:focus, .field-group textarea:focus { border-color: var(--text); }
.project-edit-row {
  display: grid; grid-template-columns: 1fr 1fr auto auto;
  gap: 8px; align-items: end; margin-bottom: 8px;
}
.project-edit-row input {
  width: 100%; padding: 8px 12px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: 0.8rem; outline: none;
}
.project-edit-row input:focus { border-color: var(--text); }
.btn-icon {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); padding: 8px; font-size: 0.8rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-icon:hover { border-color: var(--dot-red); color: var(--dot-red); }
.admin-save-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; position: sticky; bottom: 0; background: var(--bg);
  border-top: 1px solid var(--border); margin-top: 20px;
}
.save-status { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 60px 40px; }
  .hero-card { max-width: 300px; }
  .about-scrapbook { grid-template-columns: 1fr; }
  .scrapbook-bio { max-height: 7.2em; overflow: hidden; position: relative; transition: max-height 0.4s ease; }
  .scrapbook-bio.bio-expanded { max-height: 2000px; }
  .bio-toggle { display: block; }
}

@media (max-width: 768px) {
  .site { grid-template-columns: 1fr; }
  .sidebar-left { display: none; }
  .hero { grid-template-columns: 1fr; padding: 60px 24px; min-height: auto; gap: 32px; }
  .about { padding: 48px 24px; }
  .projects { padding: 48px 24px; }
  .skills { padding: 48px 24px; }
  .ideas { padding: 48px 24px; }
  .ideas-card { grid-template-columns: 1fr; }
  .ideas-card-cover { width: 100%; height: 180px; }
  .ideas-article { max-width: 100%; }
  .contact { padding: 80px 24px; }
  .site-footer { padding: 32px 24px; }
  .project-row { grid-template-columns: 1fr auto; gap: 16px; }
  .project-num, .project-status { display: none; }
  .browser-titlebar { padding: 8px 12px; }
  .browser-dots .dot { width: 10px; height: 10px; }
  .tab { padding: 8px 16px; font-size: 0.65rem; }
  .admin-content { padding: 24px 16px; }
  .project-edit-row { grid-template-columns: 1fr 1fr; }
  .scrapbook-bio { max-height: 5.4em; overflow: hidden; position: relative; transition: max-height 0.4s ease; }
  .scrapbook-bio.bio-expanded { max-height: 2000px; }
  .bio-toggle { display: block; }
}

/* ============================================
   ANIMATIONS (GSAP initial states)
   ============================================ */

.reveal { opacity: 0; transform: translateY(30px); }
.reveal-line { opacity: 0; transform: translateY(15px); }
