/* AuroraDev Ghost Theme */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Raleway:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Aurora Dark Theme */
:root {
  --background: #0a0a0f;
  --foreground: #ffffff;
  --card: #111118;
  --card-foreground: #ffffff;
  --primary: #00d4aa;
  --primary-foreground: #0a0a0f;
  --secondary: #1a1a24;
  --secondary-foreground: #ffffff;
  --muted: #1a1a24;
  --muted-foreground: #a1a1aa;
  --accent: #7c3aed;
  --accent-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 0.625rem;
  --aurora-teal: #00d4aa;
  --aurora-purple: #7c3aed;
  --aurora-cyan: #06b6d4;
  --heading-color: #c5f6f0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  color: var(--heading-color);
}

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

/* Base */
html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* Aurora Background Effect */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--background);
}

.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
              radial-gradient(ellipse at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
  animation: aurora 20s ease-in-out infinite;
}

.aurora-bg::after {
  animation-delay: -10s;
  opacity: 0.5;
}

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(1deg); }
  50% { transform: translate(-1%, 3%) rotate(-1deg); }
  75% { transform: translate(3%, -2%) rotate(2deg); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo .gradient-text {
  background: linear-gradient(135deg, var(--aurora-teal), var(--aurora-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--foreground);
}

/* Main Content */
.site-main {
  padding-top: 5rem;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 4rem 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Post Cards */
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.post-card-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(0, 212, 170, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.post-card-title a {
  color: var(--foreground);
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card-author-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Single Post */
.post-full {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.post-full-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-full-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-full-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-full-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.post-full-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* Post Content */
.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.post-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

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

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--muted-foreground);
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.post-content pre {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* Koenig editor width classes */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
  max-width: 100%;
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--foreground);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .post-feed {
    grid-template-columns: 1fr;
  }

  .post-full-title {
    font-size: 1.75rem;
  }

  .site-nav {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
