/* CKEditor 5 Dark Theme - Global Styles */
.ck.ck-editor__main>.ck-editor__editable {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #333 !important;
    min-height: 400px;
}

.ck.ck-editor__main>.ck-editor__editable.ck-focused {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px #2563eb !important;
}

.ck.ck-toolbar {
    background-color: #2a2a2a !important;
    border-color: #333 !important;
}

.ck.ck-button {
    color: #ffffff !important;
}

.ck.ck-button:hover,
.ck.ck-button.ck-on {
    background-color: #3a3a3a !important;
}

.ck-content * {
    color: #ffffff !important;
}

.ck-content a {
    color: #60a5fa !important;
}

/* blogs */
/* Article Content - Dark Theme Medium Style */
.article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
}

/* Typography */
.article-content h2 {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-top: 56px;
    margin-bottom: 16px;
    color: #ffffff;
}

.article-content h3 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.012em;
    margin-top: 40px;
    margin-bottom: 12px;
    color: #ffffff;
}

.article-content h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

/* Paragraphs */
.article-content p {
    margin-bottom: 32px;
    line-height: 1.68;
    letter-spacing: -0.003em;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
}

/* First paragraph emphasis */
.article-content>p:first-of-type {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 4px;
}

.article-content figure {
    margin: 48px 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    line-height: 1.4;
}

/* Blockquotes */
.article-content blockquote {
    margin: 40px 0;
    padding-left: 24px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    font-style: italic;
    font-size: 24px;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.014em;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 32px;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.68;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.article-content li::marker {
    color: rgba(255, 255, 255, 0.5);
}

/* Links */
.article-content a {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-color: rgba(96, 165, 250, 0.4);
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #93c5fd;
    text-decoration-color: rgba(147, 197, 253, 0.8);
}

/* Bold and emphasis */
.article-content strong,
.article-content b {
    font-weight: 600;
    color: #ffffff;
}

.article-content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* Code */
.article-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 17px;
    color: #fbbf24;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 20px;
    margin: 40px 0;
    overflow-x: auto;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Horizontal rule */
.article-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 48px 0;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.article-content th,
.article-content td {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.article-content th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #ffffff;
}

.article-content td {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 768px) {
    .article-content {
        font-size: 18px;
    }

    .article-content p,
    .article-content li {
        font-size: 18px;
    }

    .article-content h2 {
        font-size: 28px;
        margin-top: 40px;
    }

    .article-content h3 {
        font-size: 22px;
        margin-top: 32px;
    }

    .article-content blockquote {
        font-size: 20px;
        padding-left: 16px;
        margin-left: 0;
    }
}