/* ==========================================================================
   Professional Print Stylesheet
   This file ensures that articles and pages look perfect when printed to PDF or paper.
   ========================================================================== */

/* 1. Hide non-essential UI elements */
.koulos-landing-header,
.koulos-landing-footer,
.blog-floating-widget,
.koulos-landing-hero-bg-orb,
.koulos-landing-hero-bg-img,
.koulos-blog-post-header-bg,
.koulos-blog-post-footer,
.koulos-blog-post-back-link {
    display: none !important;
}

/* 2. Reset backgrounds and text colors globally */
html, body, .koulos-landing-page {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* 3. Hero layout resets for print */
.koulos-blog-post-hero {
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    margin-top: 0 !important;
    color: #000000 !important;
}

.koulos-blog-post-hero-title,
.koulos-landing-text-gradient,
.koulos-blog-post-hero-subtitle {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
    text-shadow: none !important;
}

/* 4. High-specificity rich text overrides (Quill/Snow) */
.blog-content-wrapper,
.ql-editor,
.ql-snow .ql-editor {
    color: #000000 !important;
    background: transparent !important;
    font-size: 12pt !important;
}

.blog-content-wrapper *,
.ql-editor *,
.ql-snow .ql-editor *,
.blog-meta-item,
.blog-meta-item span {
    color: #000000 !important;
    text-shadow: none !important;
}

/* 5. Specific elements inside content */
.blog-content-wrapper pre,
.ql-editor pre {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #000000 !important;
    padding: 1rem !important;
    box-shadow: none !important;
}

.blog-content-wrapper pre::before {
    display: none !important; /* Hide the fake macos buttons */
}

.blog-content-wrapper blockquote,
.ql-editor blockquote {
    border-left: 4px solid #000000 !important;
    background: none !important;
    color: #333333 !important;
}

.blog-content-wrapper a,
.ql-editor a {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* 6. Formatting and pagination */
.blog-content-wrapper p,
.blog-content-wrapper img,
.blog-content-wrapper h2,
.blog-content-wrapper h3,
.blog-content-wrapper pre,
.blog-content-wrapper blockquote,
.ql-editor p,
.ql-editor img,
.ql-editor h2,
.ql-editor h3,
.ql-editor pre,
.ql-editor blockquote {
    page-break-inside: avoid;
}

.koulos-blog-post-content-section {
    padding: 0 !important;
    margin: 0 !important;
}
