/* Bree Photo Tutorials — dark theme stylesheet
 * Use this when rendering the Markdown files as HTML.
 */

:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent: #7bb3ff;
  --accent-2: #ff8a65;
  --border: #333333;
  --code-bg: #252525;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

header.brand img {
  width: 48px;
  height: 48px;
}

header.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--accent);
}

header.brand a {
  color: var(--accent);
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
h3 { font-size: 1.2rem; }

p, li {
  color: var(--text);
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}

figure {
  margin: 1.5rem 0;
}

figcaption {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

code, kbd {
  background: var(--code-bg);
  color: var(--accent);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

pre code {
  background: transparent;
  padding: 0;
}

kbd {
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 0 6px 6px 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.note {
  background: var(--surface-2);
  border-left: 4px solid var(--accent-2);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.note strong {
  color: var(--accent-2);
}

.site-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.top-nav {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch a {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.lang-switch a.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  cursor: default;
}

.ad-block {
  margin: 1.5rem 0;
  text-align: center;
  min-height: 90px;
}

footer.license {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card a {
  text-decoration: none;
}

/* "Get It from Windows Store" button in the top nav bar */
.top-nav a.store-link {
  display: inline-block;
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.top-nav a.store-link:hover {
  background: linear-gradient(135deg, #2b88d8 0%, #0078d4 100%);
  box-shadow: 0 4px 12px rgba(0,120,212,0.4);
  transform: translateY(-1px);
}
.top-nav a.store-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
