/* ===========================================
   סודי ביותר — Shared Styles
   =========================================== */

:root {
  --bg: #0F0E15;
  --bg-card: #1B1924;
  --bg-card-hover: #221F2E;
  --ink: #F4F2F8;
  --ink-soft: #A6A2B5;
  --accent: #8B5CF6;
  --accent-soft: #2A2240;
  --lime: #C6F24E;
  --lime-soft: #2A2E18;
  --line: #2E2B3C;
  --max-width: 720px;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.05rem;
  direction: rtl;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Layout ===== */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */

.site-header {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--lime);
  padding-bottom: 0.15rem;
}

.site-tagline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* Privacy status badge — signature element */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  white-space: nowrap;
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Main content ===== */

main {
  padding: 2.5rem 0 4rem;
}

/* ===== Post list (index page) ===== */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.post-card-thumb {
  width: 100%;
  height: 110px;
  display: block;
  border-bottom: 1px solid var(--line);
}

.post-card-body {
  padding: 1.5rem 1.75rem;
}

.post-card:hover {
  border-color: var(--lime);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.post-card:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.post-card:nth-child(2) { border-top-color: var(--lime); }
.post-card:nth-child(3) { border-top-color: var(--accent); }
.post-card:nth-child(4) { border-top-color: var(--lime); }

.post-meta {
  font-size: 0.85rem;
  color: var(--lime);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.post-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Empty state */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: var(--ink-soft);
}

/* ===== Single post page ===== */

.post-header {
  margin-bottom: 2.5rem;
}

.post-hero {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 1.75rem;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--lime);
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

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

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.9rem;
  color: var(--lime);
}

.post-content strong {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.post-content a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: var(--lime-soft);
}

.post-content a:hover {
  text-decoration-color: var(--lime);
}

/* ===== Comments section ===== */

.comments-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.comments-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--lime);
}

.comments-placeholder {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
}

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

/* ===== Responsive ===== */

@media (max-width: 600px) {
  .site-title { font-size: 1.6rem; }
  .post-header h1 { font-size: 1.7rem; }
  .post-card-body { padding: 1.25rem 1.4rem; }
}
