/* BigJinx Blog - Dark Theme with Personality */

:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #1f2937;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #f85149;
  --accent-secondary: #ff7b72;
  --accent-glow: rgba(248, 81, 73, 0.3);
  --link: #58a6ff;
  --border: #30363d;
  --code-bg: #1f2428;
  --success: #3fb950;
  --warning: #d29922;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1f2e 100%);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-emoji {
  font-size: 2rem;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* Main Content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Post Cards (Index Page) */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-tag {
  background: var(--bg-hover);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.post-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Single Post */
article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

article header {
  background: none;
  border: none;
  padding: 0;
  position: static;
  margin-bottom: 2rem;
}

article h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

article .post-meta {
  justify-content: flex-start;
  font-size: 0.9rem;
}

article h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--accent-secondary);
}

article h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

article p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

article strong {
  color: var(--text-primary);
}

article a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

article a:hover {
  border-bottom-color: var(--link);
}

article ul, article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

article li {
  margin-bottom: 0.5rem;
}

article blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-hover);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

article blockquote p {
  margin-bottom: 0;
  color: var(--text-primary);
}

article code {
  background: var(--code-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  color: var(--accent-secondary);
}

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

article pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* Emoji callouts */
.callout {
  background: var(--bg-hover);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.callout-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.callout-content {
  color: var(--text-secondary);
}

/* Footer */
footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

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

/* Responsive */
@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  article {
    padding: 1.5rem;
  }
  
  article h1 {
    font-size: 1.7rem;
  }
}

/* Special sauce */
::selection {
  background: var(--accent);
  color: white;
}

.highlight {
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Animated gradient for special moments */
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--link), var(--success), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
