/* ============================================
   THEME VARIABLES
   ============================================ */

/* PRO Theme (Dark with orange accents - Don Ho style) */
[data-theme="pro"] {
  --bg: #0b0c10;
  --bg-alt: #11131a;
  --sidebar-bg: #0a0a0a;
  --content-bg: #fafafa;
  --fg: #1a1a1a;
  --fg-light: #f5f5f5;
  --muted: #666;
  --accent: #e8743b;
  --accent-hover: #f78c46;
  --border: #ddd;
  --sidebar-border: #262b35;
  --section-heading: #e8743b;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-heading: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


/* HACKER Theme (Terminal green on black) */
[data-theme="hacker"] {
  --bg: #151515;
  --bg-alt: #1a1a1a;
  --sidebar-bg: #0d0d0d;
  --content-bg: #1a1a1a;
  --fg: #b5e853;
  --fg-light: #b5e853;
  --muted: #6a9e3d;
  --accent: #b5e853;
  --accent-hover: #d4ff6f;
  --border: #333;
  --sidebar-border: #333;
  --section-heading: #b5e853;
  --font-body: 'Anonymous Pro', monospace;
  --font-heading: 'Anonymous Pro', monospace;
  --font-mono: 'Anonymous Pro', monospace;
}

/* ============================================
   BASE STYLES
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   THEME SWITCHER
   ============================================ */

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sidebar-border);
}

.theme-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-light);
  opacity: 0.7;
}

.theme-buttons {
  display: flex;
  gap: 6px;
}

.theme-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  background: transparent;
}

.theme-btn:hover {
  transform: scale(1.1);
}

.theme-btn.active {
  border-color: var(--accent);
}

.theme-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}


.hacker-icon {
  background: linear-gradient(135deg, #151515 50%, #b5e853 50%);
}

.pro-icon {
  background: linear-gradient(135deg, #0a0a0a 50%, #e8743b 50%);
}

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

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
}

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

.sidebar {
  background-color: var(--sidebar-bg);
  padding: 24px 20px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: fit-content;
  max-height: 100vh;
  overflow-y: auto;
  transition: background-color 0.3s ease;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid var(--accent);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--fg-light);
}

.tagline {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--fg-light);
  opacity: 0.8;
  line-height: 1.4;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--fg-light);
  opacity: 0.7;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.nav a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--fg-light);
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

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

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--sidebar-border);
}

.links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.content {
  background-color: var(--content-bg);
  padding: 40px 48px;
  transition: background-color 0.3s ease;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--section-heading);
}

section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

section p {
  margin: 0 0 12px;
}

section ul {
  margin: 0;
  padding-left: 20px;
}

section li {
  margin-bottom: 6px;
}

.split-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.split-list li {
  margin: 0;
}

/* ============================================
   PROJECTS & EXPERIENCE
   ============================================ */

.project,
.exp {
  margin-top: 24px;
}

.project + .project,
.exp + .exp {
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.project:first-of-type,
.exp:first-of-type {
  margin-top: 0;
}

.project h3,
.exp h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.proj-meta,
.exp-meta {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Date badges for Pro theme */
.date-badge {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-right: 4px;
}

.date-badge.now {
  background: var(--accent);
}

.proj-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  gap: 16px;
}

.proj-links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.proj-links a:hover {
  text-decoration: underline;
}

/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--accent);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 24px 16px;
}

/* ============================================
   THEME-SPECIFIC OVERRIDES
   ============================================ */


/* HACKER Theme Specifics */
[data-theme="hacker"] .page {
  background: var(--bg);
  border: 1px dashed #333;
  margin: 32px auto;
}

[data-theme="hacker"] .sidebar {
  border-right: 1px dashed #333;
}

[data-theme="hacker"] .name::before {
  content: "./ ";
  opacity: 0.5;
}

[data-theme="hacker"] h2::before {
  content: "## ";
  opacity: 0.5;
}

[data-theme="hacker"] .project h3::before,
[data-theme="hacker"] .exp h3::before {
  content: "> ";
  opacity: 0.5;
}

[data-theme="hacker"] .content {
  background: var(--content-bg);
}

[data-theme="hacker"] section {
  border-bottom-style: dashed;
}

[data-theme="hacker"] .date-badge {
  background: #333;
  border: 1px solid #b5e853;
}

[data-theme="hacker"] .date-badge.now {
  background: transparent;
  border-color: #b5e853;
}

/* PRO Theme Specifics */
[data-theme="pro"] .page {
  background: transparent;
}

[data-theme="pro"] .sidebar {
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

[data-theme="pro"] h2 {
  font-weight: 400;
  font-size: 1.6rem;
}

[data-theme="pro"] section {
  border-bottom: 1px solid #eee;
}

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

@media (max-width: 800px) {
  .page {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    position: static;
    max-height: none;
    padding: 20px;
  }

  .content {
    padding: 24px 20px;
  }


  [data-theme="hacker"] .sidebar {
    border-right: none;
    border-bottom: 1px dashed #333;
  }
}
