/* ============================================
   1100db CYBERPUNK THEME v2
   Full-featured dark cyberpunk Ghost theme
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0b0;
  --cyan: #00f0ff;
  --magenta: #ff00a0;
  --green: #00ff41;
  --font-mono: 'Fira Code', monospace;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

/* Grid Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px var(--cyan);
  z-index: 10000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18,18,26,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,240,255,0.3);
  box-shadow: 0 0 30px rgba(0,240,255,0.1);
}

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

.site-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 3px;
}

.site-logo::before,
.site-logo::after {
  content: '[';
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.site-logo::after {
  content: ']';
}

/* Navigation */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.site-nav a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

/* Hero */
.site-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,240,255,0.3);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2);
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 2rem;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0,240,255,0.5);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

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

.post-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
}

.post-card:hover {
  border-color: rgba(0,240,255,0.3);
  box-shadow: 0 0 30px rgba(0,240,255,0.15);
  transform: translateY(-4px);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

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

.post-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--magenta);
  text-transform: uppercase;
}

.post-card-title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

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

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

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.article-header {
  text-align: center;
  margin-bottom: 4rem;
}

.article-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--magenta);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255,0,160,0.3);
  border-radius: 2px;
}

.article-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0,240,255,0.3);
  margin: 1rem 0;
}

.article-meta {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Content */
.article-content {
  font-size: 1.15rem;
}

.article-content h1 {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 2rem;
  border-left: 3px solid var(--cyan);
  padding-left: 1rem;
  margin: 2rem 0 1rem;
}

.article-content h2 {
  font-family: var(--font-mono);
  color: var(--magenta);
  font-size: 1.75rem;
  border-bottom: 1px solid rgba(255,0,160,0.3);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--cyan);
}

.article-content a:hover {
  color: var(--magenta);
  border-color: var(--magenta);
}

.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: 2rem 0;
}

.article-content blockquote {
  border-left: 3px solid var(--magenta);
  background: rgba(255,0,160,0.1);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

.article-content code {
  background: var(--bg-secondary);
  color: var(--green);
  font-family: var(--font-mono);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.article-content pre {
  background: var(--bg-secondary);
  border: 1px solid rgba(0,240,255,0.3);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: transparent;
  border: none;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0,240,255,0.3);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .post-feed {
    grid-template-columns: 1fr;
  }
  
  .site-nav ul {
    display: none;
  }
}
/* ========== GHOST KOENIG EDITOR CLASSES ========== */

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

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

.kg-bookmark-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.kg-bookmark-content {
  padding: 1.5rem;
}

.kg-bookmark-title {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.kg-bookmark-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.kg-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.kg-gallery-row {
  display: flex;
  gap: 1rem;
}

.kg-gallery-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ========== IMAGE FIXES ========== */

/* Ensure images don't overflow */
.article-content img,
.kg-image-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Constrain wide images to container */
.kg-width-wide {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  transform: none;
}

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

/* Full width images */
.kg-width-full {
  width: 100%;
  left: 0;
  right: 0;
  margin-left: 0;
  margin-right: 0;
}

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

/* Regular image card */
.kg-image-card {
  max-width: 100%;
}

.kg-image-card img {
  max-width: 100%;
  height: auto;
}

/* Article image wrapper */
.article-image {
  max-width: 100%;
  margin: 2rem 0;
}

.article-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
