* {
    box-sizing: border-box;
}


body {
    margin: 0;

    min-height: 100vh;

    background:
        #eee6d8;

    color: #40372f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


/* HEADER */

.diary-header {
    position: relative;

    padding: 40px 20px 70px;

    text-align: center;
}


.back-button {
    position: absolute;

    left: 30px;
    top: 30px;

    color: #40372f;

    text-decoration: none;

    font-size: 14px;

    opacity: 0.7;

    transition: 0.3s;
}


.back-button:hover {
    opacity: 1;
}


.diary-icon {
    display: block;

    margin-bottom: 15px;

    font-size: 38px;
}


.diary-intro h1 {
    margin: 0;

    font-size: 42px;

    font-weight: 400;
}


.diary-intro p {
    margin-top: 15px;

    font-size: 16px;

    opacity: 0.65;
}


/* ENTRIES */

.diary-container {
    width: min(
        850px,
        calc(100% - 40px)
    );

    margin: 0 auto 100px;
}


.diary-entry {
    margin-bottom: 70px;
}


.diary-entry-date {
    margin-bottom: 15px;

    text-align: center;

    font-size: 13px;

    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: 0.6;
}


/* PAPER */

.diary-paper {
    position: relative;

    padding: 50px 60px;

    background: #faf6ed;

    border: 1px solid rgba(80, 65, 50, 0.12);

    box-shadow:
        0 12px 30px rgba(60, 45, 30, 0.12);
}


.diary-entry-icon {
    display: block;

    margin-bottom: 20px;

    font-size: 18px;

    opacity: 0.45;
}


.diary-paper h2 {
    margin: 0 0 30px;

    font-size: 27px;

    font-weight: 400;
}


.diary-text {
    white-space: pre-line;

    font-size: 17px;

    line-height: 2;

    color: #4a4037;
}


.diary-author {
    margin-top: 35px;

    text-align: right;

    font-style: italic;

    opacity: 0.65;
}


/* REPLY */

.diary-reply {
    margin-top: 40px;

    padding: 25px 30px;

    border-top: 1px solid
        rgba(80, 65, 50, 0.15);
}


.reply-label {
    margin-bottom: 12px;

    font-size: 13px;

    letter-spacing: 1px;

    opacity: 0.7;
}


.diary-reply p {
    margin: 0;

    white-space: pre-line;

    line-height: 1.8;
}


.reply-date {
    display: block;

    margin-top: 12px;

    font-size: 12px;

    opacity: 0.5;
}


.reply-button {
    margin-top: 35px;

    padding: 11px 22px;

    border: 1px solid #8b7968;

    background: transparent;

    color: #40372f;

    font-family: inherit;

    cursor: pointer;

    transition: 0.3s;
}


.reply-button:hover {
    background: #40372f;

    color: #faf6ed;
}



.reply-form {
    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid rgba(60, 45, 45, 0.12);
}

.reply-input {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    resize: vertical;

    background: rgba(255, 255, 255, 0.6);

    border: 1px solid rgba(60, 45, 45, 0.2);
    border-radius: 12px;

    color: #3a3030;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.reply-input:focus {
    border-color: rgba(170, 70, 70, 0.5);

    box-shadow:
        0 0 0 3px rgba(170, 70, 70, 0.08);
}

.reply-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 10px;
}

.reply-cancel,
.reply-submit {
    padding: 8px 16px;

    border-radius: 20px;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.reply-cancel {
    background: transparent;

    border: 1px solid rgba(60, 45, 45, 0.25);

    color: rgba(60, 45, 45, 0.65);
}

.reply-cancel:hover {
    color: #3a3030;

    border-color: rgba(60, 45, 45, 0.5);

    transform: translateY(-2px);
}

.reply-submit {
    background: transparent;

    border: 1px solid rgba(170, 70, 70, 0.5);

    color: #a04444;
}

.reply-submit:hover {
    color: #c03939;

    border-color: #c03939;

    transform: translateY(-2px);
}



.new-diary-form {
    max-width: 750px;

    margin: 0 auto 60px;

    padding: 30px;

    background: rgba(255, 255, 255, 0.55);

    border: 1px solid rgba(60, 45, 45, 0.12);

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(50, 40, 40, 0.06);
}


.new-diary-header {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 22px;
}


.new-diary-header span {
    font-size: 20px;
}


.new-diary-header h2 {
    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: 24px;

    font-weight: 500;

    color: #3a3030;
}


.diary-title-input,
.diary-content-input {
    width: 100%;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.65);

    border: 1px solid rgba(60, 45, 45, 0.18);

    border-radius: 12px;

    padding: 13px 15px;

    color: #3a3030;

    font-family: inherit;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.diary-title-input {
    margin-bottom: 12px;

    font-size: 15px;
}


.diary-content-input {
    resize: vertical;

    font-size: 15px;

    line-height: 1.6;
}


.diary-title-input:focus,
.diary-content-input:focus {
    border-color: rgba(170, 70, 70, 0.5);

    box-shadow:
        0 0 0 3px rgba(170, 70, 70, 0.08);
}


.new-diary-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 14px;
}


.diary-submit {
    padding: 9px 18px;

    background: transparent;

    border: 1px solid rgba(170, 70, 70, 0.5);

    border-radius: 20px;

    color: #a04444;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.diary-submit:hover {
    color: #c03939;

    border-color: #c03939;

    transform: translateY(-2px);
}


.diary-submit:disabled {
    opacity: 0.5;

    cursor: default;

    transform: none;
}


/* =========================
   DELETE MODAL
========================= */

.delete-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.delete-modal[hidden] {
    display: none;
}

.delete-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(30, 20, 25, 0.45);

    backdrop-filter: blur(4px);
}

.delete-modal-content {
    position: relative;
    z-index: 1;

    width: min(90%, 420px);

    padding: 32px;

    text-align: center;

    background: #fffaf5;

    border: 1px solid rgba(120, 80, 70, 0.18);

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2);

    animation: deleteModalIn 0.2s ease;
}

.delete-modal-icon {
    font-size: 2rem;

    margin-bottom: 10px;
}

.delete-modal-content h2 {
    margin: 0 0 10px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 1.6rem;
}

.delete-modal-content p {
    margin: 0 0 25px;

    color: #6f6260;

    line-height: 1.5;
}

.delete-modal-actions {
    display: flex;

    justify-content: center;

    gap: 12px;
}

.delete-modal-actions button {
    padding: 10px 22px;

    border-radius: 10px;

    font: inherit;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.delete-modal-cancel {
    background: transparent;

    border: 1px solid #b9aaa5;

    color: #5f5350;
}

.delete-modal-cancel:hover {
    transform: translateY(-2px);

    background: #eee5e0;
}

.delete-modal-confirm {
    background: transparent;

    border: 1px solid #b85c5c;

    color: #a33f3f;
}

.delete-modal-confirm:hover {
    transform: translateY(-2px);

    background: #b85c5c;

    color: white;
}

/* =========================
   DIARY REPLIES
========================= */

.diary-replies {
    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid rgba(120, 90, 80, 0.16);
}

.replies-title {
    margin-bottom: 14px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.2rem;
    font-weight: 600;

    color: #6f5750;
}

.diary-reply {
    position: relative;

    margin-bottom: 12px;
    padding: 14px 45px 14px 16px;

    background: rgba(255, 255, 255, 0.45);

    border-left: 2px solid rgba(150, 110, 100, 0.35);

    border-radius: 0 10px 10px 0;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.diary-reply:hover {
    transform: translateX(3px);

    background: rgba(255, 255, 255, 0.7);
}

.reply-author {
    margin-bottom: 2px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 0.95rem;
    font-weight: 600;

    color: #624d48;
}

.reply-date {
    margin-bottom: 8px;

    font-size: 0.75rem;

    color: #9b8c87;
}

.reply-text {
    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.05rem;

    line-height: 1.5;

    color: #5e514e;
}


/* =========================
   DELETE REPLY BUTTON
========================= */

.delete-reply-button {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 1px solid transparent;

    border-radius: 50%;

    background: transparent;

    color: #a99590;

    cursor: pointer;

    opacity: 0.45;

    transition:
        opacity 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.diary-reply:hover
.delete-reply-button {
    opacity: 1;
}

.delete-reply-button:hover {
    color: #a33f3f;

    background: rgba(184, 92, 92, 0.1);

    transform: translateY(-2px);
}


/* =========================
   REPLY BUTTON
========================= */

.reply-button {
    padding: 8px 16px;

    border: 1px solid rgba(120, 90, 80, 0.35);

    border-radius: 8px;

    background: transparent;

    color: #705c56;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1rem;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.reply-button:hover {
    transform: translateY(-2px);

    background: rgba(120, 90, 80, 0.08);

    border-color: rgba(120, 90, 80, 0.55);

    color: #4f3e39;
}


/* =========================
   REPLY FORM
========================= */

.reply-form {
    margin-top: 14px;

    padding: 16px;

    background: rgba(255, 255, 255, 0.45);

    border: 1px solid rgba(120, 90, 80, 0.15);

    border-radius: 12px;

    animation: replyFormIn 0.2s ease;
}

.reply-input {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    resize: vertical;

    border: 1px solid rgba(120, 90, 80, 0.25);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.65);

    color: #554844;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.reply-input:focus {
    border-color: rgba(150, 100, 90, 0.55);

    box-shadow:
        0 0 0 3px rgba(150, 100, 90, 0.08);
}

.reply-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 10px;
}

.reply-cancel,
.reply-submit {
    padding: 8px 16px;

    border-radius: 8px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 0.95rem;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.reply-cancel {
    border: 1px solid #b9aaa5;

    background: transparent;

    color: #756763;
}

.reply-cancel:hover {
    transform: translateY(-2px);

    background: rgba(120, 90, 80, 0.08);
}

.reply-submit {
    border: 1px solid #98736a;

    background: #98736a;

    color: white;
}

.reply-submit:hover {
    transform: translateY(-2px);

    background: #805c54;
}

.reply-submit:disabled {
    opacity: 0.6;

    cursor: wait;

    transform: none;
}

/* =========================
   MAIN DIARY ENTRIES
========================= */

.diary-entry {
    position: relative;

    margin-bottom: 45px;

    animation: diaryEntryIn 0.35s ease;
}


/* =========================
   DATE
========================= */

.diary-entry-date {
    margin-bottom: 10px;

    text-align: center;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 0.95rem;

    font-style: italic;

    color: #9b8882;

    letter-spacing: 0.03em;
}


/* =========================
   DIARY PAPER
========================= */

.diary-paper {
    position: relative;

    padding: 35px 38px 30px;

    background:
        linear-gradient(
            rgba(255, 252, 247, 0.96),
            rgba(250, 245, 238, 0.96)
        );

    border: 1px solid rgba(130, 100, 90, 0.16);

    border-radius: 3px;

    box-shadow:
        0 5px 15px rgba(70, 50, 45, 0.08),
        0 18px 40px rgba(70, 50, 45, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* jemný pohyb celého papíru */

.diary-paper:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 18px rgba(70, 50, 45, 0.1),
        0 22px 45px rgba(70, 50, 45, 0.09);
}


/* =========================
   SMALL DECORATIVE ICON
========================= */

.diary-entry-icon {
    display: block;

    margin-bottom: 8px;

    text-align: center;

    font-size: 1.15rem;

    color: #a98276;

    opacity: 0.75;
}


/* =========================
   TITLE
========================= */

.diary-paper h2 {
    margin: 0 0 18px;

    text-align: center;

    font-family:
        "Playfair Display",
        serif;

    font-size: clamp(
        1.45rem,
        3vw,
        2rem
    );

    font-weight: 600;

    line-height: 1.3;

    color: #594944;
}


/* =========================
   DIARY TEXT
========================= */

.diary-text {
    max-width: 750px;

    margin: 0 auto 22px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.15rem;

    line-height: 1.75;

    color: #625451;

    text-align: left;

    overflow-wrap: break-word;
}


/* =========================
   AUTHOR
========================= */

.diary-author {
    margin-top: 20px;

    text-align: right;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1rem;

    font-style: italic;

    color: #8b7771;
}


/* =========================
   ACTIONS
========================= */

.diary-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid rgba(
        120,
        90,
        80,
        0.12
    );
}


/* =========================
   DELETE ENTRY BUTTON
========================= */

.delete-button {
    padding: 8px 15px;

    border: 1px solid rgba(
        170,
        75,
        75,
        0.45
    );

    border-radius: 8px;

    background: transparent;

    color: #a15a5a;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 0.95rem;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.delete-button:hover {
    transform: translateY(-2px);

    background: #b85c5c;

    border-color: #b85c5c;

    color: white;
}


/* =========================
   EMPTY DIARY
========================= */

.diary-empty {
    padding: 60px 20px;

    text-align: center;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.2rem;

    font-style: italic;

    color: #96847f;
}


/* =========================
   ENTRY ANIMATION
========================= */

@keyframes diaryEntryIn {

    from {
        opacity: 0;

        transform:
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .diary-entry {
        margin-bottom: 30px;
    }


    .diary-paper {
        padding: 25px 20px 22px;
    }


    .diary-paper h2 {
        font-size: 1.4rem;
    }


    .diary-text {
        font-size: 1.05rem;

        line-height: 1.65;
    }


    .diary-author {
        font-size: 0.95rem;
    }


    .diary-actions {
        gap: 8px;
    }


    .reply-button,
    .delete-button {
        padding: 8px 12px;

        font-size: 0.9rem;
    }

}
/* =========================
   DIARY ACTION BUTTONS
========================= */

.diary-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


/* společný vzhled a velikost */

.diary-actions .reply-button,
.diary-actions .delete-button {
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 38px;

    padding: 0 15px;

    margin: 0;

    line-height: 1;

    border-radius: 8px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 0.95rem;

    cursor: pointer;
}


/* Odpovědět */

.diary-actions .reply-button {
    border: 1px solid rgba(120, 90, 80, 0.35);

    background: transparent;

    color: #705c56;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.diary-actions .reply-button:hover {
    transform: translateY(-2px);

    background: rgba(120, 90, 80, 0.08);

    border-color: rgba(120, 90, 80, 0.55);

    color: #4f3e39;
}


/* Smazat */

.diary-actions .delete-button {
    border: 1px solid rgba(170, 75, 75, 0.45);

    background: transparent;

    color: #a15a5a;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.diary-actions .delete-button:hover {
    transform: translateY(-2px);

    background: #b85c5c;

    border-color: #b85c5c;

    color: white;
}

/* =========================
   NEW DIARY FORM
========================= */

.new-diary-form {
    position: relative;

    margin-bottom: 45px;
    padding: 32px 38px;

    background:
        linear-gradient(
            rgba(255, 252, 247, 0.97),
            rgba(250, 245, 238, 0.97)
        );

    border: 1px solid rgba(130, 100, 90, 0.16);

    border-radius: 3px;

    box-shadow:
        0 5px 15px rgba(70, 50, 45, 0.08),
        0 18px 40px rgba(70, 50, 45, 0.06);
}


/* =========================
   HEADER
========================= */

.new-diary-header {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 25px;

    text-align: center;
}

.new-diary-header span {
    color: #a98276;

    font-size: 1.15rem;

    opacity: 0.75;
}

.new-diary-header h2 {
    margin: 0;

    font-family:
        "Playfair Display",
        serif;

    font-size: 1.45rem;

    font-weight: 600;

    color: #594944;
}


/* =========================
   TITLE INPUT
========================= */

.diary-title-input {
    display: block;

    width: 100%;

    box-sizing: border-box;

    margin-bottom: 14px;

    padding: 13px 15px;

    border: none;

    border-bottom: 1px solid rgba(
        120,
        90,
        80,
        0.25
    );

    outline: none;

    background: transparent;

    color: #594944;

    font-family:
        "Playfair Display",
        serif;

    font-size: 1.2rem;

    transition:
        border-color 0.2s ease;
}

.diary-title-input::placeholder {
    color: #a79791;

    font-style: italic;
}

.diary-title-input:focus {
    border-bottom-color: #a98276;
}


/* =========================
   CONTENT TEXTAREA
========================= */

.diary-content-input {
    display: block;

    width: 100%;

    box-sizing: border-box;

    min-height: 160px;

    padding: 15px;

    resize: vertical;

    border: 1px solid rgba(
        120,
        90,
        80,
        0.18
    );

    border-radius: 8px;

    outline: none;

    background: rgba(
        255,
        255,
        255,
        0.4
    );

    color: #625451;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.1rem;

    line-height: 1.6;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.diary-content-input::placeholder {
    color: #a79791;

    font-style: italic;
}

.diary-content-input:focus {
    border-color: rgba(
        150,
        100,
        90,
        0.45
    );

    background: rgba(
        255,
        255,
        255,
        0.65
    );

    box-shadow:
        0 0 0 3px rgba(
            150,
            100,
            90,
            0.07
        );
}


/* =========================
   ACTIONS
========================= */

.new-diary-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 16px;
}


/* =========================
   SUBMIT BUTTON
========================= */

.diary-submit {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 20px;

    border: 1px solid #98736a;

    border-radius: 8px;

    background: #98736a;

    color: white;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1rem;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.diary-submit:hover {
    transform: translateY(-2px);

    background: #805c54;

    box-shadow:
        0 5px 12px rgba(
            100,
            70,
            60,
            0.15
        );
}

.diary-submit:active {
    transform: translateY(0);
}

.diary-submit:disabled {
    opacity: 0.6;

    cursor: wait;

    transform: none;

    box-shadow: none;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .new-diary-form {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .new-diary-header h2 {
        font-size: 1.3rem;
    }

    .diary-title-input {
        font-size: 1.1rem;
    }

    .diary-content-input {
        font-size: 1.05rem;
    }

    .new-diary-actions {
        justify-content: stretch;
    }

    .diary-submit {
        width: 100%;
    }

}

@keyframes replyFormIn {

    from {
        opacity: 0;

        transform: translateY(-5px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

@keyframes deleteModalIn {

    from {
        opacity: 0;

        transform:
            translateY(10px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .diary-header {
        padding-top: 80px;
    }


    .back-button {
        left: 20px;
        top: 20px;
    }


    .diary-intro h1 {
        font-size: 34px;
    }


    .diary-container {
        width: calc(100% - 24px);
    }


    .diary-paper {
        padding: 35px 25px;
    }


    .diary-text {
        font-size: 16px;
    }

}


/* =========================================
   RESPONSIVE DIARY
========================================= */

@media (max-width: 600px) {

    /* =========================
       HEADER
    ========================= */

    .diary-header {
        padding: 75px 18px 45px;
    }


    .back-button {
        left: 18px;
        top: 18px;

        font-size: 13px;
    }


    .diary-icon {
        font-size: 30px;
        margin-bottom: 10px;
    }


    .diary-intro h1 {
        font-size: 32px;
        line-height: 1.2;
    }


    .diary-intro p {
        margin-top: 10px;

        font-size: 14px;
        line-height: 1.5;
    }


    /* =========================
       CONTAINER
    ========================= */

    .diary-container {
        width: calc(100% - 24px);

        margin-bottom: 60px;
    }


    /* =========================
       ENTRY
    ========================= */

    .diary-entry {
        margin-bottom: 35px;
    }


    .diary-entry-date {
        margin-bottom: 8px;

        font-size: 0.82rem;
        letter-spacing: 0.02em;
    }


    /* =========================
       PAPER
    ========================= */

    .diary-paper {
        padding: 25px 18px 20px;

        border-radius: 4px;
    }


    .diary-entry-icon {
        margin-bottom: 6px;

        font-size: 1rem;
    }


    .diary-paper h2 {
        margin-bottom: 15px;

        font-size: 1.35rem;
        line-height: 1.3;
    }


    .diary-text {
        font-size: 1.05rem;
        line-height: 1.65;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    .diary-author {
        margin-top: 18px;

        font-size: 0.9rem;
    }


    /* =========================
       ACTIONS
    ========================= */

    .diary-actions {
        width: 100%;

        gap: 8px;
        margin-top: 18px;
        padding-top: 14px;
    }


    .diary-actions .reply-button,
    .diary-actions .delete-button {
        min-height: 40px;

        padding: 0 12px;

        font-size: 0.9rem;
    }


    /* =========================
       REPLIES
    ========================= */

    .diary-replies {
        margin-top: 22px;
        padding-top: 16px;
    }


    .replies-title {
        margin-bottom: 10px;

        font-size: 1.05rem;
    }


    .diary-reply {
        margin-bottom: 10px;

        padding: 12px 40px 12px 13px;

        border-radius: 0 8px 8px 0;
    }


    .reply-author {
        font-size: 0.9rem;
    }


    .reply-date {
        font-size: 0.7rem;
    }


    .reply-text {
        font-size: 1rem;
        line-height: 1.45;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =========================
       DELETE REPLY
    ========================= */

    .delete-reply-button {
        top: 9px;
        right: 8px;

        width: 32px;
        height: 32px;
    }


    /* =========================
       REPLY FORM
    ========================= */

    .reply-form {
        margin-top: 10px;

        padding: 12px;
    }


    .reply-input {
        min-height: 110px;

        padding: 11px 12px;

        font-size: 1rem;
        line-height: 1.5;
    }


    .reply-form-actions {
        display: flex;

        width: 100%;

        gap: 8px;
    }


    .reply-cancel,
    .reply-submit {
        flex: 1;

        min-height: 40px;

        padding: 0 10px;

        font-size: 0.9rem;
    }


    /* =========================
       NEW DIARY FORM
    ========================= */

    .new-diary-form {
        width: 100%;

        margin-bottom: 30px;

        padding: 22px 17px;
    }


    .new-diary-header {
        margin-bottom: 18px;
    }


    .new-diary-header h2 {
        font-size: 1.25rem;
    }


    .diary-title-input {
        padding: 11px 10px;

        font-size: 1.05rem;
    }


    .diary-content-input {
        min-height: 150px;

        padding: 12px;

        font-size: 1rem;
        line-height: 1.5;
    }


    .new-diary-actions {
        width: 100%;

        justify-content: stretch;
    }


    .diary-submit {
        width: 100%;

        min-height: 42px;

        font-size: 0.95rem;
    }


    /* =========================
       DELETE MODAL
    ========================= */

    .delete-modal-content {
        width: calc(100% - 32px);

        padding: 25px 20px;
    }


    .delete-modal-content h2 {
        font-size: 1.4rem;
    }


    .delete-modal-content p {
        font-size: 0.95rem;
    }


    .delete-modal-actions {
        width: 100%;

        gap: 8px;
    }


    .delete-modal-actions button {
        flex: 1;

        min-height: 42px;

        padding: 8px 12px;

        font-size: 0.9rem;
    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .diary-header {
        padding-left: 14px;
        padding-right: 14px;
    }


    .diary-intro h1 {
        font-size: 28px;
    }


    .diary-container {
        width: calc(100% - 16px);
    }


    .diary-paper {
        padding: 22px 14px 18px;
    }


    .diary-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .diary-actions .reply-button,
    .diary-actions .delete-button {
        width: 100%;
    }


    .reply-form-actions {
        flex-direction: column;
    }


    .reply-cancel,
    .reply-submit {
        width: 100%;
    }


    .diary-title-input {
        font-size: 1rem;
    }


    .diary-content-input {
        font-size: 0.98rem;
    }

}
