/* AutoBlog - Modern Cream Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --color-bg: #FFFBF5;
  --color-bg-alt: #FBF7F0;
  --color-card: #FFFFFF;
  --color-text: #2D2A26;
  --color-text-light: #5C5752;
  --color-text-muted: #8A8580;
  --color-accent: #B8654A;
  --color-accent-hover: #9A5139;
  --color-border: #E8E2D9;
  --color-code-bg: #F5F1EA;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;

  --max-width: 720px;
  --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 14px rgba(45, 42, 38, 0.08);
  --radius: 8px;
}

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

/* Base */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Layout */
.site-header {
  padding: 1.5rem 2rem;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: calc(100vh - 200px);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  background: var(--color-code-bg);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--color-border);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--color-text-light);
  font-style: italic;
}

/* Home Page */
.home-intro {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.home-intro h1 {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.home-intro p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.home-intro ul {
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.home-intro li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--color-text-light);
}

.home-intro li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

.post-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-list-item {
  padding: 1.75rem;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.post-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card-link:hover {
  text-decoration: none;
}

.post-list-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

.post-list-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-list-excerpt {
  color: var(--color-text-light);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Post */
.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.post-meta .separator {
  margin: 0 0.5rem;
  color: #ccc;
}

.post-tags {
  margin-top: 0.75rem;
}

.tag {
  display: inline-block;
  background: var(--color-code-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-right: 0.4rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-content h2:first-child {
  margin-top: 0;
}

/* Post Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.prev-post, .next-post {
  flex: 1;
  padding: 1rem;
  background: var(--color-code-bg);
  border-radius: 4px;
  text-decoration: none;
}

.next-post {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

.nav-title {
  color: var(--color-text);
  font-weight: 500;
}

.post-share {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.post-share a {
  margin: 0 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* About */
.about-content {
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 600px) {
  .main-content {
    padding: 2rem 1rem;
  }

  .post-title {
    font-size: 1.6rem;
  }

  .post-navigation {
    flex-direction: column;
  }

  .next-post {
    text-align: left;
  }
}
