/* ============================================================
   My Notes App – Journal Timeline View
   DATE | NOTE stacked entries matching the editor style
   ============================================================ */

/* ---------- Entry list ---------- */
.mna-journal-list {
    padding: 0;
}

/* ---------- Single entry row ---------- */
.mna-journal-entry {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s;
}

.mna-journal-entry:last-child {
    border-bottom: none;
}

.mna-journal-entry:hover {
    background: #f8f9fb;
}

/* ---------- Date column (left) ---------- */
.mna-journal-date-col {
    width: 110px;
    min-width: 110px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #e2e8f0;
    text-align: center;
    position: relative;
}

.mna-journal-date-col::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.mna-journal-day-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #667eea;
}

.mna-journal-day-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.mna-journal-month-year {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* ---------- Note column (right) ---------- */
.mna-journal-note-col {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.75rem;
}

.mna-journal-note-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Preserve Quill formatting */
.mna-journal-note-body h1 { font-size: 1.6rem; font-weight: 700; margin: 0.3em 0; color: #1e293b; }
.mna-journal-note-body h2 { font-size: 1.3rem; font-weight: 600; margin: 0.3em 0; color: #1e293b; }
.mna-journal-note-body h3 { font-size: 1.1rem; font-weight: 600; margin: 0.3em 0; color: #1e293b; }

.mna-journal-note-body ul,
.mna-journal-note-body ol {
    padding-left: 1.5em;
    margin: 0.4em 0;
}

.mna-journal-note-body a {
    color: #667eea;
    text-decoration: underline;
}

.mna-journal-note-body a:hover {
    color: #764ba2;
}

.mna-journal-note-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5em 0;
}

/* ---------- Loading / empty / error states ---------- */
.mna-journal-loading {
    text-align: center;
    color: #667eea;
    padding: 3rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.mna-journal-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #94a3b8;
    gap: 1rem;
}

.mna-journal-empty-state p {
    font-size: 1rem;
    margin: 0;
}

.mna-journal-error {
    text-align: center;
    color: #e53e3e;
    padding: 3rem 1rem;
    font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .mna-journal-entry {
        flex-direction: column;
    }

    .mna-journal-date-col {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        gap: 0.6rem;
        padding: 1rem 1.25rem 0.5rem;
        border-right: none;
        border-bottom: 1px dashed #e2e8f0;
        justify-content: flex-start;
    }

    .mna-journal-date-col::after {
        display: none;
    }

    .mna-journal-day-num {
        font-size: 1.3rem;
    }

    .mna-journal-day-name {
        font-size: 0.7rem;
        align-self: center;
    }

    .mna-journal-month-year {
        align-self: center;
    }

    .mna-journal-note-col {
        padding: 0.75rem 1.25rem 1.25rem;
    }
}
