@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #0A0A0A;
  --bg-surface: #121212;
  --bg-surface-hover: #1A1A1A;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #52525B;
  --accent: #10B981; /* Emerald Green */
  --accent-hover: #059669;
  --border-color: #27272A;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1px;
}

.brand-logo::after {
  content: '.';
  color: var(--accent);
}

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  min-height: calc(100vh - 160px);
}

/* Hero Section */
.hero-section, .search-page-header {
  padding: 40px 0 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 15px 0;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Post Summaries */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-summary {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.post-summary:hover {
  border-color: var(--accent);
  background-color: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.post-tag {
  color: var(--accent);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.post-date {
  color: var(--text-muted);
}

.post-title {
  margin: 0 0 15px 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.post-excerpt {
  color: var(--text-secondary);
  margin: 0 0 25px 0;
  line-height: 1.7;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Full Post */
.full-post-header {
  margin-bottom: 40px;
}

.full-post-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 15px 0 20px 0;
  line-height: 1.1;
}

.post-author-large {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.post-body {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 25px;
}

/* Comments */
.comments-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.comments-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 30px 0;
}

/* Comment Form */
.comment-form-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
}

.comment-form input, .comment-form textarea {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 15px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 15px;
  transition: border-color 0.2s;
}

.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice {
  font-size: 0.85rem;
  color: var(--text-muted);
}

button {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.9;
}

/* Comments List */
.comment {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.comment-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  border-radius: 0 12px 12px 12px;
  flex-grow: 1;
}

.comment-content strong {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.comment-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.no-comments {
  color: var(--text-muted);
  font-style: italic;
}

/* Search */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
}

.search-form input {
  flex-grow: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 15px;
  font-family: inherit;
  font-size: 1rem;
}

.search-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-results-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.search-results-title span {
  color: var(--accent);
}

.search-hit {
  margin-bottom: 30px;
}

.search-hit-header {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.search-hit-header a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.search-hit-header a:hover {
  text-decoration: underline;
}

.no-results {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}
