.diary-container {
    background-color: #fff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 860px;
    margin: auto;
}

.diary-header {
    text-align: center;
    margin-bottom: 2rem;
}

.diary-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    justify-content: flex-end; /* ← 여기만 변경 */
    align-items: center;
    gap: 0.75rem;
}

.author-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
}

.diary-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    background-color: #f1f3f5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: #343a40;
}

.diary-meta div {
    line-height: 1.6;
}

.diary-meta strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.themes span {
    display: inline-block;
    background-color: #dee2e6;
    color: #495057;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.diary-content {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #343a40;
    margin-bottom: 2.5rem;
}

.diary-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.diary-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #868e96;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.like-button {
    margin-left: 10px;
    background-color: #fff;
    color: #f03e3e;
    border: 2px solid #f03e3e;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.like-button.liked {
    background-color: #f03e3e;
    color: white;
}

@media (max-width: 600px) {
    .diary-container {
        padding: 2rem 1.25rem;
    }

    .diary-meta {
        grid-template-columns: 1fr;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    max-width: 360px;
    width: 80%;
    text-align: center;
}