/*
Theme Name: Jazzy Writer
Theme URI: https://jazzywriter.com
Description: Custom theme for the Jazzy Writer blog platform.
Version: 1.0
Author: Jazzy Writer
Author URI: https://jazzywriter.com
License: Proprietary
*/

:root {
  --jazzy-50: #faf5ff;
  --jazzy-100: #f3e8ff;
  --jazzy-200: #e9d5ff;
  --jazzy-400: #c084fc;
  --jazzy-500: #a855f7;
  --jazzy-600: #9333ea;
  --jazzy-700: #7e22ce;
  --jazzy-900: #581c87;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #374151;
  background: #fafafa;
  line-height: 1.8;
}

a { color: var(--jazzy-600); text-decoration: none; }
a:hover { color: var(--jazzy-700); text-decoration: underline; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--jazzy-700);
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; color: var(--jazzy-600); }

.site-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.site-nav a {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 1.5rem;
}

.site-nav a:hover { color: var(--jazzy-600); text-decoration: none; }

/* Main content */
.site-main {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Post cards on archive/home */
.post-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-card .post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-card .post-title a { color: inherit; }
.post-card .post-title a:hover { color: var(--jazzy-600); text-decoration: none; }

.post-card .post-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.post-card .post-meta a { color: var(--jazzy-600); }

.post-card .post-excerpt {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jazzy-600);
}

/* Single post */
.single-post .entry-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.single-post .entry-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.single-post .entry-meta a { color: var(--jazzy-600); }

.single-post .entry-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #374151;
}

.single-post .entry-content p { margin-bottom: 1.5rem; }
.single-post .entry-content h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin: 2rem 0 1rem; }
.single-post .entry-content h3 { font-size: 1rem; font-weight: 600; color: #111827; margin: 1.5rem 0 0.75rem; }
.single-post .entry-content blockquote {
  border-left: 3px solid var(--jazzy-400);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: #6b7280;
  font-style: italic;
  background: var(--jazzy-50);
  border-radius: 0 8px 8px 0;
}
.single-post .entry-content ul, .single-post .entry-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.single-post .entry-content li { margin-bottom: 0.5rem; }

/* Author box */
.author-box {
  background: var(--jazzy-50);
  border: 1px solid var(--jazzy-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-box .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--jazzy-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--jazzy-700);
  font-size: 1rem;
  flex-shrink: 0;
}

.author-box .author-name {
  font-weight: 600;
  color: #111827;
}

.author-box .author-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Author archive */
.author-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.author-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
}

.author-header p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  background: #fff;
}

.site-footer a { color: var(--jazzy-600); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.pagination a {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.pagination a:hover {
  border-color: var(--jazzy-400);
  color: var(--jazzy-600);
  text-decoration: none;
}

.pagination .current {
  background: var(--jazzy-600);
  color: #fff;
  border: 1px solid var(--jazzy-600);
}

/* Responsive */
@media (max-width: 640px) {
  .single-post .entry-title { font-size: 1.75rem; }
  .post-card { padding: 1.5rem; }
  .author-box { flex-direction: column; text-align: center; }
}
