/*
Theme Name: Minimalistic Dan
Theme URI: https://flaviocopes.com/
Author: Dan Taylor SEO & AI Consultancy
Author URI: https://flaviocopes.com/
Version: 1.0.9
Description: A minimalist, high-performance tech blog theme inspired by Flavio Copes. Features a top announcement masthead, terminal-styled search bar, editable right sidebar cards with dark green background, category box cards for Guides and full-width cards for Thoughts, and registered menu locations for header and footer.
Text Domain: minimalistic-dan
*/

:root {
  --bg: #1a1a1a;
  --header-bg: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #8e8e8e;
  --border: #333333;
  --card-bg: #12281d;
  --card-border: #1e4532;
  --code-bg: #242424;
  --accent: #2e8b57;
  --accent-hover: #3cb371;
  --orange-accent: #f59e0b;
  --search-border: #f59e0b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

.site-wrap {
  width: 70%;
  max-width: 1300px;
  min-width: 320px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

@media (max-width: 1024px) {
  .site-wrap {
    width: 92%;
  }
}

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

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

.masthead-banner {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0 1.25rem 0;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.masthead-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.masthead-title a {
  color: var(--accent);
}

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

.masthead-sub {
  color: #c7c7c7;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-avatar, .custom-logo {
  max-height: 48px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.brand-emoji {
  font-size: 2rem;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.header-navigation-wrapper {
  display: flex;
  align-items: center;
}

.header-menu-container ul,
.primary-navigation ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

.header-menu-container li,
.primary-navigation li {
  list-style: none;
}

.header-menu-container a,
.primary-navigation a {
  color: #cfcfcf;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-menu-container a:hover,
.primary-navigation a:hover,
.header-menu-container .current-menu-item > a,
.primary-navigation .current-menu-item > a {
  color: #ffffff;
}

.search-container {
  margin-bottom: 2.5rem;
}

.search-form-wrap form {
  position: relative;
  width: 100%;
}

.search-form-wrap input[type="search"] {
  width: 100%;
  background: transparent;
  border: 2px solid var(--search-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #e0e0e0;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form-wrap input[type="search"]::placeholder {
  color: #6c757d;
}

.search-form-wrap input[type="search"]:focus {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.25rem;
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.sidebar-card-box:hover {
  border-color: var(--accent);
}

.sidebar-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.sidebar-card-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.sidebar-card-box p {
  color: #c0d8cc;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

.widget-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.25rem;
  border-radius: 6px;
}

.widget-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.widget-box p {
  color: #c0d8cc;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

.section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #efefef;
  margin-bottom: 1.25rem;
}

.compact-post-list {
  list-style: none;
}

.compact-post-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.compact-post-item .bullet {
  color: var(--text-muted);
  user-select: none;
}

.compact-post-item .post-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compact-post-item .post-link:hover {
  color: var(--accent-hover);
}

.compact-post-item .badge-sponsored {
  font-size: 0.72rem;
  font-weight: 800;
  background: #333;
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.compact-post-item .post-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.4rem;
  white-space: nowrap;
}

/* Guides Category: Multi-column Box Cards */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Thoughts Category: Full-width Stacked Box Cards */
.thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.thought-card {
  width: 100%;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.guide-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.thought-card .guide-card-title {
  font-size: 1.3rem;
}

.guide-card-title a {
  color: #ffffff;
  text-decoration: none;
}

.guide-card-title a:hover {
  color: var(--accent);
}

.guide-card-excerpt {
  color: #c0d8cc;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.65;
}

.thought-card .guide-card-excerpt {
  font-size: 0.94rem;
}

.guide-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #1e4532;
  padding-top: 0.75rem;
}

.guide-card-meta a {
  color: var(--accent);
}

.guide-card-meta a:hover {
  color: var(--accent-hover);
}

.single-article h1, .single-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.single-article .post-meta {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.entry-content {
  line-height: 1.8;
  color: #d1d5db;
}

.entry-content h2, .entry-content h3 {
  color: #fff;
  margin: 2rem 0 1rem;
}

.entry-content p, .entry-content ul, .entry-content ol, .entry-content pre {
  margin-bottom: 1.5rem;
}

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

.entry-content code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-nav {
  margin-bottom: 1.5rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}