/* BearBlog-style CSS for Quality Shepherd */
/* Responsive design with Solarized color scheme */

/* Light mode color scheme (default) */
:root {
  --bg-primary: #fdf6e3;
  --bg-secondary: #eee8d5;
  --bg-input: #eee8d5;
  --text-primary: #657b83;
  --text-secondary: #93a1a1;
  --text-emphasis: #586e75;
  --accent-blue: #268bd2;
  --accent-violet: #6c71c4;
  --accent-yellow: #b58900;
  --border: #93a1a1;
}

/* Dark mode color scheme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #002b36;
    --bg-secondary: #073642;
    --bg-input: #073642;
    --text-primary: #839496;
    --text-secondary: #586e75;
    --text-emphasis: #93a1a1;
    --border: #586e75;
  }
}

body {
  font-family: 'Ubuntu', sans-serif;
  margin: auto;
  padding: 20px;
  max-width: 720px;
  text-align: left;
  background-color: var(--bg-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6, strong, b {
  color: var(--text-emphasis);
}

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

.title {
  text-decoration: none;
  border: 0;
}

.title span {
  font-weight: 400;
}

/* Header styling - float-based responsive layout */
header {
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logo-container {
  float: right;
  margin-left: 1rem;
}

header .logo {
  height: 80px;
  width: auto;
  max-width: 100%;
}

.site-title {
  font-weight: bold;
  text-decoration: none;
  display: block;
}

.site-title h2 {
  margin: 0;
}

header nav {
  margin-top: 8px;
}

header nav a {
  text-decoration: underline;
  margin-right: 15px;
}

nav a {
  margin-right: 10px;
}

textarea {
  width: 100%;
  font-size: 16px;
  background-color: var(--bg-input);
  color: var(--text-primary);
}

input {
  font-size: 16px;
  background-color: var(--bg-input);
  color: var(--text-primary);
}

.content {
  line-height: 1.6;
}

table {
  width: 100%;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

code {
  font-family: 'Ubuntu Mono', monospace;
  padding: 2px 5px;
  background-color: var(--bg-secondary);
}

pre code {
  font-family: 'Ubuntu Mono', monospace;
  color: var(--text-emphasis);
  display: block;
  padding: 20px;
  white-space: pre-wrap;
  font-size: 14px;
}

blockquote {
  border-left: 1px solid var(--border);
  color: var(--text-emphasis);
  padding-left: 20px;
  font-style: italic;
}

footer {
  padding: 25px;
  text-align: center;
}

.helptext {
  color: var(--text-secondary);
  font-size: small;
}

.errorlist {
  color: var(--accent-yellow);
  font-size: small;
}

/* Blog post list styling */
ul.blog-list {
  list-style-type: none;
  padding: unset;
}

ul.blog-list li {
  display: flex;
}

ul.blog-list li span.date {
  flex: 0 0 130px;
}

ul.blog-list li a {
  flex: 1 1 auto;
}

ul.blog-list li span.word-count {
  flex: 0 0 auto;
  margin-left: auto;
}

ul.blog-list li a:visited {
  color: var(--accent-violet);
}

/* Blog post date styling */
.date {
  color: var(--text-secondary);
  font-style: italic;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.word-count {
  color: var(--text-secondary);
  font-style: italic;
}

.version {
  color: var(--text-secondary);
}
