/* ArgExpats overrides for Hugo (non-Obsidian Publish specifics) */

/* Post hero image */
.post-hero-image {
  margin-bottom: 1.5em;
  border-radius: 8px;
  overflow: hidden;
}

.post-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ============================================
   Dollar Rate Banner
   ============================================ */

.dollar-banner {
  border-bottom: 1px solid var(--background-modifier-border);
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--font-interface);
}

.dollar-banner-inner {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.dollar-rate {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rate-label {
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rate-value {
  color: var(--text-normal);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rate-change {
  font-size: 11px;
  font-weight: 500;
}

.rate-change.up { color: #a8c373; }
.rate-change.down { color: #d04255; }
.rate-change.flat { color: var(--text-faint); }

/* Default to dark theme */
body {
  background: var(--background-primary);
  color: var(--text-normal);
}

/* Site footer */
.site-footer {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  gap: 12px;
  align-items: center;
}

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

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

/* Fix checkbox toggle for theme switch */
.checkbox-container {
  width: 36px;
  height: 20px;
  background: var(--background-modifier-border);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
}

.checkbox-container::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.checkbox-container.is-enabled {
  background: var(--background-modifier-border-hover);
}

.checkbox-container.is-enabled::after {
  transform: translateX(16px);
}

/* Homepage-specific styles */
.hero {
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--background-modifier-border);
}

.hero-title {
  font-size: var(--page-title-size, 2em);
  font-weight: var(--page-title-weight, 500);
  line-height: var(--page-title-line-height, 1.1);
  margin-bottom: 0.5em;
}

.hero-description {
  color: var(--text-muted);
  line-height: 1.6;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--background-modifier-border);
}

.section-header h2 {
  margin: 0;
  font-size: var(--h2);
  font-weight: var(--h2-weight);
}

.view-all {
  font-size: var(--font-small);
  color: var(--text-faint);
  text-decoration: none;
}

.view-all:hover {
  color: var(--text-accent);
}

/* Post cards */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.post-card {
  padding-bottom: 1.25em;
  border-bottom: 1px solid var(--background-modifier-border);
}

.post-card:last-child { border-bottom: none; }

.post-meta {
  font-size: var(--font-small);
  color: var(--text-faint);
  margin-bottom: 4px;
}

.post-title {
  margin-bottom: 4px;
  margin-top: 0;
  font-size: var(--h2);
  font-weight: var(--h2-weight);
}

.post-title a { color: var(--text-normal); text-decoration: none; }
.post-title a:hover { color: var(--text-accent); }

.post-summary {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.project-card {
  background: transparent;
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: 6px;
  padding: 1.2em;
  transition: all 0.15s ease;
}

.project-card:hover {
  border-color: var(--background-modifier-border-hover);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-title {
  font-size: 1em;
  font-weight: var(--bold-weight);
  margin-bottom: 4px;
  margin-top: 0;
}

.project-title a { color: var(--text-normal); text-decoration: none; }
.project-title a:hover { color: var(--text-accent); }

.project-description {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-bottom: 0.75em;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }

.tech-tag {
  font-size: var(--font-smallest);
  background: var(--background-tertiary);
  color: var(--text-muted);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  border: 1px solid var(--background-modifier-border);
}

/* Post/project navigation */
.post-navigation, .project-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--background-modifier-border);
}

.nav-prev, .nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-normal);
}

.nav-prev:hover, .nav-next:hover {
  border-color: var(--background-modifier-border-hover);
}

.nav-next { text-align: right; }
.nav-label { font-size: var(--font-smaller); color: var(--text-faint); }
.nav-title { font-weight: 500; }

/* Section pages */
.section-page-header {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--background-modifier-border);
}

.section-description {
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid var(--background-modifier-border);
}

.pagination-info { font-size: var(--font-small); color: var(--text-muted); }

/* Separator */
.separator { margin: 0 0.5em; color: var(--text-faint); }

/* Reading time */
.posts-section, .projects-section { margin-bottom: 2.5em; }

/* Mobile */
@media (max-width: 750px) {
  .post-navigation, .project-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .project-grid { grid-template-columns: 1fr; }
}
