* {
    padding: 0;
    margin: 0;
}

body {
    background-color: #010314;
    color: #eeedf0;
    font-family: system-ui;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body[data-theme="light"] {
    background-color: #eeedf0;
    color: #010314;
}

body[data-theme="light"] .theme-label,
body[data-theme="light"] .lang-label,
body[data-theme="light"] .nav-link {
    color: #010314;
}

body[data-theme="light"] h1:before,
body[data-theme="light"] li:before,
body[data-theme="light"] .dots,
body[data-theme="light"] .cli-fill,
body[data-theme="light"] .section-title:before,
body[data-theme="light"] .info-list li:before,
body[data-theme="light"] .available {
    color: #e39c02;
}

body[data-theme="light"] .info-text,
body[data-theme="light"] .info-value {
    color: #010314;
}

body[data-theme="light"] .nav-link:hover {
    text-decoration-color: #e39c02;
}

h1 {
    font-size: xxx-large;
    font-weight: 900;
    text-transform: uppercase;
    align-items: center;
    flex-wrap: wrap; /* permet le retour à la ligne */
    white-space: normal; /* permet au texte de passer à la ligne */
    word-break: break-word; /* gère les mots trop longs */
}

h1:before {
    content: ">";
    padding-right: 10px;
    color: #f0a607;
    flex-shrink: 0;
}


ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

li:before {
    content: "+_ ";
    color: #f0a607;
    flex-shrink: 0;
}


.dots {
    flex: 1;
    border-bottom: 2px dotted #f0a607;
    margin: 0 10px;
    height: 1px;
}






.container-base {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: calc(100vh - 120px);
}

.center-div {
    width: 30vw;
    min-width: 400px;
}

.text-hover {
    cursor: none;
}

/* Navigation en haut */
.top-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-left {
    display: flex;
    gap: 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-label {
    color: #eeedf0;
    font-size: 12px;
}

.lang-label {
    color: #eeedf0;
    font-size: 12px;
    margin-left: 10px;
}

.nav-link {
    color: #eeedf0;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    text-align: right;
}

.nav-link:hover {
    text-decoration: underline;
    text-decoration-color: #f0a607;
}

.name-text {
    display: inline; /* pour rester à côté du chevron */
    max-width: 100%;
    word-break: break-word;
}

.cli-fill {
    flex: 1;
    margin-left: 10px;
    overflow: hidden;
    white-space: nowrap;
    color: #f0a607;
    opacity: 0.8;
    min-width: 50px; /* Largeur minimale pour les points */
}

.cli-fill::after {
    font-size: 12px;
    content: "..........................................................................................................................................................................................";
}

.info-section {
    margin-top: 30px;
}

.section-title {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.section-title:before {
    content: "__";
    color: #f0a607;
    padding-right: 10px;
}

.info-content {
    margin-left: 20px;
}

.info-text {
    font-size: 14px;
    line-height: 1.6;
    color: #eeedf0;
    text-align: justify;
    margin-bottom: 15px;
}

.info-list {
    font-size: 15px;
}

.info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.info-list li:before {
    content: "+_ ";
    color: #f0a607;
    flex-shrink: 0;
}

.info-label {
    text-transform: lowercase;
    flex-shrink: 0;
}

.info-value {
    flex-shrink: 0;
    color: #eeedf0;
}

.available {
    color: #f0a607;
    text-transform: capitalize;
}

/* Footer */
.bottom-footer {
    position: relative;
    text-align: right;
    padding: 20px;
    font-size: 10px;
    opacity: 0.5;
    margin-top: auto;
}

/* Login page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    width: 400px;
    max-width: 90vw;
}

.login-box h1 {
    margin-bottom: 30px;
}

.login-error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-prefix {
    color: #dc3545;
    font-weight: bold;
}

.login-info {
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.info-prefix {
    color: #f0a607;
    font-weight: bold;
}

.logout-link {
    color: #f0a607;
    text-decoration: none;
    margin-left: 10px;
}

.logout-link:hover {
    text-decoration: underline;
}

.login-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.label-prefix {
    color: #f0a607;
    margin-right: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #f0a607;
    color: #eeedf0;
    font-size: 14px;
    font-family: system-ui;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #eeedf0;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid #f0a607;
    color: #f0a607;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-family: system-ui;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #f0a607;
    color: #010314;
}

.button-prefix {
    margin-right: 5px;
}

/* Light theme overrides for login */
body[data-theme="light"] .form-group input {
    color: #010314;
    border-color: #c78904;
}

body[data-theme="light"] .form-group input:focus {
    border-color: #010314;
}

body[data-theme="light"] .login-button {
    border-color: #c78904;
    color: #c78904;
}

body[data-theme="light"] .login-button:hover {
    background-color: #c78904;
    color: #eeedf0;
}

body[data-theme="light"] .label-prefix,
body[data-theme="light"] .info-prefix {
    color: #c78904;
}

body[data-theme="light"] .logout-link {
    color: #c78904;
}

/* Dashboard page */
.dashboard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.dashboard-box {
    width: 600px;
    max-width: 90vw;
}

.dashboard-box h1 {
    margin-bottom: 30px;
}

.dashboard-actions {
    margin-top: 20px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    color: #f0a607;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #eeedf0;
}

.link-prefix {
    color: #f0a607;
    margin-right: 5px;
}

body[data-theme="light"] .action-link {
    color: #c78904;
}

body[data-theme="light"] .action-link:hover {
    color: #010314;
}

body[data-theme="light"] .link-prefix {
    color: #c78904;
}

/* Articles list - CLI style */
.articles-list {
    margin-top: 30px;
}

.article-item-cli {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.article-item-cli:before {
    content: "+_ ";
    color: #f0a607;
    flex-shrink: 0;
}

.article-date-cli {
    color: #888;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

.article-title-cli {
    color: #eeedf0;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.article-actions-cli {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.article-link-cli {
    background: transparent;
    border: none;
    color: #f0a607;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    font-family: system-ui;
    padding: 0;
    transition: color 0.2s ease;
}

.article-link-cli:hover {
    color: #eeedf0;
    text-decoration: underline;
}

.delete-cli {
    color: #dc3545;
}

.delete-cli:hover {
    color: #ff6b6b;
}

/* Delete confirmation inline */
.delete-confirm-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delete-confirm-text {
    color: #eeedf0;
    font-size: 12px;
    margin-right: 5px;
}

.confirm-separator {
    color: #888;
    font-size: 12px;
    margin: 0 2px;
}

.confirm-yes {
    color: #28a745;
}

.confirm-yes:hover {
    color: #4caf50;
}

.confirm-no {
    color: #888;
}

.confirm-no:hover {
    color: #eeedf0;
}

/* Light theme for articles list */
body[data-theme="light"] .article-item-cli:before {
    color: #c78904;
}

body[data-theme="light"] .article-title-cli {
    color: #010314;
}

body[data-theme="light"] .article-link-cli {
    color: #c78904;
}

body[data-theme="light"] .article-link-cli:hover {
    color: #010314;
}

/* Article create page */
.container-base:has(.article-create-container) {
    display: block;
    height: auto;
    align-items: unset;
    min-height: calc(100vh - 40px);
}

.article-create-container {
    padding: 20px;
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: calc(100vh - 40px);
}

.article-create-box {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}

.article-create-box h1 {
    margin-bottom: 30px;
}

.flash-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #28a745;
}

.flash-prefix {
    font-weight: bold;
}

.article-form {
    margin-top: 20px;
}

.article-form label {
    display: block;
    font-size: 14px;
    text-transform: lowercase;
    margin-bottom: 8px;
    color: #eeedf0;
}

.article-form label::before {
    content: '+_ ';
    color: #f0a607;
    margin-right: 5px;
}

.article-form input[type="text"],
.article-form textarea {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #f0a607;
    color: #eeedf0;
    font-size: 14px;
    font-family: system-ui;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.article-form input[type="text"]:focus,
.article-form textarea:focus {
    border-color: #eeedf0;
}

.article-form .form-errors {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #f0a607;
    color: #f0a607;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-family: system-ui;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #f0a607;
    color: #010314;
}

.cancel-link {
    color: #eeedf0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.cancel-link:hover {
    color: #f0a607;
}

/* Light theme overrides for article pages */
body[data-theme="light"] .article-form label {
    color: #010314;
}

body[data-theme="light"] .article-form label::before {
    color: #c78904;
}

body[data-theme="light"] .article-form input[type="text"],
body[data-theme="light"] .article-form textarea {
    color: #010314;
    border-color: #c78904;
}

body[data-theme="light"] .article-form input[type="text"]:focus,
body[data-theme="light"] .article-form textarea:focus {
    border-color: #010314;
}

body[data-theme="light"] .submit-button {
    border-color: #c78904;
    color: #c78904;
}

body[data-theme="light"] .submit-button:hover {
    background-color: #c78904;
    color: #eeedf0;
}

body[data-theme="light"] .cancel-link {
    color: #010314;
}

body[data-theme="light"] .cancel-link:hover {
    color: #c78904;
}

/* Tags autocomplete */
.form-group {
    position: relative;
}

.form-help {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.tags-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #010314;
    border: 1px solid #f0a607;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.tag-suggestion {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #eeedf0;
    transition: background-color 0.2s ease;
}

.tag-suggestion:hover {
    background-color: rgba(240, 166, 7, 0.1);
}

.tag-prefix {
    color: #f0a607;
    margin-right: 5px;
}

body[data-theme="light"] .tags-suggestions {
    background-color: #eeedf0;
    border-color: #c78904;
}

body[data-theme="light"] .tag-suggestion {
    color: #010314;
}

body[data-theme="light"] .tag-suggestion:hover {
    background-color: rgba(199, 137, 4, 0.1);
}

body[data-theme="light"] .tag-prefix {
    color: #c78904;
}

body[data-theme="light"] .form-help {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .center-div {
        width: 80vw;
        min-width: auto;
        padding: 0 10px; /* Ajoute un peu d'espace sur les côtés */
    }

    h1 {
        font-size: xx-large;
        line-height: 1.2; /* Meilleur espacement entre les lignes */
    }

    .name-text {
        flex: 1 1 auto; /* Permet au texte de prendre toute la largeur nécessaire */
    }

    .cli-fill {
        display: none; /* Cache les points sur mobile pour plus de clarté */
    }

    .top-nav {
        top: 15px;
        left: 15px;
        right: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .info-text {
        text-align: left;
        font-size: 13px;
    }

    .info-content {
        margin-left: 10px;
    }

    .bottom-footer {
        bottom: 15px;
        right: 15px;
    }
}

/* Markdown Editor Component */
.markdown-editor {
    border: 1px solid #f0a607;
    margin-bottom: 10px;
}

.markdown-editor-tabs {
    display: flex;
    border-bottom: 1px solid #f0a607;
    background-color: rgba(240, 166, 7, 0.05);
}

.tab-button {
    flex: 1;
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-family: system-ui;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.tab-button.active {
    color: #f0a607;
    background-color: rgba(240, 166, 7, 0.1);
}

.tab-button:hover {
    color: #eeedf0;
}

.markdown-editor-content {
    position: relative;
    min-height: 300px;
}

.markdown-pane {
    display: none;
    min-height: 300px;
}

.markdown-pane.active {
    display: block;
}

.write-pane {
    padding: 0;
}

.markdown-textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    background-color: transparent;
    border: none;
    color: #eeedf0;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

.preview-pane {
    padding: 15px;
    overflow-y: auto;
}

.markdown-preview {
    font-size: 14px;
    line-height: 1.6;
    color: #eeedf0;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
    margin: 20px 0 10px 0;
    color: #f0a607;
    font-weight: bold;
}

.markdown-preview h1:before,
.markdown-preview h2:before,
.markdown-preview h3:before,
.markdown-preview h4:before,
.markdown-preview h5:before,
.markdown-preview h6:before {
    content: '';
    padding: 0;
}

.markdown-preview h1 { font-size: 24px; }
.markdown-preview h2 { font-size: 20px; }
.markdown-preview h3 { font-size: 18px; }
.markdown-preview h4 { font-size: 16px; }
.markdown-preview h5 { font-size: 14px; }
.markdown-preview h6 { font-size: 12px; }

.markdown-preview p {
    margin: 10px 0;
}

.markdown-preview ul,
.markdown-preview ol {
    margin: 10px 0;
    padding-left: 20px;
}

.markdown-preview ul {
    list-style: disc;
}

.markdown-preview ol {
    list-style: decimal;
}

.markdown-preview li {
    margin-bottom: 5px;
    display: list-item;
}

.markdown-preview li:before {
    content: none;
}

.markdown-preview a {
    color: #f0a607;
    text-decoration: underline;
}

.markdown-preview a:hover {
    color: #eeedf0;
}

.markdown-preview code {
    background-color: rgba(240, 166, 7, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #f0a607;
}

.markdown-preview pre {
    background-color: rgba(240, 166, 7, 0.05);
    border: 1px solid #f0a607;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.markdown-preview pre code {
    background-color: transparent;
    padding: 0;
    color: #eeedf0;
}

.markdown-preview blockquote {
    border-left: 3px solid #f0a607;
    padding-left: 15px;
    margin: 15px 0;
    color: #888;
}

.markdown-preview hr {
    border: none;
    border-top: 1px solid #f0a607;
    margin: 20px 0;
}

.markdown-preview img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.markdown-preview table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.markdown-preview th,
.markdown-preview td {
    border: 1px solid #f0a607;
    padding: 8px;
    text-align: left;
}

.markdown-preview th {
    background-color: rgba(240, 166, 7, 0.1);
    color: #f0a607;
    font-weight: bold;
}

.markdown-empty {
    color: #888;
    font-style: italic;
    padding: 15px;
}

.markdown-help {
    border-top: 1px solid #f0a607;
    background-color: rgba(240, 166, 7, 0.02);
}

.markdown-help details {
    padding: 10px 15px;
}

.markdown-help summary {
    cursor: pointer;
    color: #f0a607;
    font-size: 12px;
    text-transform: lowercase;
    user-select: none;
}

.markdown-help summary:hover {
    color: #eeedf0;
}

.markdown-help-content {
    margin-top: 10px;
    padding-left: 10px;
    font-size: 12px;
    color: #888;
}

.markdown-help-content p {
    margin: 5px 0;
}

.markdown-help-content strong {
    color: #f0a607;
    font-family: 'Courier New', monospace;
}

/* Light theme overrides for markdown editor */
body[data-theme="light"] .markdown-editor {
    border-color: #c78904;
}

body[data-theme="light"] .markdown-editor-tabs {
    border-bottom-color: #c78904;
    background-color: rgba(199, 137, 4, 0.05);
}

body[data-theme="light"] .tab-button {
    color: #666;
}

body[data-theme="light"] .tab-button.active {
    color: #c78904;
    background-color: rgba(199, 137, 4, 0.1);
}

body[data-theme="light"] .tab-button:hover {
    color: #010314;
}

body[data-theme="light"] .markdown-textarea {
    color: #010314;
}

body[data-theme="light"] .markdown-preview {
    color: #010314;
}

body[data-theme="light"] .markdown-preview h1,
body[data-theme="light"] .markdown-preview h2,
body[data-theme="light"] .markdown-preview h3,
body[data-theme="light"] .markdown-preview h4,
body[data-theme="light"] .markdown-preview h5,
body[data-theme="light"] .markdown-preview h6 {
    color: #c78904;
}

body[data-theme="light"] .markdown-preview a {
    color: #c78904;
}

body[data-theme="light"] .markdown-preview a:hover {
    color: #010314;
}

body[data-theme="light"] .markdown-preview code {
    background-color: rgba(199, 137, 4, 0.1);
    color: #c78904;
}

body[data-theme="light"] .markdown-preview pre {
    background-color: rgba(199, 137, 4, 0.05);
    border-color: #c78904;
}

body[data-theme="light"] .markdown-preview pre code {
    color: #010314;
}

body[data-theme="light"] .markdown-preview blockquote {
    border-left-color: #c78904;
}

body[data-theme="light"] .markdown-preview hr {
    border-top-color: #c78904;
}

body[data-theme="light"] .markdown-preview th,
body[data-theme="light"] .markdown-preview td {
    border-color: #c78904;
}

body[data-theme="light"] .markdown-preview th {
    background-color: rgba(199, 137, 4, 0.1);
    color: #c78904;
}

body[data-theme="light"] .markdown-help {
    border-top-color: #c78904;
    background-color: rgba(199, 137, 4, 0.02);
}

body[data-theme="light"] .markdown-help summary {
    color: #c78904;
}

body[data-theme="light"] .markdown-help summary:hover {
    color: #010314;
}

body[data-theme="light"] .markdown-help-content strong {
    color: #c78904;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: #1a1d2e;
    border-left: 4px solid #f0a607;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    min-width: 300px;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    background-color: rgba(240, 166, 7, 0.2);
    color: #f0a607;
}

.toast-message {
    flex: 1;
    color: #eeedf0;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #888;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #eeedf0;
}

/* Toast types */
.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-icon {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-error .toast-icon {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-warning .toast-icon {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info .toast-icon {
    background-color: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

/* Light theme overrides for toasts */
body[data-theme="light"] .toast {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .toast-message {
    color: #010314;
}

body[data-theme="light"] .toast-close {
    color: #666;
}

body[data-theme="light"] .toast-close:hover {
    color: #010314;
}

/* Responsive toast notifications */
@media (max-width: 768px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* Public Articles List */
.articles-container {
    padding: 20px;
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: calc(100vh - 40px);
}

.articles-box {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}

.articles-list-public {
    margin-top: 30px;
}

.article-card {
    margin-bottom: 50px;
}

.article-card-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-card-prefix {
    color: #f0a607;
    font-size: 14px;
    flex-shrink: 0;
}

.article-card-date {
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
}

.article-card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-transform: none;
    flex: 1;
}

.article-card-title:before {
    content: '';
    padding: 0;
}

.article-card-title a {
    color: #f0a607;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #eeedf0;
}

.article-card-excerpt {
    color: #eeedf0;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 15px;
}

.article-card-excerpt p {
    margin: 10px 0;
}

.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 10px;
    color: #888;
}

.article-tag {
    color: #888;
    text-transform: lowercase;
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #f0a607;
    color: #f0a607;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: system-ui;
    transition: all 0.3s ease;
}

.load-more-link:hover {
    background-color: #f0a607;
    color: #010314;
}

.load-more-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Full Article View */
.article-full-container {
    padding: 20px;
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: calc(100vh - 40px);
}

.article-full-box {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}

.article-full-header {
    margin-bottom: 40px;
}

.article-full-header h1 {
    margin-bottom: 20px;
}

.article-full-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-full-date {
    color: #888;
    font-size: 14px;
}

.article-full-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
}

.article-full-tags .article-tag {
    color: #888;
}

.article-full-content {
    font-size: 15px;
    line-height: 1.8;
    color: #eeedf0;
}

.article-full-content h1,
.article-full-content h2,
.article-full-content h3,
.article-full-content h4,
.article-full-content h5,
.article-full-content h6 {
    margin: 30px 0 15px 0;
    color: #f0a607;
    font-weight: bold;
    text-transform: none;
}

.article-full-content h1:before,
.article-full-content h2:before,
.article-full-content h3:before,
.article-full-content h4:before,
.article-full-content h5:before,
.article-full-content h6:before {
    content: '';
    padding: 0;
}

.article-full-content h1 { font-size: 28px; }
.article-full-content h2 { font-size: 24px; }
.article-full-content h3 { font-size: 20px; }
.article-full-content h4 { font-size: 18px; }
.article-full-content h5 { font-size: 16px; }
.article-full-content h6 { font-size: 14px; }

.article-full-content p {
    margin: 15px 0;
}

.article-full-content ul,
.article-full-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-full-content ul {
    list-style: disc;
}

.article-full-content ol {
    list-style: decimal;
}

.article-full-content li {
    margin-bottom: 8px;
    display: list-item;
}

.article-full-content li:before {
    content: none;
}

.article-full-content a {
    color: #f0a607;
    text-decoration: underline;
}

.article-full-content a:hover {
    color: #eeedf0;
}

.article-full-content code {
    background-color: rgba(240, 166, 7, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #f0a607;
}

.article-full-content pre {
    background-color: rgba(240, 166, 7, 0.05);
    border: 1px solid #f0a607;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-full-content pre code {
    background-color: transparent;
    padding: 0;
    color: #eeedf0;
}

.article-full-content blockquote {
    border-left: 3px solid #f0a607;
    padding-left: 20px;
    margin: 20px 0;
    color: #888;
    font-style: italic;
}

.article-full-content hr {
    border: none;
    border-top: 1px solid #f0a607;
    margin: 30px 0;
}

.article-full-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.article-full-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.article-full-content th,
.article-full-content td {
    border: 1px solid #f0a607;
    padding: 10px;
    text-align: left;
}

.article-full-content th {
    background-color: rgba(240, 166, 7, 0.1);
    color: #f0a607;
    font-weight: bold;
}

.article-full-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(240, 166, 7, 0.3);
}

.back-link {
    color: #f0a607;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #eeedf0;
    text-decoration: underline;
}

/* Light theme overrides for public articles */
body[data-theme="light"] .article-card-prefix {
    color: #c78904;
}

body[data-theme="light"] .article-card-title a {
    color: #c78904;
}

body[data-theme="light"] .article-card-title a:hover {
    color: #010314;
}

body[data-theme="light"] .article-card-excerpt {
    color: #010314;
}

body[data-theme="light"] .article-card-tags {
    color: #666;
}

body[data-theme="light"] .article-tag {
    color: #666;
}

body[data-theme="light"] .load-more-link {
    border-color: #c78904;
    color: #c78904;
}

body[data-theme="light"] .load-more-link:hover {
    background-color: #c78904;
    color: #eeedf0;
}

body[data-theme="light"] .article-full-content {
    color: #010314;
}

body[data-theme="light"] .article-full-content h1,
body[data-theme="light"] .article-full-content h2,
body[data-theme="light"] .article-full-content h3,
body[data-theme="light"] .article-full-content h4,
body[data-theme="light"] .article-full-content h5,
body[data-theme="light"] .article-full-content h6 {
    color: #c78904;
}

body[data-theme="light"] .article-full-content a {
    color: #c78904;
}

body[data-theme="light"] .article-full-content a:hover {
    color: #010314;
}

body[data-theme="light"] .article-full-content code {
    background-color: rgba(199, 137, 4, 0.1);
    color: #c78904;
}

body[data-theme="light"] .article-full-content pre {
    background-color: rgba(199, 137, 4, 0.05);
    border-color: #c78904;
}

body[data-theme="light"] .article-full-content pre code {
    color: #010314;
}

body[data-theme="light"] .article-full-content blockquote {
    border-left-color: #c78904;
}

body[data-theme="light"] .article-full-content hr {
    border-top-color: #c78904;
}

body[data-theme="light"] .article-full-content th,
body[data-theme="light"] .article-full-content td {
    border-color: #c78904;
}

body[data-theme="light"] .article-full-content th {
    background-color: rgba(199, 137, 4, 0.1);
    color: #c78904;
}

body[data-theme="light"] .article-full-tags .article-tag {
    color: #666;
}

body[data-theme="light"] .back-link {
    color: #c78904;
}

body[data-theme="light"] .back-link:hover {
    color: #010314;
}
