/* Full Moon Odds Blog — Standalone stylesheet for server-rendered pages */
/* Decoupled from SPA build so blog HTML works independently */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #030712;
  color: #e5e7eb;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #22d3ee;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #67e8f9;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.blog-nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-nav-brand {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #f9fafb;
  text-decoration: none;
}

.blog-nav-brand:hover {
  color: #22d3ee;
}

.blog-nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.blog-nav-links a {
  color: #9ca3af;
}

.blog-nav-links a:hover {
  color: #f9fafb;
}

.blog-nav-links .cta {
  color: #22d3ee;
  font-weight: 600;
}

.blog-main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.blog-footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.blog-footer-links a {
  color: #6b7280;
}

.blog-footer-links a:hover {
  color: #f9fafb;
}

/* Blog Index / Listing */
.blog-header {
  margin-bottom: 2.5rem;
}

.blog-header h1 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

.blog-header p {
  color: #9ca3af;
  font-size: 1.125rem;
}

.blog-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.blog-filter {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-filter:hover,
.blog-filter.active {
  border-color: #22d3ee;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog Card */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.blog-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-badge-nba { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.blog-badge-nfl { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.blog-badge-mlb { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.blog-badge-nhl { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.blog-badge-multi { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.blog-badge-preview { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
.blog-badge-recap { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.blog-badge-stars { background: rgba(234, 179, 8, 0.12); color: #facc15; }
.blog-badge-roundup { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.blog-badge-trend { background: rgba(244, 63, 94, 0.12); color: #fb7185; }

.blog-card-date {
  color: #6b7280;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: #22d3ee;
}

.blog-card-excerpt {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Page */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.blog-article-header {
  margin-bottom: 2rem;
}

.blog-article-header h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #f9fafb;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .blog-article-header h1 {
    font-size: 2.5rem;
  }
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.blog-article-meta .separator {
  color: #374151;
}

/* Article Content — Markdown-rendered HTML */
.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9fafb;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.blog-content strong {
  color: #f9fafb;
  font-weight: 600;
}

.blog-content em {
  color: #a5b4fc;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #d1d5db;
}

.blog-content li {
  margin-bottom: 0.375rem;
}

.blog-content blockquote {
  border-left: 3px solid #22d3ee;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: rgba(34, 211, 238, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #e5e7eb;
}

.blog-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.blog-content th {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  color: #f9fafb;
  font-weight: 600;
}

.blog-content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d1d5db;
}

.blog-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #f472b6;
}

.blog-content pre {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: #e5e7eb;
}

/* Back link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.blog-back:hover {
  color: #22d3ee;
}

/* Related posts */
.blog-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 1.25rem;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #6b7280;
}

.blog-empty h2 {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

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

.blog-pagination a,
.blog-pagination span {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

.blog-pagination a:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.blog-pagination .active {
  border-color: #22d3ee;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
}

/* Hero image for articles */
.blog-article-hero {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ASTRO WIDGETS — CSS-only interactive-looking components for blog articles
   ═══════════════════════════════════════════════════════════════════════════ */

.astro-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.astro-widget-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* ── Score Ring (CSS conic-gradient) ──────────────────────────────────────── */
.astro-score-ring {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color) calc(var(--score) * 3.6deg),
    rgba(255, 255, 255, 0.08) calc(var(--score) * 3.6deg)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.astro-score-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0a0e1a;
}

.astro-score-ring span {
  position: relative;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color);
}

.astro-score-ring-sm {
  width: 44px;
  height: 44px;
}

.astro-score-ring-sm span {
  font-size: 0.8125rem;
}

.astro-score-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ── Game Matchup Widget ─────────────────────────────────────────────────── */
.astro-matchup-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.astro-matchup-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.astro-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.astro-team-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f9fafb;
}

.astro-matchup-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.astro-moon {
  font-size: 1.75rem;
}

.astro-vs-text {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.1em;
}

.astro-moon-label {
  font-size: 0.6875rem;
  color: #9ca3af;
}

.astro-moon-pct {
  font-size: 0.625rem;
  color: #6b7280;
}

/* ── Player Astro Card ───────────────────────────────────────────────────── */
.astro-player-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.astro-player-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.astro-player-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.astro-player-info {
  flex: 1;
  min-width: 0;
}

.astro-player-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f9fafb;
}

.astro-player-pos {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ── Element Bar ─────────────────────────────────────────────────────────── */
.astro-element-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.astro-element {
  height: 100%;
  transition: width 0.3s;
}

.astro-element.astro-fire { background: #f97316; }
.astro-element.astro-earth { background: #84cc16; }
.astro-element.astro-air { background: #06b6d4; }
.astro-element.astro-water { background: #3b82f6; }

.astro-element-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.astro-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.astro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.astro-dot.astro-fire { background: #f97316; }
.astro-dot.astro-earth { background: #84cc16; }
.astro-dot.astro-air { background: #06b6d4; }
.astro-dot.astro-water { background: #3b82f6; }

/* ── Team Cosmic Score ───────────────────────────────────────────────────── */
.astro-team-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
}

.astro-team-logo-sm {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.astro-team-score-info {
  flex: 1;
}

.astro-team-name-sm {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f9fafb;
}

.astro-team-label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Moon Phase Banner ───────────────────────────────────────────────────── */
.astro-moon-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(34, 211, 238, 0.04);
  border-color: rgba(34, 211, 238, 0.15);
}

.astro-moon-emoji {
  font-size: 2rem;
}

.astro-moon-info {
  flex: 1;
}

.astro-moon-phase {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f9fafb;
}

.astro-moon-details {
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INLINE IMAGE COMPONENTS — Player cards, team badges, matchup heroes
   ═══════════════════════════════════════════════════════════════════════════ */

/* Inline player card */
.blog-player-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  margin: 0.75rem 0;
}

.blog-player-card-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.blog-player-card-info {
  flex: 1;
  min-width: 0;
}

.blog-player-card-info strong {
  display: block;
  font-size: 0.875rem;
  color: #f9fafb;
}

.blog-player-card-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.blog-player-card-score {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  border: 2px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Inline team badge */
.blog-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
}

.blog-team-badge-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.blog-team-badge-text {
  font-weight: 700;
  color: #f9fafb;
}

/* Matchup hero */
.blog-matchup-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
}

.blog-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 200px;
}

.blog-hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.blog-hero-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #6b7280;
  font-size: 1.25rem;
}

.blog-hero-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f9fafb;
  text-align: center;
}

.blog-hero-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.blog-hero-vs span:first-child {
  font-size: 1.25rem;
  font-weight: 900;
  color: #4b5563;
}

.blog-hero-league {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #22d3ee;
  letter-spacing: 0.1em;
}
