/* ========================================
   USER CONTENT STYLING SUPPORT
   ======================================== */

   
/* Text alignment utilities */
.post-content .text-center,
.post-content .center {
    text-align: center;
}

.post-content .text-left {
    text-align: left;
}

.post-content .text-right {
    text-align: right;
}

.post-content .text-justify {
    text-align: justify;
}

/* Figure & Caption */
.post-content figure {
    margin: 2rem auto;
    max-width: 100%;
}

.post-content figure img {
    display: block;
    margin: 0 auto;
}

.post-content figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* Details & Summary (Collapsible) */
.post-content details {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    background: #f9fafb;
}

.post-content details[open] {
    background: #ffffff;
}

.post-content summary {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: #374151;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 0.375rem;
}

.post-content summary:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.post-content details[open] summary {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

/* Mark/Highlight */
.post-content mark {
    background-color: #fef08a;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    color: inherit;
}

/* Small text */
.post-content small {
    font-size: 0.875em;
    color: #6b7280;
}

/* Subscript & Superscript */
.post-content sub,
.post-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.post-content sup {
    top: -0.5em;
}

.post-content sub {
    bottom: -0.25em;
}

/* Abbreviations */
.post-content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

/* Definition Lists */
.post-content dl {
    margin: 1rem 0;
}

.post-content dt {
    font-weight: 600;
    color: #374151;
    margin-top: 1rem;
}

.post-content dt:first-child {
    margin-top: 0;
}

.post-content dd {
    margin: 0.5rem 0 0 2rem;
    color: #6b7280;
}

/* Center align helper */
.post-content [align="center"] {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.post-content img[align="center"] {
    display: block;
}

/* Responsive images in containers */
.post-content div[style*="text-align: center"] img,
.post-content div[align="center"] img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* Keyboard key styling */
.post-content kbd {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Sample output styling */
.post-content samp {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

/* Inserted/Deleted text */
.post-content ins {
    text-decoration: none;
    background-color: #d1fae5;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.post-content del {
    text-decoration: line-through;
    background-color: #fee2e2;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    opacity: 0.7;
}