/* Module:Repost styles
 * Styles for external article reposts (Mirror.xyz, Paragraph.com, etc.)
 * Includes dark mode support via [data-theme="dark"]
 */

/* ==========================================================================
   Repost Notice Box
   ========================================================================== */

.repost-notice {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 0.75em 1em;
    margin: 1em 0;
    border-radius: 2px;
}

.repost-notice-icon {
    flex-shrink: 0;
    font-size: 1.5em;
    line-height: 1;
}

.repost-notice-content {
    flex: 1;
    min-width: 0;
}

.repost-notice-title {
    margin-bottom: 0.25em;
}

.repost-notice-text {
    color: #54595d;
    font-size: 0.9em;
}

/* Platform-specific notice variants */
.repost-goldenlight {
    border-left: 4px solid #ffd700;
}

.repost-mirror {
    border-left: 4px solid #6366f1;
}

.repost-paragraph {
    border-left: 4px solid #3b82f6;
}

/* ==========================================================================
   Article Body Wrapper
   ========================================================================== */

.repost-article-body {
    max-width: 700px;
    margin: 2em auto;
    padding: 0 1.5em;
    font-size: 18px;
    line-height: 1.6;
}

.repost-article-body p {
    margin-bottom: 1.25em;
}

.repost-article-body h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-size: 1.5em;
}

.repost-article-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.25em;
}

/* ==========================================================================
   Image with Caption
   ========================================================================== */

.repost-image {
    margin: 1.5em 0;
    max-width: 100%;
}

.repost-image-center {
    text-align: center;
}

.repost-image-left {
    text-align: left;
}

.repost-image-right {
    text-align: right;
}

.repost-image-file {
    display: inline-block;
    max-width: 100%;
}

.repost-caption {
    margin-top: 0.5em;
    font-size: 0.9em;
    font-style: italic;
    color: #666;
}

.repost-image-center .repost-caption {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

[data-theme="dark"] .repost-notice {
    background-color: #2a2a2e;
    border-color: #5a5a5e;
    color: #e0e0e0;
}

[data-theme="dark"] .repost-notice-text {
    color: #b0b0b0;
}

[data-theme="dark"] .repost-goldenlight {
    border-left-color: #ffd700;
    background-color: rgba(255, 215, 0, 0.08);
}

[data-theme="dark"] .repost-mirror {
    border-left-color: #818cf8;
    background-color: rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .repost-paragraph {
    border-left-color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .repost-article-body {
    color: #e0e0e0;
}

[data-theme="dark"] .repost-caption {
    color: #a0a0a0;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .repost-notice {
        border: 1px solid #000;
        background: none !important;
        page-break-inside: avoid;
    }

    .repost-notice-icon {
        display: none;
    }

    .repost-article-body {
        max-width: 100%;
        padding: 0;
        font-size: 11pt;
    }

    .repost-image {
        page-break-inside: avoid;
    }
}