/* Custom CSS for Signal Sleuth Blog */

/* Import a more elegant serif font */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* Root variables for consistent theming */
:root {
  --bg-color: #f8f6f0;           /* Warm off-white background */
  --text-color: #2c2c2c;         /* Dark gray text */
  --text-secondary: #5a5a5a;     /* Lighter gray for secondary text */
  --accent-color: #5a5a5a;       /* Lighter grayaccent */
  --border-color: #e8e4dc;       /* Subtle border color */
  --link-color: #6b5b73;         /* Muted purple for links */
  --link-hover: #5a5a5a;         /* Lighter gray on hover */
}

/* Base styling */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Container and layout adjustments */
.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px;
}

/* Header styling */
.site-header {
  background-color: var(--bg-color) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.site-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

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

/* Remove any unwanted elements in header */
.site-header input[type="checkbox"],
.site-header .menu-icon,
.site-header .trigger input,
.site-header label {
  display: none !important;
}

/* Clean up header lists and remove bullets/checkboxes */
.site-header ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-header li {
  list-style: none !important;
  margin: 0 !important;
}

.site-header li::before,
.site-header li::after {
  content: none !important;
}

/* Hide mobile menu toggle elements */
.site-header .menu-icon svg,
.site-header #nav-trigger {
  display: none !important;
}

/* Navigation */
.site-nav .page-link {
  color: var(--text-secondary);
  font-size: 16px;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav .page-link:hover {
  color: var(--accent-color);
}

/* Main content area */
.page-content {
  background-color: var(--bg-color);
  padding: 20px 0;
}

/* Post styling */
.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-meta {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 20px;
}

/* Content typography */
.post-content {
  font-size: 18px;
  line-height: 1.7;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-content h1 { font-size: 28px; }
.post-content h2 { font-size: 24px; }
.post-content h3 { font-size: 20px; }
.post-content h4 { font-size: 18px; }

.post-content p {
  margin-bottom: 20px;
  text-align: justify;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Code blocks */
pre, code {
  background-color: #f4f1eb;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
}

pre {
  padding: 15px;
  overflow-x: auto;
  margin: 20px 0;
}

code {
  padding: 2px 4px;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent-color);
  margin: 20px 0;
  padding: 10px 20px;
  background-color: #f4f1eb;
  font-style: italic;
  color: var(--text-secondary);
}

/* Lists */
ul, ol {
  margin: 20px 0;
  padding-left: 30px;
}

li {
  margin-bottom: 8px;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}

th {
  background-color: #f4f1eb;
  font-weight: 600;
  color: var(--accent-color);
}

/* Hide default Minima footer completely */
.site-footer {
  display: none !important;
}

/* Style your custom footer */
.custom-footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 15px 0;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  margin-top: auto;
}

.custom-footer .wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.custom-footer p {
  margin: 0;
  line-height: 1.4;
}

.custom-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.custom-footer a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.custom-footer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Post list styling */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.post-list .post-link {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.post-list .post-link:hover {
  color: var(--link-hover);
}

.post-list .post-excerpt {
  color: var(--text-secondary);
  margin-top: 10px;
}

/* Responsive design */
@media screen and (max-width: 600px) {
  .wrapper {
    padding: 20px 15px;
  }
  
  .post-title {
    font-size: 24px;
  }
  
  .post-content {
    font-size: 16px;
  }
  
  .site-nav .page-link {
    margin-left: 15px;
  }
}

/* Force light theme - remove dark mode auto-switching */
html {
  background-color: var(--bg-color) !important;
}

/* Override any theme defaults */
body, .site-header, .page-content, .site-footer {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

/* Centered image styling */
.centered-image {
  text-align: center !important;
  margin: 20px 0 !important;
}

.centered-image img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.centered-image p {
  font-style: italic !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
}