/* ============================================
   GLOBAL CONTENT STYLES - Neubrutalism Design
   ============================================ */

/* Content Styles for Ghost CMS */

/* Required Koenig editor styles */
.kg-width-wide {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Content Container */
.content-area,
.post-content,
.page-content,
.prose {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #0f172a;
  max-width: 65ch;
}

/* ============================================
   HEADINGS
   ============================================ */

.content-area h1,
.post-content h1,
.page-content h1,
.prose h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-bottom: 6px solid #000;
  padding-bottom: 1rem;
  background: linear-gradient(135deg, #9400ff 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-area h2,
.post-content h2,
.page-content h2,
.prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  border-left: 8px solid #9400ff;
  padding-left: 1rem;
  background: #f3f4f6;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.content-area h3,
.post-content h3,
.page-content h3,
.prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  letter-spacing: -0.01em;
  border-bottom: 4px solid #f59e0b;
  padding-bottom: 0.5rem;
}

.content-area h4,
.post-content h4,
.page-content h4,
.prose h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  color: #334155;
  display: inline-block;
  background: #fef08a;
  padding: 0.25rem 0.75rem;
  border: 3px solid #000;
}

.content-area h5,
.post-content h5,
.page-content h5,
.prose h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #475569;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.content-area h6,
.post-content h6,
.page-content h6,
.prose h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

/* First heading has no top margin */
.content-area > h1:first-child,
.content-area > h2:first-child,
.content-area > h3:first-child,
.content-area > h4:first-child,
.content-area > h5:first-child,
.content-area > h6:first-child,
.post-content > h1:first-child,
.post-content > h2:first-child,
.post-content > h3:first-child,
.post-content > h4:first-child,
.post-content > h5:first-child,
.post-content > h6:first-child,
.page-content > h1:first-child,
.page-content > h2:first-child,
.page-content > h3:first-child,
.page-content > h4:first-child,
.page-content > h5:first-child,
.page-content > h6:first-child,
.prose > h1:first-child,
.prose > h2:first-child,
.prose > h3:first-child,
.prose > h4:first-child,
.prose > h5:first-child,
.prose > h6:first-child {
  margin-top: 0;
}

/* ============================================
   PARAGRAPHS
   ============================================ */

.content-area p,
.post-content p,
.page-content p,
.prose p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: #1e293b;
}

.content-area p:last-child,
.post-content p:last-child,
.page-content p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

/* ============================================
   TEXT FORMATTING
   ============================================ */

.content-area strong,
.content-area b,
.post-content strong,
.post-content b,
.page-content strong,
.page-content b,
.prose strong,
.prose b {
  font-weight: 900;
  color: #000;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  padding: 0.125rem 0.25rem;
  border-bottom: 2px solid #000;
}

.content-area em,
.content-area i,
.post-content em,
.post-content i,
.page-content em,
.page-content i,
.prose em,
.prose i {
  font-style: italic;
  color: #8b5cf6;
  font-weight: 600;
}

.content-area s,
.content-area del,
.post-content s,
.post-content del,
.page-content s,
.page-content del,
.prose s,
.prose del {
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: #ef4444;
  opacity: 0.7;
}

.content-area mark,
.post-content mark,
.page-content mark,
.prose mark {
  background: #fef08a;
  padding: 0.125rem 0.25rem;
  border: 2px solid #000;
  font-weight: 700;
}

/* ============================================
   LINKS
   ============================================ */

.content-area a,
.post-content a,
.page-content a,
.prose a {
  color: #9400ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #9400ff;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.content-area a:hover,
.post-content a:hover,
.page-content a:hover,
.prose a:hover {
  color: #000;
  background: #9400ff;
  text-decoration: none;
  padding: 0.125rem 0.375rem;
  border-radius: 0;
  box-shadow: 3px 3px 0px 0px rgba(0,0,0,1);
}

/* ============================================
   BLOCKQUOTES
   ============================================ */

.content-area blockquote,
.post-content blockquote,
.page-content blockquote,
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f3f4f6;
  border-left: 8px solid #9400ff;
  border-top: 4px solid #000;
  border-right: 4px solid #000;
  border-bottom: 4px solid #000;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: #1e293b;
  position: relative;
  box-shadow: 6px 6px 0px 0px rgba(0,0,0,1);
}

.content-area blockquote::before,
.post-content blockquote::before,
.page-content blockquote::before,
.prose blockquote::before {
  content: '"';
  font-size: 4rem;
  font-family: 'Space Grotesk', sans-serif;
  position: absolute;
  top: -1rem;
  left: 1rem;
  color: #9400ff;
  font-weight: 900;
  line-height: 1;
}

.content-area blockquote p,
.post-content blockquote p,
.page-content blockquote p,
.prose blockquote p {
  margin-bottom: 0.5rem;
}

.content-area blockquote p:last-child,
.post-content blockquote p:last-child,
.page-content blockquote p:last-child,
.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* ============================================
   CODE & PRE
   ============================================ */

.content-area code,
.post-content code,
.page-content code,
.prose code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: #000;
  color: #10b981;
  padding: 0.25rem 0.5rem;
  border: 3px solid #10b981;
  border-radius: 0;
  font-weight: 700;
}

.content-area pre,
.post-content pre,
.page-content pre,
.prose pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #000;
  border: 4px solid #10b981;
  overflow-x: auto;
  box-shadow: 6px 6px 0px 0px rgba(16,185,129,1);
}

.content-area pre code,
.post-content pre code,
.page-content pre code,
.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #10b981;
}

/* ============================================
   LISTS
   ============================================ */

.content-area ul,
.content-area ol,
.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol,
.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

/* Unordered Lists */
.content-area ul,
.post-content ul,
.page-content ul,
.prose ul {
  list-style: none;
}

.content-area ul li,
.post-content ul li,
.page-content ul li,
.prose ul li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.content-area ul li::before,
.post-content ul li::before,
.page-content ul li::before,
.prose ul li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: #9400ff;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

/* Nested UL */
.content-area ul ul,
.post-content ul ul,
.page-content ul ul,
.prose ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.content-area ul ul li::before,
.post-content ul ul li::before,
.page-content ul ul li::before,
.prose ul ul li::before {
  content: '◦';
  color: #f59e0b;
  font-size: 1.25rem;
}

/* Ordered Lists */
.content-area ol,
.post-content ol,
.page-content ol,
.prose ol {
  list-style: none;
  counter-reset: item;
}

.content-area ol li,
.post-content ol li,
.page-content ol li,
.prose ol li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 2.5rem;
  font-weight: 600;
  color: #1e293b;
  counter-increment: item;
}

.content-area ol li::before,
.post-content ol li::before,
.page-content ol li::before,
.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background: #9400ff;
  color: #fff;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 3px solid #000;
  font-family: 'Space Grotesk', sans-serif;
}

/* Nested OL */
.content-area ol ol,
.post-content ol ol,
.page-content ol ol,
.prose ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.content-area ol ol li::before,
.post-content ol ol li::before,
.page-content ol ol li::before,
.prose ol ol li::before {
  background: #f59e0b;
  color: #000;
}

/* ============================================
   IMAGES
   ============================================ */

.content-area img,
.post-content img,
.page-content img,
.prose img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 4px solid #000;
  box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
  display: block;
}

.content-area figure,
.post-content figure,
.page-content figure,
.prose figure {
  margin: 2rem 0;
}

.content-area figcaption,
.post-content figcaption,
.page-content figcaption,
.prose figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  font-style: italic;
  background: #f3f4f6;
  padding: 0.5rem 1rem;
  border: 2px solid #000;
}

/* ============================================
   HORIZONTAL RULE
   ============================================ */

.content-area hr,
.post-content hr,
.page-content hr,
.prose hr {
  margin: 3rem 0;
  border: none;
  height: 6px;
  background: repeating-linear-gradient(
    45deg,
    #9400ff,
    #9400ff 10px,
    #000 10px,
    #000 20px
  );
  box-shadow: 0 4px 0px 0px rgba(0,0,0,1);
}

/* ============================================
   TABLES
   ============================================ */

.content-area table,
.post-content table,
.page-content table,
.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 4px solid #000;
  box-shadow: 6px 6px 0px 0px rgba(0,0,0,1);
}

.content-area th,
.post-content th,
.page-content th,
.prose th {
  background: #9400ff;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  padding: 1rem;
  text-align: left;
  border: 2px solid #000;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.content-area td,
.post-content td,
.page-content td,
.prose td {
  padding: 0.875rem 1rem;
  border: 2px solid #000;
  font-weight: 600;
  color: #1e293b;
}

.content-area tbody tr:nth-child(even),
.post-content tbody tr:nth-child(even),
.page-content tbody tr:nth-child(even),
.prose tbody tr:nth-child(even) {
  background: #f3f4f6;
}

/* ============================================
   COLUMNS (2-column layout)
   ============================================ */

.content-area .columns,
.post-content .columns,
.page-content .columns,
.prose .columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .content-area .columns,
  .post-content .columns,
  .page-content .columns,
  .prose .columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.content-area .column,
.post-content .column,
.page-content .column,
.prose .column {
  padding: 1.5rem;
  background: #f3f4f6;
  border: 4px solid #000;
  box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
}

/* ============================================
   TOGGLE / ACCORDION
   ============================================ */

.content-area details,
.post-content details,
.page-content details,
.prose details {
  margin: 1.5rem 0;
  border: 4px solid #000;
  background: #fff;
  box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
}

.content-area summary,
.post-content summary,
.page-content summary,
.prose summary {
  padding: 1rem 1.5rem;
  background: #fef08a;
  border-bottom: 4px solid #000;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
  list-style: none;
  position: relative;
  padding-left: 3rem;
}

.content-area summary::before,
.post-content summary::before,
.page-content summary::before,
.prose summary::before {
  content: '▶';
  position: absolute;
  left: 1rem;
  transition: transform 0.2s ease;
  color: #9400ff;
  font-size: 1rem;
}

.content-area details[open] summary::before,
.post-content details[open] summary::before,
.page-content details[open] summary::before,
.prose details[open] summary::before {
  transform: rotate(90deg);
}

.content-area summary:hover,
.post-content summary:hover,
.page-content summary:hover,
.prose summary:hover {
  background: #fde047;
}

.content-area details > *:not(summary),
.post-content details > *:not(summary),
.page-content details > *:not(summary),
.prose details > *:not(summary) {
  padding: 1.5rem;
}

/* ============================================
   KEYBOARD & ABBREVIATIONS
   ============================================ */

.content-area kbd,
.post-content kbd,
.page-content kbd,
.prose kbd {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  font-weight: 700;
  box-shadow: 0 2px 0px 0px rgba(0,0,0,1);
}

.content-area abbr,
.post-content abbr,
.page-content abbr,
.prose abbr {
  text-decoration: underline dotted;
  text-decoration-color: #9400ff;
  text-decoration-thickness: 2px;
  cursor: help;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .content-area,
  .post-content,
  .page-content,
  .prose {
    font-size: 1rem;
  }
  
  .content-area h1,
  .post-content h1,
  .page-content h1,
  .prose h1 {
    font-size: 2rem;
  }
  
  .content-area h2,
  .post-content h2,
  .page-content h2,
  .prose h2 {
    font-size: 1.75rem;
  }
  
  .content-area h3,
  .post-content h3,
  .page-content h3,
  .prose h3 {
    font-size: 1.5rem;
  }
  
  .content-area h4,
  .post-content h4,
  .page-content h4,
  .prose h4 {
    font-size: 1.25rem;
  }
  
  .content-area blockquote,
  .post-content blockquote,
  .page-content blockquote,
  .prose blockquote {
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
  }
}
