/*
Theme Name: C Drive Portfolio
Theme URI: http://localhost:8080
Author: Felix
Description: Simple terminal/C:\ portfolio theme with editable pages, navigation and project boxes.
Version: 1.1
License: GPLv2 or later
Text Domain: cdrive-portfolio
*/

:root {
  --bg: #f7f7f6;
  --panel: #ffffff;
  --box: #eeeeec;
  --text: #151515;
  --muted: #666;
  --border: #dededa;
  --link: #222;
}

body.dark {
  --bg: #151515;
  --panel: #1f1f1f;
  --box: #2a2a2a;
  --text: #f2f2f2;
  --muted: #b8b8b8;
  --border: #444;
  --link: #f2f2f2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--link); text-decoration: underline; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.site-title { font-weight: bold; font-size: 20px; }
.theme-buttons button {
  font-family: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 70px;
  padding: 90px 42px;
}

.sidebar,
.content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 42px;
}

.sidebar ul { list-style: none; padding-left: 0; margin: 0; }
.sidebar .menu { display: block; }
.sidebar li { margin: 10px 0; position: relative; padding-left: 42px; }
.sidebar li::before { content: "├─"; position: absolute; left: 0; }
.sidebar li:last-child::before { content: "└─"; }
.sidebar ul ul { padding-left: 28px; margin-top: 8px; }

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
  font-weight: 800;
}

.path { color: var(--muted); margin: 8px 0 28px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.project-box,
.wp-block-group.is-style-project-box {
  background: var(--box);
  border: 1px solid var(--border);
  padding: 24px;
  min-height: 230px;
}

.project-box h3,
.wp-block-group.is-style-project-box h2,
.wp-block-group.is-style-project-box h3 {
  margin-bottom: 18px;
}

.wp-block-buttons .wp-block-button__link {
  background: var(--text);
  color: var(--bg);
  border-radius: 0;
  font-family: inherit;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding: 30px 18px; gap: 24px; }
  .sidebar, .content-card { padding: 26px; }
}
